Use my API, i don't make it for nothing :(

This commit is contained in:
Michel Roux 2012-05-08 14:33:19 +02:00
parent 886b5c3f63
commit 0b0847ea2c

View File

@ -172,7 +172,7 @@ public class SimplyPlugin extends JavaPlugin {
} }
public void debug(String message) { public void debug(String message) {
if (getConfig().getBoolean("debug", false)) { if (config.getDebug()) {
getLogger().info("Debug: " + message); getLogger().info("Debug: " + message);
} }
} }
@ -201,7 +201,7 @@ public class SimplyPlugin extends JavaPlugin {
// -- Private stuff // -- Private stuff
private Map<String, Boolean> calculatePlayerPermissions(String player, String world) { private Map<String, Boolean> calculatePlayerPermissions(String player, String world) {
String default_group = getConfig().getString("default", "default"); String default_group = config.getDefaultGroup();
if (!config.isPlayerInDB(player)) { if (!config.isPlayerInDB(player)) {
return calculateGroupPermissions(default_group, world); return calculateGroupPermissions(default_group, world);
} }