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,9 +106,7 @@ 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"))
{ {
@ -120,7 +118,6 @@ 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
{ {
reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length), " "); reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length), " ");