From e7731e2ad5cb0abf2e4348ee2e3b90c3b7ad08b9 Mon Sep 17 00:00:00 2001 From: Steven Lawson Date: Wed, 21 Sep 2011 11:49:12 -0400 Subject: [PATCH] Tinkered with config. --- src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java b/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java index ead79c2..85ef035 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java +++ b/src/me/StevenLawson/TotalFreedomMod/TotalFreedomMod.java @@ -25,7 +25,7 @@ public class TotalFreedomMod extends JavaPlugin if (CONFIG.getString("superadmins", null) == null) { log.log(Level.INFO, "[Total Freedom Mod] - Generating default config file (plugins/TotalFreedomMod/config.yml)..."); - CONFIG.setProperty("superadmins", new String[] {"madgeek1450", "markbyron"}); + CONFIG.setProperty("superadmins", new String[] {"Madgeek1450", "markbyron"}); CONFIG.save(); CONFIG.load(); } @@ -33,11 +33,6 @@ public class TotalFreedomMod extends JavaPlugin log.log(Level.INFO, "[Total Freedom Mod] - Enabled! - Version: " + this.getDescription().getVersion() + " by Madgeek1450"); log.log(Level.INFO, "[Total Freedom Mod] - Loaded superadmins: " + superadmins.toString()); - - if (!Bukkit.getOnlineMode()) - { - log.log(Level.WARNING, "[Total Freedom Mod]: 'online-mode' is set to FALSE in server.properties. This must be set to TRUE in order for in-game superadmin commands to work."); - } } public void onDisable() @@ -220,7 +215,6 @@ public class TotalFreedomMod extends JavaPlugin private boolean isUserSuperadmin(String userName) { - if (!Bukkit.getOnlineMode()) return false; return superadmins.contains(userName); } }