diff --git a/src/main/java/buttondevteam/lib/TBMCPlayer.java b/src/main/java/buttondevteam/lib/TBMCPlayer.java
index f2c2c06..66d568e 100644
--- a/src/main/java/buttondevteam/lib/TBMCPlayer.java
+++ b/src/main/java/buttondevteam/lib/TBMCPlayer.java
@@ -47,7 +47,7 @@ public class TBMCPlayer implements AutoCloseable {
*/
@SuppressWarnings("unchecked")
protected
+ * Gets a player data entry for the caller plugin returning the desired type, which is an enum
+ * It will automatically determine the key and the return type.
+ * Usage:
+ *
+ * {@code
+ * public String getPlayerName() {
+ * return getData();
+ * }
+ *
+ *
+ * @return The value or null if not found
+ */
+ protected
+ * Usage:
+ *
+ * {@code + * public String setPlayerName(String value) { + * return setData(value); + * } + *+ * + * @param value + * The value to set + */ + protected void setEnumData(Enum> value) { + StackTraceElement st = new Exception().getStackTrace()[0]; + String mname = st.getMethodName(); + if (!mname.startsWith("set")) + throw new UnsupportedOperationException("Can only use setData from a setXYZ method"); + LoadedPlayers.get(uuid).data.put(mname.substring("set".length()).toLowerCase(), value.toString()); + } + /** * Gets the player's Minecraft name *