Corrected player message for /disguisetoggle. Resolves #1872 (#2042)

This commit is contained in:
Ryan 2017-06-30 08:46:31 +01:00 committed by Jerom van der Sar
parent f97de65787
commit 26c83ff585

View File

@ -22,7 +22,8 @@ public class Command_disguisetoggle extends FreedomCommand
return true;
}
FUtil.adminAction(sender.getName(), (DisallowedDisguises.disabled ? "Enabling" : "Disabling") + " Disguises", false);
FUtil.adminAction(sender.getName(), (DisallowedDisguises.disabled ? "Enabling" : "Disabling") + " " +
"Disguises", false);
if (plugin.ldb.isDisguisesEnabled())
{
@ -34,7 +35,7 @@ public class Command_disguisetoggle extends FreedomCommand
plugin.ldb.setDisguisesEnabled(true);
}
msg("Enabled " + (DisallowedDisguises.disabled ? "enabled." : "disabled."));
msg("Disguises are now " + (!DisallowedDisguises.disabled ? "enabled." : "disabled."));
return true;
}