Fix lockup

This commit is contained in:
Telesphoreo 2022-04-24 01:21:19 -05:00
parent dd661a7304
commit c665524078
No known key found for this signature in database
GPG Key ID: B5CDDEBA526C0130

View File

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