Added MCTPAudioCmd class
Added things to Main class Added Utils
This commit is contained in:
parent
3a9db49101
commit
d7f659be21
1 changed files with 30 additions and 6 deletions
|
@ -1,18 +1,42 @@
|
|||
package me.mctp;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class Main extends JavaPlugin {
|
||||
public class Main extends JavaPlugin implements Listener {
|
||||
|
||||
public static Plugin pl;
|
||||
private static Main plugin;
|
||||
|
||||
public static String prefix = (ChatColor.GOLD + "[" + ChatColor.YELLOW + "MCTP" + ChatColor.GOLD + "] " + ChatColor.GRAY);
|
||||
|
||||
public void onEnable(){
|
||||
Bukkit.getServer().getPluginManager().registerEvents(this, this);
|
||||
|
||||
Bukkit.getLogger().info(" __ __ ______ _______ ______");
|
||||
Bukkit.getLogger().info("| \\ / | | ___| |___ __| | __ |");
|
||||
Bukkit.getLogger().info("| | \\/ | | | | | | | ___|");
|
||||
Bukkit.getLogger().info("| | | | | |___ | | | |");
|
||||
Bukkit.getLogger().info("|_| |_| |_____| |_| |_|");
|
||||
Bukkit.getLogger().info(prefix + "loading...");
|
||||
|
||||
pl = (Plugin) this;
|
||||
plugin = this;
|
||||
|
||||
getCommand("mctpaudio").setExecutor(new MCTPAudioCmd());
|
||||
|
||||
Bukkit.getLogger().info(prefix + " __ __ ____ _____ ____ _ _ _ ");
|
||||
Bukkit.getLogger().info(prefix + "| \\/ |/ ___|_ _| _ \\ / \\ _ _ __| (_) ___ ");
|
||||
Bukkit.getLogger().info(prefix + "| |\\/| | | | | | |_) | / _ \\| | | |/ _` | |/ _ \\ ");
|
||||
Bukkit.getLogger().info(prefix + "| | | | |___ | | | __/ / ___ \\ |_| | (_| | | (_) |");
|
||||
Bukkit.getLogger().info(prefix + "|_| |_|\\____| |_| |_| /_/ \\_\\__,_|\\__,_|_|\\___/ ");
|
||||
Bukkit.getLogger().info(prefix + "successfully enabled!");
|
||||
}
|
||||
|
||||
public void onDisable(){
|
||||
Bukkit.getLogger().info(prefix + "successfully disabled!");
|
||||
}
|
||||
|
||||
public static Main getPlugin() {
|
||||
return plugin;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue