Intellij says this is fine so if it breaks again gg

This commit is contained in:
Elmon11 2021-03-21 19:07:07 +01:00 committed by GitHub
parent e45655edbb
commit 2dbbb5c262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,12 +21,12 @@ public class Command_smite extends FreedomCommand
public static void smite(CommandSender sender, Player player) public static void smite(CommandSender sender, Player player)
{ {
smite(sender, player, null, false); smite(sender, player, null, false, false);
} }
public static void smite(CommandSender sender, Player player, String reason) public static void smite(CommandSender sender, Player player, String reason)
{ {
smite(sender, player, reason, false); smite(sender, player, reason, false, false);
} }
public static void smite(CommandSender sender, Player player, String reason, Boolean silent, Boolean clearinv) public static void smite(CommandSender sender, Player player, String reason, Boolean silent, Boolean clearinv)
@ -106,19 +106,16 @@ public class Command_smite extends FreedomCommand
reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length - 1), " "); reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length - 1), " ");
} }
} }
else else if (args[args.length - 1].equalsIgnoreCase("-c"))
{ {
if (args[args.length - 1].equalsIgnoreCase("-c")) if (args[args.length - 1].equalsIgnoreCase("-c"))
{ {
if (args[args.length - 1].equalsIgnoreCase("-c")) clearinv = true;
{ }
clearinv = true;
}
if (args.length >= 3) if (args.length >= 3)
{ {
reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length - 1), " "); reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length - 1), " ");
}
} }
} }
else else