mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-26 07:54:41 +02:00
Prevent joinbots from triggering join code, unless they are actually connected to the server and online.
This commit is contained in:
@@ -140,6 +140,10 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
|
|
||||||
public void delayedJoin(final Player player)
|
public void delayedJoin(final Player player)
|
||||||
{
|
{
|
||||||
|
if (!player.isOnline())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
ess.getBackup().onPlayerJoin();
|
ess.getBackup().onPlayerJoin();
|
||||||
final User user = ess.getUser(player);
|
final User user = ess.getUser(player);
|
||||||
user.setDisplayNick();
|
user.setDisplayNick();
|
||||||
|
Reference in New Issue
Block a user