From 01dc420e64f7731f183a0a45d6be2023a33fc35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sat, 11 Feb 2023 20:55:38 +0100 Subject: [PATCH] Fix small typos --- .../java/wtf/beatrice/hubthat/commands/HubCommand.java | 3 --- .../wtf/beatrice/hubthat/commands/HubThatCommand.java | 10 +--------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/wtf/beatrice/hubthat/commands/HubCommand.java b/src/main/java/wtf/beatrice/hubthat/commands/HubCommand.java index d6bdc3f..4563f7b 100644 --- a/src/main/java/wtf/beatrice/hubthat/commands/HubCommand.java +++ b/src/main/java/wtf/beatrice/hubthat/commands/HubCommand.java @@ -13,8 +13,6 @@ import java.util.logging.Level; public class HubCommand implements CommandExecutor { - - // Initialize the debugger so I can debug the plugin. private static final Debugger debugger = new Debugger(HubCommand.class.getName()); @@ -34,7 +32,6 @@ public class HubCommand implements CommandExecutor // Store the commandSender name for easy access. String username = commandSender.getName(); - if(args.length > 0) { // Check if the player has permission to teleport to the hub. diff --git a/src/main/java/wtf/beatrice/hubthat/commands/HubThatCommand.java b/src/main/java/wtf/beatrice/hubthat/commands/HubThatCommand.java index 9bb1385..53a71a0 100644 --- a/src/main/java/wtf/beatrice/hubthat/commands/HubThatCommand.java +++ b/src/main/java/wtf/beatrice/hubthat/commands/HubThatCommand.java @@ -36,19 +36,11 @@ public class HubThatCommand implements CommandExecutor // Log who is using the command. debugger.sendDebugMessage(Level.INFO, "Sender is instance of: " + commandSender.getClass().getName()); - // If the command comes from Console, give a warning. - // We need no warning because this command is not player reliant. - /*boolean senderIsConsole = (commandSender instanceof ConsoleCommandSender); - if(senderIsConsole) - { - MessageUtils.sendLocalizedMessage(commandSender.getName(), LocalizedMessages.WARNING_CONSOLE_ACCESS); - }*/ - // Check if there are any args. if(args.length == 0) { MessageUtils.sendColorizedMessage(commandSender, "&6" + plugin.getName() +"&7 version &6" + plugin.getDescription().getVersion() + "&7 for &6SpigotMC/CraftBukkit &6" + PluginCache.minSupportedVersion + "&7-&6" + PluginCache.maxSupportedVersion + "&7."); - MessageUtils.sendColorizedMessage(commandSender, "&7Coded by &6" + debugger.authorName + "&7, &6GNU GPLv3&7)."); + MessageUtils.sendColorizedMessage(commandSender, "&7Coded by &6" + debugger.authorName + "&7, &6GNU GPLv3&7."); commandSender.sendMessage(""); MessageUtils.sendColorizedMessage(commandSender, "&7Write &6/"+ plugin.getName().toLowerCase() + " help&7 to see plugin commands."); }