mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 05:51:56 +02:00
@SyntaxBlitz Fix /vanish with no arguments doing nothing
This commit is contained in:
@@ -741,7 +741,6 @@ public class User extends UserBase implements IUser
|
||||
return teleportInvulnerabilityTimestamp != 0 && teleportInvulnerabilityTimestamp >= System.currentTimeMillis();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setVanished(boolean set)
|
||||
{
|
||||
@@ -779,7 +778,7 @@ public class User extends UserBase implements IUser
|
||||
@Override
|
||||
public void toggleVanished()
|
||||
{
|
||||
//todo
|
||||
//throw new UnsupportedOperationException("Not supported yet.");
|
||||
final boolean set = !vanished;
|
||||
this.setVanished(set);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user