Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminPetition.java
- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/handlers/admincommandhandlers/AdminPetition.java (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/handlers/admincommandhandlers/AdminPetition.java
r7720 r8630 20 20 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; 21 21 import com.l2jserver.gameserver.network.SystemMessageId; 22 import com.l2jserver.gameserver.network.serverpackets.SystemMessage;23 22 24 23 /** … … 26 25 * 27 26 * @author Tempy 28 *29 27 */ 30 28 public class AdminPetition implements IAdminCommandHandler … … 40 38 }; 41 39 40 @Override 42 41 public boolean useAdminCommand(String command, L2PcInstance activeChar) 43 42 { … … 60 59 if (PetitionManager.getInstance().isPlayerInConsultation(activeChar)) 61 60 { 62 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.ONLY_ONE_ACTIVE_PETITION_AT_TIME));61 activeChar.sendPacket(SystemMessageId.ONLY_ONE_ACTIVE_PETITION_AT_TIME); 63 62 return true; 64 63 } … … 66 65 if (PetitionManager.getInstance().isPetitionInProcess(petitionId)) 67 66 { 68 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.PETITION_UNDER_PROCESS));67 activeChar.sendPacket(SystemMessageId.PETITION_UNDER_PROCESS); 69 68 return true; 70 69 } 71 70 72 71 if (!PetitionManager.getInstance().acceptPetition(activeChar, petitionId)) 73 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.NOT_UNDER_PETITION_CONSULTATION));72 activeChar.sendPacket(SystemMessageId.NOT_UNDER_PETITION_CONSULTATION); 74 73 } 75 74 else if (command.startsWith("admin_reject_petition")) 76 75 { 77 76 if (!PetitionManager.getInstance().rejectPetition(activeChar, petitionId)) 78 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.FAILED_CANCEL_PETITION_TRY_LATER));77 activeChar.sendPacket(SystemMessageId.FAILED_CANCEL_PETITION_TRY_LATER); 79 78 PetitionManager.getInstance().sendPendingPetitionList(activeChar); 80 79 } … … 83 82 if (PetitionManager.getInstance().isPetitionInProcess()) 84 83 { 85 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.PETITION_UNDER_PROCESS));84 activeChar.sendPacket(SystemMessageId.PETITION_UNDER_PROCESS); 86 85 return false; 87 86 } … … 96 95 if (targetChar == null || !(targetChar instanceof L2PcInstance)) 97 96 { 98 activeChar.sendPacket(SystemMessage .getSystemMessage(SystemMessageId.TARGET_IS_INCORRECT));97 activeChar.sendPacket(SystemMessageId.TARGET_IS_INCORRECT); 99 98 return false; 100 99 } … … 115 114 } 116 115 116 @Override 117 117 public String[] getAdminCommandList() 118 118 {
Note: See TracChangeset
for help on using the changeset viewer.
