Slowly progressing with player data

This commit is contained in:
Norbi Peti 2017-01-02 01:09:11 +01:00
parent 9ea151596a
commit a187170fdd
2 changed files with 23 additions and 0 deletions

View file

@ -1,5 +1,7 @@
package buttondevteam.lib;
import org.bukkit.configuration.ConfigurationSection;
public abstract class ChromaGamerBase {
/**
* This method returns the filename for this player data. For example, for Minecraft-related data, use MC UUIDs, for Discord data, use Discord IDs, etc.
@ -10,4 +12,6 @@ public abstract class ChromaGamerBase {
* This method returns the folder the file is in. For example, for Minecraft data, this should be "minecraft", for Discord, "discord", etc.
*/
public abstract String getFolder();
protected ConfigurationSection plugindata;
}

View file

@ -0,0 +1,19 @@
package buttondevteam.lib;
import java.util.UUID;
public abstract class TBMCPlayerBase extends ChromaGamerBase {
public abstract UUID getUUID();
public abstract String getPluginName();
@Override
public String getFileName() {
return getUUID().toString();
}
@Override
public String getFolder() {
return "minecraft";
}
}