chatcommandsplugin: equalsIgnoreCase
This commit is contained in:
@@ -1166,7 +1166,7 @@ public class ChatCommandsPlugin extends Plugin
|
|||||||
ItemPrice shortest = null;
|
ItemPrice shortest = null;
|
||||||
for (ItemPrice item : items)
|
for (ItemPrice item : items)
|
||||||
{
|
{
|
||||||
if (item.getName().toLowerCase().equals(originalInput.toLowerCase()))
|
if (item.getName().equalsIgnoreCase(originalInput.toLowerCase()))
|
||||||
{
|
{
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user