Skip to content

Commit

Permalink
match core/buk commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 20, 2019
1 parent a42ae57 commit 5c31f38
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class BossShopCommand extends AbstractCommand {
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("target")
&& arg.matchesPrefix("target")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.denizenscript.denizen.utilities.Utilities;
import com.denizenscript.denizen.utilities.debugging.Debug;
import com.denizenscript.denizencore.exceptions.InvalidArgumentsException;
import com.denizenscript.denizencore.objects.ArgumentHelper;
import com.denizenscript.denizencore.objects.core.ListTag;
import com.denizenscript.denizencore.objects.ObjectTag;
import com.denizenscript.denizencore.scripts.ScriptEntry;
Expand Down Expand Up @@ -51,7 +50,7 @@ public void onEnable() {

@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
for (Argument arg : ArgumentHelper.interpretArguments(scriptEntry.aHArgs)) {
for (Argument arg : scriptEntry.getProcessedArgs()) {
if (!scriptEntry.hasObject("servers")) {
scriptEntry.addObject("servers", arg.asType(ListTag.class));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import com.denizenscript.denizen.utilities.debugging.Debug;
import com.denizenscript.denizencore.exceptions.InvalidArgumentsException;
import com.denizenscript.denizencore.objects.core.ElementTag;
import com.denizenscript.denizencore.objects.ArgumentHelper;
import com.denizenscript.denizencore.scripts.ScriptEntry;
import com.denizenscript.denizencore.scripts.commands.AbstractCommand;

Expand Down Expand Up @@ -35,7 +34,7 @@ public class BungeeExecuteCommand extends AbstractCommand {

@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
for (Argument arg : ArgumentHelper.interpretArguments(scriptEntry.aHArgs)) {
for (Argument arg : scriptEntry.getProcessedArgs()) {
if (!scriptEntry.hasObject("command")) {
scriptEntry.addObject("command", arg.asElement());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.denizenscript.denizen.utilities.debugging.Debug;
import com.denizenscript.denizencore.exceptions.InvalidArgumentsException;
import com.denizenscript.denizencore.objects.core.ElementTag;
import com.denizenscript.denizencore.objects.ArgumentHelper;
import com.denizenscript.denizencore.objects.core.ListTag;
import com.denizenscript.denizencore.scripts.ScriptEntry;
import com.denizenscript.denizencore.scripts.commands.AbstractCommand;
Expand Down Expand Up @@ -40,7 +39,7 @@ public class BungeeRunCommand extends AbstractCommand {

@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
for (Argument arg : ArgumentHelper.interpretArguments(scriptEntry.aHArgs)) {
for (Argument arg : scriptEntry.getProcessedArgs()) {
if (!scriptEntry.hasObject("def")
&& arg.matchesPrefix("def")) {
scriptEntry.addObject("def", arg.asElement());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private enum Action {
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("target")
&& arg.matchesPrefix("target")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public JobsCommand() {
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

// Iterate through arguments
for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("action")
&& arg.matchesEnum(Action.values())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private enum Action {REMOVE, MOB, PLAYER, MISC}
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("target")
&& arg.matchesPrefix("target")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public McMMOCommand() {
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

// Iterate through arguments
for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("action")
&& arg.matchesEnum(Action.values())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class MobArenaCommand extends AbstractCommand {

@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {
for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {
if (!scriptEntry.hasObject("arena") &&
(arg.matchesPrefix("arena") || MobArenaArenaTag.matches(arg.getValue()))) {
scriptEntry.addObject("arena", MobArenaArenaTag.valueOf(arg.getValue()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class MythicSpawnCommand extends AbstractCommand {
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("location")
&& arg.matchesArgumentType(LocationTag.class)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private enum Action {PLAY, STOP}
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("targets")
&& arg.matchesPrefix("targets", "targets")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private enum Action {SET, GIVE, TAKE}
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("target")
&& arg.matchesPrefix("target")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private enum Action {ADD, REMOVE}
@Override
public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {

for (Argument arg : ArgumentHelper.interpret(scriptEntry.getArguments())) {
for (Argument arg : scriptEntry.getProcessedArgs()) {

if (!scriptEntry.hasObject("region_id")
&& arg.matchesPrefix("id")) {
Expand Down

0 comments on commit 5c31f38

Please sign in to comment.