diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-26 00:51:51 -0700 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-26 00:51:51 -0700 |
commit | 96cf3635676c2f6130d1744e3c8c273a18149b77 (patch) | |
tree | 5088ef1bc42cae8269bf57753417da16e52fb2df | |
parent | 3de3f00b11ad2b245dc8c697c42f5c6def20c564 (diff) | |
parent | cfc6ed93641621f41dd17830506b56dc460d2499 (diff) | |
download | Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar.gz Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar.lz Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar.xz Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.zip |
Merge pull request #504 from necrodoom/patch-30
[Fix] Fix socialspy toggle with no on/off param.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java b/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java index 12cf46ecc..7796806b6 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java @@ -49,7 +49,7 @@ public class Commandsocialspy extends EssentialsToggleCommand { if (enabled == null) { - throw new NotEnoughArgumentsException(); + enabled = !user.isSocialSpyEnabled(); } user.setSocialSpyEnabled(enabled); |