Removed debug menu / Crash fix / Ship speed warp fix / String locale fix

This commit is contained in:
Anuken
2018-09-12 10:07:10 -04:00
parent b19f3ff8cf
commit d65beea179
10 changed files with 33 additions and 134 deletions

View File

@@ -18,19 +18,25 @@ public class Administration{
private ObjectMap<String, TraceInfo> traceInfo = new ObjectMap<>();
/** Maps packed coordinates to logs for that coordinate*/
private IntMap<Array<EditLog>> editLogs = new IntMap<>();
private Array<String> bannedIPs = new Array<>();
public Administration(){
Settings.defaultList(
"antigrief", false,
"antigrief-max", defaultMaxBrokenBlocks,
"antigrief-cooldown", defaultBreakCooldown
"strict", true
);
load();
}
public void setStrict(boolean on){
Settings.putBool("strict", on);
Settings.save();
}
public boolean getStrict(){
return Settings.getBool("strict");
}
public boolean allowsCustomClients(){
return Settings.getBool("allow-custom", !headless);
}