34 lines
735 B
Java
34 lines
735 B
Java
/**
|
|
*
|
|
*/
|
|
package cn.citycraft.ItemMamager;
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
|
|
import cn.citycraft.ItemMamager.commands.BindCommand;
|
|
import cn.citycraft.ItemMamager.listen.PlayerListen;
|
|
import cn.citycraft.PluginHelper.commands.HandlerCommand;
|
|
|
|
/**
|
|
* 物品管理器主类
|
|
*
|
|
* @author 蒋天蓓
|
|
*
|
|
*/
|
|
public class ItemMamager extends JavaPlugin {
|
|
|
|
@Override
|
|
public void onEnable() {
|
|
this.getServer().getPluginManager().registerEvents(new PlayerListen(this), this);
|
|
HandlerCommand cmdhandler = new HandlerCommand(this);
|
|
cmdhandler.registerCommand(new BindCommand());
|
|
this.getCommand("im").setExecutor(cmdhandler);
|
|
this.getCommand("im").setTabCompleter(cmdhandler);
|
|
}
|
|
|
|
@Override
|
|
public void onLoad() {
|
|
|
|
}
|
|
}
|