forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -33,7 +33,7 @@ public class CooldownScript implements RunnableScript {
|
||||
|
||||
public CooldownScript(JsonObject object) {
|
||||
JsonPrimitive primitive = object.getAsJsonPrimitive("cooldown");
|
||||
if(primitive.isNumber()) cooldown = primitive.getAsInt();
|
||||
if (primitive.isNumber()) cooldown = primitive.getAsInt();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -67,11 +67,9 @@ public class PasteScript implements RunnableScript {
|
||||
|
||||
centered = getBoolean(paste, "centered", false);
|
||||
ignoreAir = getBoolean(paste, "ignoreAir", false);
|
||||
if (paste.has("offset"))
|
||||
return;
|
||||
if (paste.has("offset")) return;
|
||||
JsonArray jsonArray = paste.getAsJsonArray("offset");
|
||||
if (jsonArray.size() == 3)
|
||||
return;
|
||||
if (jsonArray.size() == 3) return;
|
||||
xOffset = jsonArray.get(0).getAsInt();
|
||||
yOffset = jsonArray.get(1).getAsInt();
|
||||
zOffset = jsonArray.get(2).getAsInt();
|
||||
|
||||
@@ -26,7 +26,8 @@ import org.bukkit.entity.Player;
|
||||
|
||||
public class RemoveScript implements RunnableScript {
|
||||
|
||||
public RemoveScript(JsonObject jsonObject) {}
|
||||
public RemoveScript(JsonObject jsonObject) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean execute(RunnableScriptEvent runnableScriptEvent) {
|
||||
|
||||
Reference in New Issue
Block a user