mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
Merge pull request #504 from necrodoom/patch-30
[Fix] Fix socialspy toggle with no on/off param.
This commit is contained in:
commit
96cf363567
@ -49,7 +49,7 @@ public class Commandsocialspy extends EssentialsToggleCommand
|
||||
{
|
||||
if (enabled == null)
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
enabled = !user.isSocialSpyEnabled();
|
||||
}
|
||||
|
||||
user.setSocialSpyEnabled(enabled);
|
||||
|
Loading…
Reference in New Issue
Block a user