Compare commits
1 commit
master
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
e3747c30f8 |
|
@ -11,7 +11,7 @@
|
|||
<dependency>
|
||||
<groupId>org.yaml</groupId>
|
||||
<artifactId>snakeyaml</artifactId>
|
||||
<version>1.32</version>
|
||||
<version>2.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -25,9 +25,6 @@ import java.util.function.Supplier;
|
|||
public abstract class ChromaGamerBase {
|
||||
private static final String TBMC_PLAYERS_DIR = "TBMC/players/";
|
||||
private static final ArrayList<Function<CommandSender, ? extends Optional<? extends ChromaGamerBase>>> senderConverters = new ArrayList<>();
|
||||
/**
|
||||
* Holds data per user class
|
||||
*/
|
||||
private static final HashMap<Class<? extends ChromaGamerBase>, StaticUserData<?>> staticDataMap = new HashMap<>();
|
||||
|
||||
/**
|
||||
|
@ -59,7 +56,6 @@ public abstract class ChromaGamerBase {
|
|||
throw new RuntimeException("Class not registered as a user class! Use @UserClass or TBMCPlayerBase");
|
||||
var sud = new StaticUserData<T>(folderName);
|
||||
sud.getConstructors().put(cl, constructor);
|
||||
sud.getConstructors().put(userclass, constructor); // Alawys register abstract and prototype class (TBMCPlayerBase and TBMCPlayer)
|
||||
staticDataMap.put(userclass, sud);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue