mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-27 19:07:45 +01:00
Fixed configuration of new option allowflying
This commit is contained in:
parent
3855ed7987
commit
8fe02be3b5
@ -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() + " " : "");
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user