From 0b0847ea2c9a50afe9faff1ddf346f243a5aa0d3 Mon Sep 17 00:00:00 2001 From: Xefir Date: Tue, 8 May 2012 14:33:19 +0200 Subject: [PATCH] Use my API, i don't make it for nothing :( --- src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java b/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java index c1a1b11..b8b0555 100755 --- a/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java +++ b/src/net/crystalyx/bukkit/simplyperms/SimplyPlugin.java @@ -172,7 +172,7 @@ public class SimplyPlugin extends JavaPlugin { } public void debug(String message) { - if (getConfig().getBoolean("debug", false)) { + if (config.getDebug()) { getLogger().info("Debug: " + message); } } @@ -201,7 +201,7 @@ public class SimplyPlugin extends JavaPlugin { // -- Private stuff private Map calculatePlayerPermissions(String player, String world) { - String default_group = getConfig().getString("default", "default"); + String default_group = config.getDefaultGroup(); if (!config.isPlayerInDB(player)) { return calculateGroupPermissions(default_group, world); }