Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java (revision 1118)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java (working copy)
- @@ -1770,7 +1770,11 @@
- synchronized (_players)
- {
- - if (!_started && !_joining)
- + if(eventPlayer.isAio() || Config.DISABLE_ID_CLASSES.contains(eventPlayer.getClassId().getId()))
- + {
- + replyMSG.append("<br><center>Hello! You can't join in Event !!</center></body></html>");
- + }
- + else if (!_started && !_joining)
- replyMSG.append("<center>Wait till the admin/gm start the participation.</center>");
- else if (!checkMaxPlayers(_players.size()))
- {
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java (revision 1118)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java (working copy)
- @@ -1993,7 +1993,11 @@
- replyMSG.append("<center>Name: <font color=\"00FF00\">" + _eventName + "</font></center><br1>");
- replyMSG.append("<center>Description: <font color=\"00FF00\">" + _eventDesc + "</font></center><br><br>");
- - if (!_started && !_joining)
- + if(eventPlayer.isAio() || Config.DISABLE_ID_CLASSES.contains(eventPlayer.getClassId().getId()))
- + {
- + replyMSG.append("<br><center>Hello! You can't join in Event !!</center></body></html>");
- + }
- + else if (!_started && !_joining)
- replyMSG.append("<center>Wait till the admin/gm start the participation.</center>");
- else if (Config.CTF_EVEN_TEAMS.equals("SHUFFLE") && !checkMaxPlayers(_playersShuffle.size()))
- {
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 1118)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -626,6 +626,9 @@
- public static long CLICK_TASK;
- + public static String DISABLE_ID_CLASSES_STRING;
- + public static FastList<Integer> DISABLE_ID_CLASSES = new FastList<>();
- +
- // ============================================================
- public static void loadOtherConfig()
- {
- @@ -895,6 +898,15 @@
- ALLOW_QUAKE_SYSTEM = Boolean.parseBoolean(otherSettings.getProperty("AllowQuakeSystem", "False"));
- ENABLE_ANTI_PVP_FARM_MSG = Boolean.parseBoolean(otherSettings.getProperty("EnableAntiPvpFarmMsg", "False"));
- +
- + DISABLE_ID_CLASSES_STRING = otherSettings.getProperty("DisableIdForClasses", "");
- + DISABLE_ID_CLASSES = new FastList<>();
- + for (String class_id : DISABLE_ID_CLASSES_STRING.split(","))
- + {
- + if (!class_id.equals(""))
- + DISABLE_ID_CLASSES.add(Integer.parseInt(class_id));
- + }
- +
- }
- catch (final Exception e)
- {
- @@ -4261,6 +4273,7 @@
- // ============================================================
- private static final String HEXID_FILE = FService.HEXID_FILE;
- +
- public static boolean ENABLE_OLYMPIAD_DISCONNECTION_DEBUG = false;
- public static int SERVER_ID;
- public static byte[] HEX_ID;
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/VIP.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/VIP.java (revision 1118)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/VIP.java (working copy)
- @@ -817,7 +817,11 @@
- replyMSG.append("Current event...<br1>");
- replyMSG.append(" ... Team: <font color=\"FFFFFF\">" + _teamName + "</font><br><br>");
- - if (!_joining && !_started) // PreEvent
- + if(eventPlayer.isAio() || Config.DISABLE_ID_CLASSES.contains(eventPlayer.getClassId().getId()))
- + {
- + replyMSG.append("<br><center>Hello! You can't join in Event !!</center></body></html>");
- + }
- + else if (!_joining && !_started) // PreEvent
- replyMSG.append("<center>Please wait until the admin/gm starts the joining period.</center>");
- else if (_joining && !_started)
- {
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java (revision 1118)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java (working copy)
- @@ -1890,7 +1890,11 @@
- replyMSG.append("<center>Name: <font color=\"00FF00\">" + _eventName + "</font></center><br1>");
- replyMSG.append("<center>Description: <font color=\"00FF00\">" + _eventDesc + "</font></center><br><br>");
- - if (!_started && !_joining)
- + if(eventPlayer.isAio() || Config.DISABLE_ID_CLASSES.contains(eventPlayer.getClassId().getId()))
- + {
- + replyMSG.append("<br><center>Hello! You can't join in Event !!</center></body></html>");
- + }
- + else if (!_started && !_joining)
- replyMSG.append("<center>Wait till the admin/gm start the participation.</center>");
- else if (Config.TVT_EVEN_TEAMS.equals("SHUFFLE") && !checkMaxPlayers(_playersShuffle.size()))
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement