Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L2PcInstance.java
- @Override
- public void onAction(L2PcInstance player)
- {
- + if (Config.PROTECT_TARGET_ADM_ENABLE)
- +{
- + if (isGM() && player.isGM() == false)
- + {
- + player.sendPacket(ActionFailed.STATIC_PACKET);
- + return;
- + }
- + }
- @Override
- public void onActionShift(L2PcInstance player)
- {
- L2Weapon currentWeapon = player.getActiveWeaponItem();
- + if (Config.PROTECT_TARGET_ADM_ENABLE)
- + {
- + if (isGM() && player.isGM() == false)
- + {
- + player.sendPacket(ActionFailed.STATIC_PACKET);
- + return;
- + }
- + }
- Config.java
- public static String PVP1_CUSTOM_MESSAGE;
- public static String PVP2_CUSTOM_MESSAGE;
- + public static boolean PROTECT_TARGET_ADM_ENABLE;
- /** Custom Tables **/
- CUSTOM_SPAWNLIST_TABLE = Boolean.valueOf(L2JFrozenSettings.getProperty("CustomSpawnlistTable", "True"));
- SAVE_GMSPAWN_ON_CUSTOM = Boolean.valueOf(L2JFrozenSettings.getProperty("SaveGmSpawnOnCustom", "True"));
- DELETE_GMSPAWN_ON_CUSTOM = Boolean.valueOf(L2JFrozenSettings.getProperty("DeleteGmSpawnOnCustom", "True"));
- + PROTECT_TARGET_ADM_ENABLE = Boolean.valueOf(L2JFrozenSettings.getProperty("ProtectTargetAdmEnable", "False"));
- config/functions/l2jfrozen.propierties
- # Npc Protector Message
- ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules!
- + # Protect Target Gm
- + # True = Enable False = Disable
- +ProtectTargetAdmEnable = True
Add Comment
Please, Sign In to add comment