summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-04 15:02:07 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-04-04 15:02:07 +0000
commit076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6 (patch)
treea6cbc0e64127940bd16262ba2f9f9dd5445cbc4e
parent6f84be54f031eb5b9c21e8eff67c3d471c0fbce4 (diff)
downloadEssentials-076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6.tar
Essentials-076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6.tar.gz
Essentials-076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6.tar.lz
Essentials-076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6.tar.xz
Essentials-076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6.zip
[trunk] Unlimited: removed the - from names, so that the names correspond with the ones in items.csv.
Now its: essentials.unlimited.item-waterbucket instead of item-water-bucket git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1122 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
index ca8e47f11..9fd47e6bf 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
@@ -41,7 +41,7 @@ public class Commandunlimited extends EssentialsCommand
sb.append(", ");
first = false;
}
- String matname = Material.getMaterial(integer).toString().toLowerCase().replace("_", "-");
+ String matname = Material.getMaterial(integer).toString().toLowerCase().replace("_", "");
sb.append(matname);
}
user.sendMessage(sb.toString());
@@ -50,7 +50,7 @@ public class Commandunlimited extends EssentialsCommand
ItemStack stack = ItemDb.get(args[0], 1);
- String itemname = stack.getType().toString().toLowerCase().replace("_", "-");
+ String itemname = stack.getType().toString().toLowerCase().replace("_", "");
if (!user.isAuthorized("essentials.unlimited.item-add") &&
!user.isAuthorized("essentials.unlimited.item-"+itemname) &&
!user.isAuthorized("essentials.unlimited.item-"+stack.getTypeId()) &&