sg debug -> sg
This commit is contained in:
		@@ -1,25 +0,0 @@
 | 
			
		||||
package net.knarcraft.stargate.command;
 | 
			
		||||
 | 
			
		||||
import net.md_5.bungee.api.ChatColor;
 | 
			
		||||
import org.bukkit.Bukkit;
 | 
			
		||||
import org.bukkit.command.Command;
 | 
			
		||||
import org.bukkit.command.CommandExecutor;
 | 
			
		||||
import org.bukkit.command.CommandSender;
 | 
			
		||||
import org.bukkit.plugin.Plugin;
 | 
			
		||||
import org.jetbrains.annotations.NotNull;
 | 
			
		||||
 | 
			
		||||
public class CommandDebug implements CommandExecutor {
 | 
			
		||||
    private final Plugin plugin;
 | 
			
		||||
 | 
			
		||||
    public CommandDebug(Plugin stargate){
 | 
			
		||||
        this.plugin = stargate;
 | 
			
		||||
    }
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
 | 
			
		||||
        ChatColor textColor = ChatColor.GOLD;
 | 
			
		||||
        ChatColor highlightColor = ChatColor.GREEN;
 | 
			
		||||
        commandSender.sendMessage(textColor + "Stargate version " + highlightColor + plugin.getDescription().getVersion()
 | 
			
		||||
                + textColor + "running on " + highlightColor + Bukkit.getServer().getVersion());
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -2,6 +2,7 @@ package net.knarcraft.stargate.command;
 | 
			
		||||
 | 
			
		||||
import net.knarcraft.stargate.Stargate;
 | 
			
		||||
import net.md_5.bungee.api.ChatColor;
 | 
			
		||||
import org.bukkit.Bukkit;
 | 
			
		||||
import org.bukkit.command.Command;
 | 
			
		||||
import org.bukkit.command.CommandExecutor;
 | 
			
		||||
import org.bukkit.command.CommandSender;
 | 
			
		||||
@@ -34,13 +35,11 @@ public class CommandStarGate implements CommandExecutor {
 | 
			
		||||
            } else if (args[0].equalsIgnoreCase("config")) {
 | 
			
		||||
                String[] subArgs = Arrays.copyOfRange(args, 1, args.length);
 | 
			
		||||
                return new CommandConfig().onCommand(commandSender, command, s, subArgs);
 | 
			
		||||
            } else if (args[0].equalsIgnoreCase("debug")) {
 | 
			
		||||
                return new CommandDebug(this.stargate).onCommand(commandSender, command, s, args);
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
        } else {
 | 
			
		||||
            commandSender.sendMessage(ChatColor.GOLD + "Stargate version " +
 | 
			
		||||
                    ChatColor.GREEN + Stargate.getPluginVersion());
 | 
			
		||||
            commandSender.sendMessage(ChatColor.GREEN + "Stargate version " + ChatColor.GOLD + stargate.getDescription().getVersion()
 | 
			
		||||
                    + ChatColor.GREEN + " running on " + ChatColor.GOLD + Bukkit.getServer().getVersion());
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user