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...
You can use Material to get an item from config then set it to whoever's inventory you want....
Hi, I'm doing a nickname plugin (as said in my last question :p) and I need to make a nickname that looks like this: [ATTACH] How do I split up...
Oh, ok. Thanks :)
@KarimAKL I tried (byte) but that doesn't work either. Which one am I supposed to use?
I am making a GUI with different selections and I want to have those options in glass panes. How do I change the color of the glass? I tried...
Separate names with a comma.