Remade user data managing, added a test #30

Merged
NorbiPeti merged 22 commits from dev into master 2017-04-15 11:54:06 +00:00
2 changed files with 23 additions and 0 deletions
Showing only changes of commit a187170fdd - Show all commits

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";
}
}