Facebook
From Emerald Flamingo, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 189
  1. /**
  2.  * This file is part of Aion-Lightning <aion-lightning.org>.
  3.  *
  4.  *  Aion-Lightning is free software: you can redistribute it and/or modify
  5.  *  it under the terms of the GNU General Public License as published by
  6.  *  the Free Software Foundation, either version 3 of the License, or
  7.  *  (at your option) any later version.
  8.  *
  9.  *  Aion-Lightning is distributed in the hope that it will be useful,
  10.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  *  GNU General Public License for more details. *
  13.  *  You should have received a copy of the GNU General Public License
  14.  *  along with Aion-Lightning.
  15.  *  If not, see <http://www.gnu.org/licenses/>.
  16.  */
  17. package admincommands;
  18.  
  19. import com.aionemu.gameserver.model.gameobjects.player.Player;
  20. import com.aionemu.gameserver.utils.PacketSendUtility;
  21. import com.aionemu.gameserver.utils.chathandlers.AdminCommand;
  22.  
  23. /**
  24.  * @author Cura
  25.  */
  26. public class Cooldown extends AdminCommand {
  27.  
  28.         public Cooldown() {
  29.                 super("cooldown");
  30.         }
  31.  
  32.         @Override
  33.         public void execute(Player player, String... params) {
  34.                 if (player.isCoolDownZero()) {
  35.                         PacketSendUtility.sendMessage(player, "Cooldown time of all skills has been recovered.");
  36.                         player.setCoolDownZero(false);
  37.                 }
  38.                 else {
  39.                         PacketSendUtility.sendMessage(player, "Cooldown time of all skills is set to 0.");
  40.                         player.setCoolDownZero(true);
  41.                 }
  42.         }
  43.  
  44.         @Override
  45.         public void onFail(Player player, String message) {
  46.                 // TODO Auto-generated method stub
  47.         }
  48. }
  49.  

Replies to Untitled rss

Title Name Language When
Re: Untitled Morose Cat text 4 Years ago.