Skip to content

Commit

Permalink
Fix meta to use switch format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Talamar1 committed Jul 8, 2015
1 parent 06c69d5 commit c022197
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/main/java/net/aufdemrand/denizen/events/BukkitScriptEvent.java
Expand Up @@ -58,35 +58,6 @@ else if (dEllipsoid.matches(it)) {
}
}

public boolean runAtCheck(ScriptContainer scriptContainer, String s, String lower, Location location) {
List<String> data = CoreUtilities.split(lower, ' ');

int index;

for (index = 0; index < data.size(); index++) {
if (data.get(index).equals("at")) {
break;
}
}
if (index >= data.size()) {
// No 'at ...' specified
return true;
}

String it = CoreUtilities.getXthArg(index + 1, s);
if (it.equals("notable")) {
return true;
}
if (dLocation.valueOf(it) == null) {
dB.echoError("Invalid WITH item in " + getName() + " for '" + s + "' in " + scriptContainer.getName());
return false;
}
if (location == null || !tryLocation((dLocation)location, it)) {
return false;
}
return true;
}

public boolean tryLocation(dLocation location, String comparedto) {
if (comparedto == null || comparedto.length() == 0) {
dB.echoError("Null or empty location string to compare");
Expand Down

0 comments on commit c022197

Please sign in to comment.