Skip to content

Commit

Permalink
Fix getPlayerFrom, getNPCFrom, and getListFrom by stripping the prefi…
Browse files Browse the repository at this point in the history
…x before fetching the object.
  • Loading branch information
aufdemrand committed Jun 25, 2013
1 parent bac7a7a commit 2801e99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/aufdemrand/denizen/objects/aH.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public static dItem getItemFrom(String arg) {

@Deprecated
public static dList getListFrom(String arg) {
return dList.valueOf(arg);
return dList.valueOf(aH.getStringFrom(arg));
}

@Deprecated
Expand All @@ -452,12 +452,12 @@ public static dScript getScriptFrom(String arg) {

@Deprecated
public static dPlayer getPlayerFrom(String arg) {
return dPlayer.valueOf(arg);
return dPlayer.valueOf(aH.getStringFrom(arg));
}

@Deprecated
public static dNPC getNPCFrom(String arg) {
return dNPC.valueOf(arg);
return dNPC.valueOf(aH.getStringFrom(arg));
}

@Deprecated
Expand Down

0 comments on commit 2801e99

Please sign in to comment.