1
0
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:
ementalo
2012-06-25 23:47:51 +01:00
parent 5604231367
commit 09ef49cbaf

View File

@@ -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);
}
}