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

@ -18,17 +18,19 @@ public class Command_verify 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 (senderIsConsole)
{
msg("/manuallyverify <playername>", ChatColor.WHITE);
@ -42,7 +44,6 @@ public class Command_verify extends FreedomCommand
}
PlayerData playerData = plugin.pl.getData(playerSender);
String discordId = playerData.getDiscordID();
if (playerData.getDiscordID() == null)
@ -96,4 +97,4 @@ public class Command_verify extends FreedomCommand
}
return true;
}
}
}