Use my API, i don't make it for nothing :(
This commit is contained in:
parent
886b5c3f63
commit
0b0847ea2c
@ -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<String, Boolean> 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user