Skip to content

Commit

Permalink
Fix interacts with event
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 28, 2016
1 parent 4049a77 commit b3e4d48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -63,7 +63,7 @@ public boolean matches(ScriptContainer scriptContainer, String s) {
return false;
}

String mat = CoreUtilities.getXthArg(2, lower);
String mat = CoreUtilities.getXthArg(3, lower);
if (!tryMaterial(material, mat)) {
return false;
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -2821,6 +2821,8 @@ else if (split.length > 1) {
// @description
// Set the amount of money a player has with the linked economy plugin.
// (Only if supported by the registered Economy system.)
// @tags
// <p@player.money>
// -->
if (mechanism.matches("money") && mechanism.requireDouble() && Depends.economy != null) {
double bal = Depends.economy.getBalance(getOfflinePlayer());
Expand Down

0 comments on commit b3e4d48

Please sign in to comment.