mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 17:47:34 +01:00
[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:
parent
6f84be54f0
commit
076fedf6e4
@ -41,7 +41,7 @@ public class Commandunlimited extends EssentialsCommand
|
|||||||
sb.append(", ");
|
sb.append(", ");
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
String matname = Material.getMaterial(integer).toString().toLowerCase().replace("_", "-");
|
String matname = Material.getMaterial(integer).toString().toLowerCase().replace("_", "");
|
||||||
sb.append(matname);
|
sb.append(matname);
|
||||||
}
|
}
|
||||||
user.sendMessage(sb.toString());
|
user.sendMessage(sb.toString());
|
||||||
@ -50,7 +50,7 @@ public class Commandunlimited extends EssentialsCommand
|
|||||||
|
|
||||||
ItemStack stack = ItemDb.get(args[0], 1);
|
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") &&
|
if (!user.isAuthorized("essentials.unlimited.item-add") &&
|
||||||
!user.isAuthorized("essentials.unlimited.item-"+itemname) &&
|
!user.isAuthorized("essentials.unlimited.item-"+itemname) &&
|
||||||
!user.isAuthorized("essentials.unlimited.item-"+stack.getTypeId()) &&
|
!user.isAuthorized("essentials.unlimited.item-"+stack.getTypeId()) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user