root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_VIEW_PLAYER_DETAILS.java
| 1099 | 1512 | ||
|---|---|---|---|
18 | 18 | ||
19 | import org.apache.log4j.Logger; | 19 | import org.apache.log4j.Logger; |
20 | 20 | ||
21 | import com.aionemu.gameserver.model.gameobjects.player.DeniedStatus; | ||
21 | import com.aionemu.gameserver.model.gameobjects.player.Player; | 22 | import com.aionemu.gameserver.model.gameobjects.player.Player; |
22 | import com.aionemu.gameserver.network.aion.AionClientPacket; | 23 | import com.aionemu.gameserver.network.aion.AionClientPacket; |
24 | import com.aionemu.gameserver.network.aion.serverpackets.SM_SYSTEM_MESSAGE; | ||
23 | import com.aionemu.gameserver.network.aion.serverpackets.SM_VIEW_PLAYER_DETAILS; | 25 | import com.aionemu.gameserver.network.aion.serverpackets.SM_VIEW_PLAYER_DETAILS; |
24 | import com.aionemu.gameserver.world.World; | 26 | import com.aionemu.gameserver.world.World; |
25 | import com.google.inject.Inject; | 27 | import com.google.inject.Inject; |
... | ... | ||
65 | return; | 67 | return; |
66 | } | 68 | } |
67 | 69 | ||
70 | if(player.getPlayerSettings().isInDeniedStatus(DeniedStatus.VEIW_DETAIL)) | ||
71 | { | ||
72 | sendPacket(SM_SYSTEM_MESSAGE.STR_MSG_REJECTED_WATCH(player.getName())); | ||
73 | return; | ||
74 | } | ||
68 | sendPacket(new SM_VIEW_PLAYER_DETAILS(player.getEquipment().getEquippedItems())); | 75 | sendPacket(new SM_VIEW_PLAYER_DETAILS(player.getEquipment().getEquippedItems())); |
69 | } | 76 | } |
70 | } | 77 | } |
Download diff