mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-24 15:23:20 +02:00
Pass the actual player object to Bukkit.
Add the list that hides vanished players
This commit is contained in:
@@ -151,6 +151,15 @@ public class EssentialsPlayerListener implements Listener
|
||||
user.updateDisplayName();
|
||||
user.getData().setIpAddress(user.getAddress().getAddress().getHostAddress());
|
||||
user.updateActivity(false);
|
||||
|
||||
for (String p : ess.getVanishedPlayers())
|
||||
{
|
||||
if (!Permissions.VANISH_SEE_OTHERS.isAuthorized(user))
|
||||
{
|
||||
user.hidePlayer(ess.getUser(p).getBase());
|
||||
}
|
||||
}
|
||||
|
||||
if (Permissions.SLEEPINGIGNORED.isAuthorized(user))
|
||||
{
|
||||
user.setSleepingIgnored(true);
|
||||
|
Reference in New Issue
Block a user