Fixed configuration of new option allowflying

This commit is contained in:
Evenprime 2011-04-11 16:57:40 +02:00
parent 3855ed7987
commit 8fe02be3b5
2 changed files with 3 additions and 3 deletions

View File

@ -345,7 +345,7 @@ public class NoCheat extends JavaPlugin {
private String getActiveChecksAsString() {
return (movingCheck.isActive() ? movingCheck.getName() + " " : "") +
(!movingCheck.allowFlying ? "flying " : "") +
(movingCheck.isActive() && !movingCheck.allowFlying ? "flying " : "") +
(speedhackCheck.isActive() ? speedhackCheck.getName() + " " : "") +
(airbuildCheck.isActive() ? airbuildCheck.getName() + " " : "") +
(bedteleportCheck.isActive() ? bedteleportCheck.getName() + " " : "");

View File

@ -104,7 +104,7 @@ public class NoCheatConfiguration {
plugin.movingCheck.logMessage = c.getString("moving.logmessage", plugin.movingCheck.logMessage);
plugin.movingCheck.summaryMessage = c.getString("moving.summarymessage", plugin.movingCheck.summaryMessage);
plugin.movingCheck.allowFlying = c.getBoolean("moving.allowFlying", plugin.movingCheck.allowFlying);
plugin.movingCheck.allowFlying = c.getBoolean("moving.allowflying", plugin.movingCheck.allowFlying);
plugin.speedhackCheck.actions[0] = stringToActions(c.getString("speedhack.action.low"), plugin.speedhackCheck.actions[0]);
plugin.speedhackCheck.actions[1] = stringToActions(c.getString("speedhack.action.med"), plugin.speedhackCheck.actions[1]);
@ -261,7 +261,7 @@ public class NoCheatConfiguration {
w.write(" logmessage: \"" + plugin.movingCheck.logMessage+"\""); w.newLine();
w.write(" summarymessage: \"" + plugin.movingCheck.summaryMessage+"\""); w.newLine();
w.write("# Should (normal speed) flying be generally allowed?"); w.newLine();
w.write(" allowflying: \"" + plugin.movingCheck.allowFlying+"\""); w.newLine();
w.write(" allowflying: " + plugin.movingCheck.allowFlying); w.newLine();
w.write("# Moving Action, one or more of 'loglow logmed loghigh cancel'"); w.newLine();
w.write(" action:"); w.newLine();
w.write(" low: "+actionsToString(plugin.movingCheck.actions[0])); w.newLine();