public class PlayerRelationConfigurationUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static WauzCore |
core
A direct reference to the main class.
|
Constructor and Description |
---|
PlayerRelationConfigurationUtils() |
Modifier and Type | Method and Description |
---|---|
private static java.io.File |
getPlayerRelationDataFile(org.bukkit.entity.Player player,
java.lang.String citizen)
Gets a config file for a player relation.
|
protected static java.lang.Integer |
playerRelationConfigGetInt(org.bukkit.entity.Player player,
java.lang.String citizen,
java.lang.String path)
Gets an int from a player relation config.
|
protected static void |
playerRelationConfigSet(org.bukkit.entity.Player player,
java.lang.String citizen,
java.lang.String path,
java.lang.Object value)
Sets the given value in the player relation config.
|
private static WauzCore core
private static java.io.File getPlayerRelationDataFile(org.bukkit.entity.Player player, java.lang.String citizen)
player
- The player that owns the config file.citizen
- The citizen that the config belongs to.protected static void playerRelationConfigSet(org.bukkit.entity.Player player, java.lang.String citizen, java.lang.String path, java.lang.Object value)
player
- The player that owns the config file.citizen
- The citizen that the config belongs to.path
- The key path of the value to set.value
- The value to set.protected static java.lang.Integer playerRelationConfigGetInt(org.bukkit.entity.Player player, java.lang.String citizen, java.lang.String path)
player
- The player that owns the config file.citizen
- The citizen that the config belongs to.path
- The key path of the value to get.