Remove gamemode and flying switching

Fixes Xephi/AuthMeReloaded#355
Fixes Xephi/AuthMeReloaded#320
Fixes Xephi/AuthMeReloaded#258
Fixes Xephi/AuthMeReloaded#246
This commit is contained in:
games647
2015-12-22 11:05:35 +01:00
parent 1ded09b5ab
commit 8c1eef3f59
16 changed files with 14 additions and 231 deletions
@@ -6,19 +6,16 @@ public class DataFileCache {
private final String group;
private final boolean operator;
private final boolean flying;
/**
* Constructor for DataFileCache.
*
* @param group String
* @param operator boolean
* @param flying boolean
*/
public DataFileCache(String group, boolean operator, boolean flying) {
public DataFileCache(String group, boolean operator) {
this.group = group;
this.operator = operator;
this.flying = flying;
}
/**
@@ -38,13 +35,4 @@ public class DataFileCache {
public boolean getOperator() {
return operator;
}
/**
* Method isFlying.
*
* @return boolean
*/
public boolean isFlying() {
return flying;
}
}
+1 -6
View File
@@ -154,7 +154,6 @@ public class JsonCache {
JsonElement e;
String group = null;
boolean operator = false;
boolean flying = false;
if ((e = jsonObject.get("group")) != null) {
group = e.getAsString();
@@ -162,11 +161,8 @@ public class JsonCache {
if ((e = jsonObject.get("operator")) != null) {
operator = e.getAsBoolean();
}
if ((e = jsonObject.get("flying")) != null) {
flying = e.getAsBoolean();
}
return new DataFileCache(group, operator, flying);
return new DataFileCache(group, operator);
}
}
@@ -187,7 +183,6 @@ public class JsonCache {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("group", dataFileCache.getGroup());
jsonObject.addProperty("operator", dataFileCache.getOperator());
jsonObject.addProperty("flying", dataFileCache.isFlying());
return jsonObject;
}