Slowly progressing with player data
This commit is contained in:
parent
9ea151596a
commit
a187170fdd
2 changed files with 23 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
package buttondevteam.lib;
|
package buttondevteam.lib;
|
||||||
|
|
||||||
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
|
|
||||||
public abstract class ChromaGamerBase {
|
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.
|
* 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.
|
* 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();
|
public abstract String getFolder();
|
||||||
|
|
||||||
|
protected ConfigurationSection plugindata;
|
||||||
}
|
}
|
||||||
|
|
19
src/main/java/buttondevteam/lib/TBMCPlayerBase.java
Normal file
19
src/main/java/buttondevteam/lib/TBMCPlayerBase.java
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue