mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ public class Commandsocialspy extends EssentialsToggleCommand
|
||||||
{
|
{
|
||||||
if (enabled == null)
|
if (enabled == null)
|
||||||
{
|
{
|
||||||
throw new NotEnoughArgumentsException();
|
enabled = !user.isSocialSpyEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
user.setSocialSpyEnabled(enabled);
|
user.setSocialSpyEnabled(enabled);
|
||||||
|
|
Loading…
Reference in a new issue