mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-28 18:20:31 +00:00
We now ignore the case, when we read the kits from config.yml.
Beware, that permissions always have to be lowercase. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1463 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
7b9606994a
commit
47f1b2809b
2 changed files with 9 additions and 3 deletions
|
@ -33,7 +33,7 @@ public class Commandkit extends EssentialsCommand
|
|||
StringBuilder list = new StringBuilder();
|
||||
for (String k : kits.keySet())
|
||||
{
|
||||
if (user.isAuthorized("essentials.kit." + k))
|
||||
if (user.isAuthorized("essentials.kit." + k.toLowerCase()))
|
||||
{
|
||||
list.append(" ").append(k);
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ public class Commandkit extends EssentialsCommand
|
|||
{
|
||||
user.sendMessage(ex.getMessage());
|
||||
}
|
||||
user.sendMessage(Util.format("kitGive", args[0].toLowerCase()));
|
||||
user.sendMessage(Util.format("kitGive", kitName));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue