mirror of
https://github.com/plexusorg/Plex.git
synced 2025-02-11 11:40:48 +00:00
Fix lockup
This commit is contained in:
parent
dd661a7304
commit
c665524078
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ public class LockupCMD extends PlexCommand
|
|||
}
|
||||
|
||||
punishedPlayer.setLockedUp(!punishedPlayer.isLockedUp());
|
||||
if (punishedPlayer.isLockedUp())
|
||||
{
|
||||
player.openInventory(player.getInventory());
|
||||
}
|
||||
PlexUtils.broadcast(messageComponent(punishedPlayer.isLockedUp() ? "lockedUpPlayer" : "unlockedPlayer", sender.getName(), player.getName()));
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue