From 321d9f97e06c82c884fd16d5dcb434831e63dbfa Mon Sep 17 00:00:00 2001 From: ZeroEpoch1969 <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Wed, 22 Apr 2020 01:29:27 -0700 Subject: [PATCH] coder of the year award goes to me --- .../totalfreedommod/blocking/InteractBlocker.java | 1 - .../command/{Command_gtfo.java => Command_ban.java} | 4 ++-- .../me/totalfreedom/totalfreedommod/command/Command_mute.java | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) rename src/main/java/me/totalfreedom/totalfreedommod/command/{Command_gtfo.java => Command_ban.java} (98%) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java b/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java index 8c89f6b5..5ce91afb 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/blocking/InteractBlocker.java @@ -94,7 +94,6 @@ public class InteractBlocker extends FreedomService player.sendMessage(ChatColor.RED + "You can't sleep in hell."); event.setCancelled(true); return; - } switch (event.getMaterial()) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_ban.java similarity index 98% rename from src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java rename to src/main/java/me/totalfreedom/totalfreedommod/command/Command_ban.java index 2e1bfb99..1d5fa7a5 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_gtfo.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_ban.java @@ -23,8 +23,8 @@ import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.util.Vector; @CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH, blockHostConsole = true) -@CommandParameters(description = "Bans the specified player.", usage = "/ [reason] [-nrb]", aliases = "ban") -public class Command_gtfo extends FreedomCommand +@CommandParameters(description = "Bans the specified player.", usage = "/ [reason] [-nrb]", aliases = "gtfo") +public class Command_ban extends FreedomCommand { @Override diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_mute.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_mute.java index 6911c9d7..c6ca5ac6 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_mute.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_mute.java @@ -160,7 +160,6 @@ public class Command_mute extends FreedomCommand msg(ChatColor.RED + "That player is already muted."); } - return true; }