Merge branch 'master' into spigot

This commit is contained in:
sekwah41 2018-01-17 05:41:08 +00:00 committed by Sekwah
parent 9e56aa074c
commit 57cb442ae3
2 changed files with 24 additions and 1 deletions

View File

@ -1,11 +1,12 @@
package com.sekwah.advancedportals.spigot;
import com.sekwah.advancedportals.core.AdvancedPortalsCore;
import org.bukkit.plugin.java.JavaPlugin;
public class AdvancedPortalsPlugin extends JavaPlugin {
public void onEnable() {
//this.portalsCore = new AdvancedPortalsCore()
}
public void onDisable() {

View File

@ -0,0 +1,22 @@
package com.sekwah.advancedportals.spigot;
import com.sekwah.advancedportals.core.util.InfoLogger;
public class SpigotInfoLogger extends InfoLogger {
private final AdvancedPortalsPlugin plugin;
public SpigotInfoLogger(AdvancedPortalsPlugin plugin) {
this.plugin = plugin;
}
@Override
public void logWarning(String s) {
plugin.getLogger().warning(s);
}
@Override
public void log(String s) {
plugin.getLogger().info(s);
}
}