Return getConfig() correctly

Announce there is SimplyWrapper and not PermissionsBukkit
This commit is contained in:
Michel Roux 2012-05-11 14:20:48 +02:00
parent 04cba763c4
commit 0220d92004

View File

@ -6,6 +6,7 @@ import java.util.List;
import net.crystalyx.bukkit.simplyperms.SimplyAPI; import net.crystalyx.bukkit.simplyperms.SimplyAPI;
import net.crystalyx.bukkit.simplyperms.SimplyPlugin; import net.crystalyx.bukkit.simplyperms.SimplyPlugin;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
/** /**
@ -19,6 +20,19 @@ public class PermissionsPlugin extends JavaPlugin {
@Override @Override
public void onEnable() { public void onEnable() {
api = ((SimplyPlugin) getServer().getPluginManager().getPlugin("SimplyPerms")).getAPI(); api = ((SimplyPlugin) getServer().getPluginManager().getPlugin("SimplyPerms")).getAPI();
// How are you gentlemen
getLogger().info("SimplyWrapper successfully enabled !");
}
@Override
public void onDisable() {
// Good day to you! I said good day!
getLogger().info("SimplyWrapper successfully disabled !");
}
public FileConfiguration getConfig() {
return getServer().getPluginManager().getPlugin("SimplyPerms").getConfig();
} }
// -- External API // -- External API