DevSrSouza / KotlinBukkitAPI

KotlinBukkitAPI is an API for Bukkit/SpigotAPI using the cool and nifty features Kotlin has to make your life more easier.
MIT License
156 stars 20 forks source link

Command Arguments material() #19

Closed smallshen closed 4 years ago

smallshen commented 4 years ago

in Command Arguments, there is a material() function to get material

it would be better to change all letter to uppercase when checking, due to all materials in Material enum is uppercase, and I think forName() method is case sensitive.

for example: "/mycommand air" doesn't work, but "/mycommand AIR" works

DevSrSouza commented 4 years ago

I did a fix, tkx for reporting :D

smallshen commented 4 years ago

Thank you