Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package it.benza.kitpvp;
- import org.bukkit.event.Listener;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- /**
- * Created by ivan on 13/02/2016.
- */
- public class main extends JavaPlugin implements Listener {
- public void onEnable(){
- PluginManager pm = getServer().getPluginManager();
- pm.registerEvents(new signs(this), this);
- registerCommands();
- registerListeners();
- saveDefaultConfig();
- getServer().getPluginManager().registerEvents(this, this);
- }
- public void registerCommands(){
- getCommand("kit").setExecutor(new Kits(this));
- getCommand("arciere").setExecutor(new Kits(this));
- getCommand("gnomo").setExecutor(new Kits(this));
- getCommand("setspawnkitpvp").setExecutor(new commands(this));
- getCommand("spawnkitpvp").setExecutor(new commands(this));
- }
- public void registerListeners(){
- getServer().getPluginManager().registerEvents(new signs(this), this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement