本文整理汇总了Java中org.bukkit.plugin.Plugin.getLogger方法的典型用法代码示例。如果您正苦于以下问题:Java Plugin.getLogger方法的具体用法?Java Plugin.getLogger怎么用?Java Plugin.getLogger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bukkit.plugin.Plugin
的用法示例。
在下文中一共展示了Plugin.getLogger方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UpdateChecker
import org.bukkit.plugin.Plugin; //导入方法依赖的package包/类
public UpdateChecker(Plugin plugin, String spigotFullId) {
this.plugin = plugin;
this.spigotId = spigotFullId;
try {
this.spigotUrl = new URL("https://www.spigotmc.org/resources/" + spigotId + "/");
} catch (MalformedURLException e) {
throw new IllegalArgumentException("Invalid spigot id: " + spigotId);
}
this.logger = plugin.getLogger();
permission = new Permission(plugin.getName() + ".update");
permission.setDefault(PermissionDefault.OP);
Bukkit.getPluginManager().addPermission(permission);
setInterval(20*60*30);//30 minutes
message = buildMessage();
}
示例2: TabManager
import org.bukkit.plugin.Plugin; //导入方法依赖的package包/类
public TabManager(Plugin plugin,
@Nullable DefaultProvider<Player, ? extends TabView> viewProvider,
@Nullable DefaultProvider<Player, ? extends TabEntry> playerEntryProvider) {
if(viewProvider == null) viewProvider = new TabView.Factory();
if(playerEntryProvider == null) playerEntryProvider = new PlayerTabEntry.Factory();
this.logger = new ClassLogger(plugin.getLogger(), getClass());
this.plugin = plugin;
this.enabledViews = new DefaultMapAdapter<>(viewProvider, true);
this.playerEntries = new DefaultMapAdapter<>(playerEntryProvider, true);
}
示例3: Store
import org.bukkit.plugin.Plugin; //导入方法依赖的package包/类
public Store(Plugin plugin) {
this.plugin = plugin;
this.logger = plugin.getLogger();
this.file = new File(plugin.getDataFolder(), "store.yml");
load();
}
示例4: pluginLogger
import org.bukkit.plugin.Plugin; //导入方法依赖的package包/类
@Override
protected Logger pluginLogger(Plugin plugin) {
return plugin.getLogger();
}
示例5: SkinDownloader
import org.bukkit.plugin.Plugin; //导入方法依赖的package包/类
public SkinDownloader(Plugin pl) {
this.logger = pl.getLogger();
}