NyaaUtils.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:NyaaUtils 作者:
@Override
public void onEnable() {
    instance = this;
    cfg = new Configuration(this);
    cfg.load();
    i18n = new I18n(this, cfg.language);
    commandHandler = new CommandHandler(this, i18n);
    getCommand("nyaautils").setExecutor(commandHandler);
    getCommand("nyaautils").setTabCompleter((TabCompleter) commandHandler);
    lpListener = new LootProtectListener(this);
    dpListener = new DropProtectListener(this);
    dsListener = new DamageStatListener(this);
    elytraEnhanceListener = new ElytraEnhanceListener(this);
    teleport = new Teleport(this);
    exhibitionListener = new ExhibitionListener(this);
    mailboxListener = new MailboxListener(this);
    fuelManager = new FuelManager(this);
    timerManager = new TimerManager(this);
    timerListener = new TimerListener(this);
    worldEditPlugin = (WorldEditPlugin) getServer().getPluginManager().getPlugin("WorldEdit");
    realmListener = new RealmListener(this);
    try {
        systemBalance = NyaaComponent.get(ISystemBalance.class);
    } catch (ComponentNotAvailableException e) {
        systemBalance = null;
    }
    ess = (IEssentials) getServer().getPluginManager().getPlugin("Essentials");
    particleTask = new ParticleTask(this);
    particleListener = new ParticleListener(this);
    signEditListener = new SignEditListener(this);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号