Added enum data handling

Also committed an older fix
This commit is contained in:
Norbi Peti 2016-10-30 21:47:42 +01:00
parent 5b63ed08ed
commit 900f815e26
2 changed files with 3 additions and 3 deletions

View file

@ -34,11 +34,11 @@ public class ChatPlayer extends TBMCPlayer {
}
public FlairStates getFlairState() {
return getData();
return getEnumData(FlairStates.class);
}
public void setFlairState(FlairStates state) {
setData(state);
setEnumData(state);
}
public int getFCount() {

View file

@ -24,7 +24,7 @@ commands:
yeehaw:
description: This command makes you yeehaw.
author: NorbiPeti
depend: [Essentials, Towny, Minigames, Votifier, WorldGuard, WorldEdit, ProtocolLib, Vault, ButtonPluginBucket]
depend: [Essentials, Towny, Minigames, Votifier, WorldGuard, WorldEdit, ProtocolLib, Vault, ButtonCore]
permissions:
tbmc.admin:
description: Gives access to /un- commands and /u admin commands