Paul2708 / simple-commands

An (even more) simplified and intuitive command framework for Spigot.
MIT License
14 stars 2 forks source link

EnumArgument not working with lowercase enum constants #46

Closed nea89o closed 4 years ago

nea89o commented 4 years ago

Description

If one has an enum with enum values in lowercase they won't be found by the EnumArgument class.

To Reproduce

Steps to reproduce the behavior: Make a class like this

class enum WeirdYetValidEnum {
   UPPERCASE, lowercase;
}

And use it in an EnumArgument and try to pass lowercase.

Behavior

Actual behavior This code doesn't find the enum values

Expected behavior It should find the enum value

Screenshots or log files

If applicable, add screenshots or log files to help explain your problem.

Versions