Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @param <T> The type of the enum.
* @param <S> The type of the sender (e.g., player, console).
*/
public class EnumArgument<T extends Enum<T>, S> implements ArgumentConverter<Enum<T>>, TabCompleter<S> {
public class EnumArgument<T extends Enum<T>, S> implements ArgumentConverter<T>, TabCompleter<S> {

/**
* Creates a new EnumArgument instance for the specified enum class.
Expand Down Expand Up @@ -47,7 +47,7 @@ public EnumArgument(Class<T> clazz) {
* @return The enum class
*/
@Override
public Enum<T> apply(String s) {
public T apply(String s) {
if (s == null || s.isEmpty()) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=4.2.1
version=4.2.2