Delay fifteen milliseconds before making administrators invisible on EnterWorld.
This commit is contained in:
@@ -177,6 +177,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -214,6 +216,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -182,6 +182,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -219,6 +221,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -182,6 +182,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -219,6 +221,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -182,6 +182,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -219,6 +221,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -180,6 +180,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -217,6 +219,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -180,6 +180,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -217,6 +219,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -180,6 +180,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -217,6 +219,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -585,6 +585,8 @@ public class EnterWorld extends GameClientPacket
|
||||
private void EnterGM(PlayerInstance player)
|
||||
{
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -626,6 +628,7 @@ public class EnterWorld extends GameClientPacket
|
||||
GmListTable.getInstance().addGm(player, true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_SPECIAL_EFFECT)
|
||||
{
|
||||
|
@@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.concurrent.ThreadPool;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.LoginServerThread;
|
||||
import org.l2jmobius.gameserver.SevenSigns;
|
||||
@@ -171,6 +172,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -207,6 +210,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded();
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -179,6 +179,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -216,6 +218,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -179,6 +179,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -216,6 +218,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -179,6 +179,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -216,6 +218,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -179,6 +179,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -216,6 +218,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
@@ -179,6 +179,8 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
|
||||
// Apply special GM properties to the GM when entering
|
||||
if (player.isGM())
|
||||
{
|
||||
ThreadPool.schedule(() -> // Needs a small delay.
|
||||
{
|
||||
gmStartupProcess:
|
||||
{
|
||||
@@ -216,6 +218,7 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
player.refreshOverloaded(true);
|
||||
}
|
||||
}
|
||||
}, 15);
|
||||
|
||||
if (Config.GM_STARTUP_AUTO_LIST && AdminData.getInstance().hasAccess("admin_gmliston", player.getAccessLevel()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user