formatting & rename stuff

This commit is contained in:
speed
2020-12-14 19:05:13 -05:00
parent f8ce64d6c3
commit c356ecd168
5 changed files with 24 additions and 21 deletions

View File

@ -15,17 +15,19 @@ public class Command_manuallyverify extends FreedomCommand
@Override
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
boolean enableBot = (ConfigEntry.DISCORD_VERIFICATION.getBoolean());
boolean verificationEnabled = ConfigEntry.DISCORD_VERIFICATION.getBoolean();
if (!plugin.dc.enabled)
{
msg("The Discord verification system is currently disabled", ChatColor.RED);
msg("The Discord verification system is currently disabled.", ChatColor.RED);
return true;
}
if (!enableBot)
if (!verificationEnabled)
{
msg("The Discord verification system is currently disabled", ChatColor.RED);
msg("The Discord verification system is currently disabled.", ChatColor.RED);
return true;
}
if (args.length == 0)
{
return false;
@ -56,7 +58,6 @@ public class Command_manuallyverify extends FreedomCommand
plugin.pl.verify(player, null);
plugin.rm.updateDisplay(player);
return true;
}
}
}