mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 08:59:45 +00:00
Prevent joinbots from triggering join code, unless they are actually connected to the server and online.
This commit is contained in:
parent
0a9c88a990
commit
669edfc048
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ public class EssentialsPlayerListener implements Listener
|
|||
|
||||
public void delayedJoin(final Player player)
|
||||
{
|
||||
if (!player.isOnline())
|
||||
{
|
||||
return;
|
||||
}
|
||||
ess.getBackup().onPlayerJoin();
|
||||
final User user = ess.getUser(player);
|
||||
user.setDisplayNick();
|
||||
|
|
Loading…
Reference in a new issue