This should be private.

This commit is contained in:
GJ 2012-07-09 10:46:55 -04:00
parent a31d50924d
commit c3ea632cb9
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import com.gmail.nossr50.util.Misc;
public class XprateCommand implements CommandExecutor { public class XprateCommand implements CommandExecutor {
private final mcMMO plugin; private final mcMMO plugin;
private static int oldrate = Config.getInstance().xpGainMultiplier; private static int oldrate = Config.getInstance().xpGainMultiplier;
public static boolean xpevent = false; private static boolean xpevent = false;
public XprateCommand (mcMMO plugin) { public XprateCommand (mcMMO plugin) {
this.plugin = plugin; this.plugin = plugin;
@ -90,4 +90,8 @@ public class XprateCommand implements CommandExecutor {
return true; return true;
} }
} }
public static boolean isXpEventRunning() {
return xpevent;
}
} }

View File

@ -183,7 +183,7 @@ public class PlayerListener implements Listener {
} }
//THIS IS VERY BAD WAY TO DO THINGS, NEED BETTER WAY //THIS IS VERY BAD WAY TO DO THINGS, NEED BETTER WAY
if (XprateCommand.xpevent) { if (XprateCommand.isXpEventRunning()) {
player.sendMessage(LocaleLoader.getString("XPRate.Event", new Object[] {Config.getInstance().xpGainMultiplier})); player.sendMessage(LocaleLoader.getString("XPRate.Event", new Object[] {Config.getInstance().xpGainMultiplier}));
} }
} }