1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-08 07:36:42 +02:00

Merge pull request #504 from necrodoom/patch-30

[Fix] Fix socialspy toggle with no on/off param.
This commit is contained in:
KHobbits
2013-06-26 00:51:51 -07:00

View File

@@ -49,7 +49,7 @@ public class Commandsocialspy extends EssentialsToggleCommand
{
if (enabled == null)
{
throw new NotEnoughArgumentsException();
enabled = !user.isSocialSpyEnabled();
}
user.setSocialSpyEnabled(enabled);