[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
This commit is contained in:
snowleo 2011-04-04 15:02:07 +00:00
parent 6f84be54f0
commit 076fedf6e4

View File

@ -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()) &&