本文整理汇总了Java中net.canarymod.bansystem.BanManager类的典型用法代码示例。如果您正苦于以下问题:Java BanManager类的具体用法?Java BanManager怎么用?Java BanManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BanManager类属于net.canarymod.bansystem包,在下文中一共展示了BanManager类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Neptune
import net.canarymod.bansystem.BanManager; //导入依赖的package包/类
public Neptune() {
Canary.setCanary(this);
DatabaseLoader.load();
PluginLangLoader.load();
NeptuneTranslator.load();
this.jsonNBT = new NeptuneJsonNBTUtility(); // JSON utility
this.motd = new MessageOfTheDay(); // MessageOfTheDay
this.commandManager = new CommandManager(); // Manage all the commands :D
this.hookExecutor = new HookExecutor(); // Execute the hooks
this.helpManager = new HelpManager(); // /help
this.banManager = new BanManager(); // bans
this.whitelist = new WhitelistProvider(); // whitelist
this.ops = new OperatorsProvider(); // op
this.factory = new NeptuneFactory(); // Factories
this.playerSelector = new NeptunePlayerSelector(); // player selector
this.pluginManager = new DefaultPluginManager();
pluginManager.scanForPlugins(); // Scan for plugins
}
示例2: Neptune
import net.canarymod.bansystem.BanManager; //导入依赖的package包/类
public Neptune() {
Canary.setCanary(this);
DatabaseLoader.load();
PluginLangLoader.load();
NeptuneTranslator.load();
this.jsonNBT = new NeptuneJsonNBTUtility(); // JSON utility
this.motd = new MessageOfTheDay(); // MessageOfTheDay
this.commandManager = new CommandManager(); // Manage all the commands :D
this.hookExecutor = new HookExecutor(); // Execute the hooks
this.helpManager = new HelpManager(); // /help
this.banManager = new BanManager(); // bans
this.whitelist = new WhitelistProvider(); // whitelist
this.ops = new OperatorsProvider(); // op
this.reservelist = new ReservelistProvider(); // reverse list
this.factory = new NeptuneFactory(); // Factories
this.playerSelector = new NeptunePlayerSelector(); // player selector
this.channelManager = new NeptuneChannelManager(); // channel manager
this.pluginManager = new DefaultPluginManager(); // plugin manager
this.pluginManager.scanForPlugins(); // Scan for plugins
}
示例3: CanaryBanList
import net.canarymod.bansystem.BanManager; //导入依赖的package包/类
public CanaryBanList(BanManager banManager, Type type) {
this.banManager = banManager;
this.isIpBan = type == Type.IP;
}