From 076fedf6e4c55c4e7a0efdd39ec406fc17b3b6f6 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 4 Apr 2011 15:02:07 +0000 Subject: [PATCH] [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 --- .../com/earth2me/essentials/commands/Commandunlimited.java | 4 ++-- 1 file 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()) &&