Delay fifteen milliseconds before making administrators invisible on EnterWorld.

This commit is contained in:
MobiusDevelopment 2019-07-31 11:10:42 +00:00
parent c704d4687a
commit 914f3aee14
14 changed files with 480 additions and 437 deletions

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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)
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{

View File

@ -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()))
{