Reformat again

This commit is contained in:
Driftay 2020-01-18 02:20:11 -05:00
parent 51838df0d7
commit 2412931122

View File

@ -40,8 +40,8 @@ public class CmdTntFill extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("Tntfill.enabled")) { if (!FactionsPlugin.instance.getConfig().getBoolean("Tntfill.enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.COMMAND_TNT_DISABLED_MSG);
return; return;
} }
@ -55,14 +55,14 @@ public class CmdTntFill extends FCommand {
} }
context.msg(TL.COMMAND_TNTFILL_HEADER); context.msg(TL.COMMAND_TNTFILL_HEADER);
// We don't know the max yet, so let's not assume. int radius = context.argAsInt(0, 0); // We don't know the max yet, so let's not assume.
int radius = context.argAsInt(0, 0); int amount = context.argAsInt(1, 0); // We don't know the max yet, so let's not assume.
int amount = context.argAsInt(1, 0);
if (amount < 0) { if (amount <= 0 || radius <= 0) {
context.msg(TL.COMMAND_TNT_POSITIVE); context.msg(TL.COMMAND_TNT_POSITIVE);
return; return;
} }
if (radius > FactionsPlugin.getInstance().getConfig().getInt("Tntfill.max-radius")) { if (radius > FactionsPlugin.getInstance().getConfig().getInt("Tntfill.max-radius")) {
context.msg(TL.COMMAND_TNTFILL_RADIUSMAX.toString().replace("{max}", FactionsPlugin.getInstance().getConfig().getInt("Tntfill.max-radius") + "")); context.msg(TL.COMMAND_TNTFILL_RADIUSMAX.toString().replace("{max}", FactionsPlugin.getInstance().getConfig().getInt("Tntfill.max-radius") + ""));
return; return;