Skip to content

Commit

Permalink
Add config type class
Browse files Browse the repository at this point in the history
  • Loading branch information
Majekdor committed Jan 13, 2025
1 parent 78c85f1 commit f07511b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/dev/majek/hexnicks/config/ConfigType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package dev.majek.hexnicks.config;

import java.lang.reflect.Type;
import java.util.List;

public enum ConfigType {
BOOLEAN(Boolean.class),
STRING(String.class),
INT(Integer.class),
COLOR(String.class),
LIST(List.class);

private final Type type;

ConfigType(Type type) {
this.type = type;
}

public Type type() {
return this.type;
}
}

0 comments on commit f07511b

Please sign in to comment.