mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-20 21:41:32 +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();
|
return teleportInvulnerabilityTimestamp != 0 && teleportInvulnerabilityTimestamp >= System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVanished(boolean set)
|
public void setVanished(boolean set)
|
||||||
{
|
{
|
||||||
@@ -779,7 +778,7 @@ public class User extends UserBase implements IUser
|
|||||||
@Override
|
@Override
|
||||||
public void toggleVanished()
|
public void toggleVanished()
|
||||||
{
|
{
|
||||||
//todo
|
final boolean set = !vanished;
|
||||||
//throw new UnsupportedOperationException("Not supported yet.");
|
this.setVanished(set);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user