This commit is contained in:
parent
553f508d1c
commit
01dc420e64
@ -13,8 +13,6 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
public class HubCommand implements CommandExecutor
|
public class HubCommand implements CommandExecutor
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
// Initialize the debugger so I can debug the plugin.
|
// Initialize the debugger so I can debug the plugin.
|
||||||
private static final Debugger debugger = new Debugger(HubCommand.class.getName());
|
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.
|
// Store the commandSender name for easy access.
|
||||||
String username = commandSender.getName();
|
String username = commandSender.getName();
|
||||||
|
|
||||||
|
|
||||||
if(args.length > 0)
|
if(args.length > 0)
|
||||||
{
|
{
|
||||||
// Check if the player has permission to teleport to the hub.
|
// Check if the player has permission to teleport to the hub.
|
||||||
|
@ -36,19 +36,11 @@ public class HubThatCommand implements CommandExecutor
|
|||||||
// Log who is using the command.
|
// Log who is using the command.
|
||||||
debugger.sendDebugMessage(Level.INFO, "Sender is instance of: " + commandSender.getClass().getName());
|
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.
|
// Check if there are any args.
|
||||||
if(args.length == 0)
|
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, "&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("");
|
commandSender.sendMessage("");
|
||||||
MessageUtils.sendColorizedMessage(commandSender, "&7Write &6/"+ plugin.getName().toLowerCase() + " help&7 to see plugin commands.");
|
MessageUtils.sendColorizedMessage(commandSender, "&7Write &6/"+ plugin.getName().toLowerCase() + " help&7 to see plugin commands.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user