From 900f815e26c9b28f365b00a55be28a36ebbea4c9 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 30 Oct 2016 21:47:42 +0100 Subject: [PATCH] Added enum data handling Also committed an older fix --- src/main/java/buttondevteam/chat/ChatPlayer.java | 4 ++-- src/main/resources/plugin.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/buttondevteam/chat/ChatPlayer.java b/src/main/java/buttondevteam/chat/ChatPlayer.java index 9977cb9..9225dc9 100644 --- a/src/main/java/buttondevteam/chat/ChatPlayer.java +++ b/src/main/java/buttondevteam/chat/ChatPlayer.java @@ -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() { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 33de8a9..7e8f603 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -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