mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-28 19:14:15 +00:00
Use cache for toggling commandspy
This commit is contained in:
parent
76952e33b8
commit
ed638679b2
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class CommandSpyCMD extends PlexCommand
|
|||
{
|
||||
if (playerSender != null)
|
||||
{
|
||||
PlexPlayer plexPlayer = DataUtils.getPlayer(playerSender.getUniqueId());
|
||||
PlexPlayer plexPlayer = plugin.getPlayerCache().getPlexPlayer(playerSender.getUniqueId());
|
||||
plexPlayer.setCommandSpy(!plexPlayer.isCommandSpy());
|
||||
DataUtils.update(plexPlayer);
|
||||
send(sender, messageComponent("toggleCommandSpy")
|
||||
|
|
Loading…
Reference in a new issue