Maybe you could use a PlayerCommandPreprocessEvent: if the command is to give the player money, update the scoreboard
Great, it works! Thanks!
To update every two seconds, you can use a bukkit runnable.
I realized one of my problems and I switched things around, which kind of works... public FileConfiguration getPlayerFile(String uuid) {...
public FileConfiguration getPlayerFile(String uuid) { playerData = new File(plugin.getDataFolder()+"\\playerdata\\", uuid+".yml"); playerCFG =...
I tried that but it doesn’t edit the file
You need to set a team, and add the player to that team. I recommend looking at...
bump
Ah right, ok.
@TerroDoor It appears as if you are trying to get the string from the config and add the player's UUID on the end of it. I think what you would...
Ok, thank you I've just done what you said. Now, how could I call a player's file? Doing CFGm.getPlayerFile(uuid) doesn't do anything; I can't...
Ok, thanks! I'll give that a go. Should this work? public void getPlayerFile(String uuid) { playerData = new...
I have a ConfigManager class, in which I have something that I call in a JoinEvent. public void newPlayerDataFile(String uuid) {...
Hi! I have just started to use multiple config files. I want to have a folder that is full of all the data files for players. I have managed to...
@KarimAKL Ok thanks but what would I put after that to give the item its name? The setDisplayName(sb) doesn't work because its a stringbuilder...
Separate names with a comma.