Small getBoolean corrections

This commit is contained in:
Michel Roux 2012-05-10 11:07:02 +02:00
parent de0492e0c1
commit de1fca795f
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ public class ImportPermBukkit extends SimplyAPI implements ImportManager {
public void run() throws Exception { public void run() throws Exception {
try { try {
permBukkit.load("plugins/PermissionsBukkit/config.yml"); permBukkit.load("plugins/PermissionsBukkit/config.yml");
plugin.getConfig().set("debug", permBukkit.getBoolean("debug")); setDebug(permBukkit.getBoolean("debug"));
addMessage("build", permBukkit.getString("messages/build")); addMessage("build", permBukkit.getString("messages/build"));
for (String player : plugin.getKeys(permBukkit, "users")) { for (String player : plugin.getKeys(permBukkit, "users")) {

View File

@ -20,7 +20,7 @@ public class ImportPermEx extends SimplyAPI implements ImportManager {
public void run() throws Exception { public void run() throws Exception {
try { try {
permEx.load("plugins/PermissionsEx/config.yml"); permEx.load("plugins/PermissionsEx/config.yml");
plugin.getConfig().set("debug", permEx.getBoolean("permissions.debug")); setDebug(permEx.getBoolean("permissions.debug"));
permEx.load("plugins/PermissionsEx/" + permEx.getString("permissions.backends.file.file")); permEx.load("plugins/PermissionsEx/" + permEx.getString("permissions.backends.file.file"));
for (String player : plugin.getKeys(permEx, "users")) { for (String player : plugin.getKeys(permEx, "users")) {

View File

@ -21,7 +21,7 @@ public class ImportPrivileges extends SimplyAPI implements ImportManager {
try { try {
privileges.load("plugins/Privileges/config.yml"); privileges.load("plugins/Privileges/config.yml");
setDefaultGroup(privileges.getString("default_group")); setDefaultGroup(privileges.getString("default_group"));
plugin.getConfig().set("debug", privileges.getBoolean("debug")); setDebug(privileges.getBoolean("debug"));
privileges.load("plugins/Privileges/users.yml"); privileges.load("plugins/Privileges/users.yml");
for (String player : plugin.getKeys(privileges, "users")) { for (String player : plugin.getKeys(privileges, "users")) {