PlayerData
The plugin has a player storage feature. When a new player joins, a file gets created in the plugin's folder with their name. In the file, their values are stored. For example, their lives, revived status, etc. You can edit, reset, and generate a player's file using a command in-game.
Generate file
If a player joined and the plugin did not create a new file for them, you can do it manually using:
/playerdata generatefile (player)
That will make a new file with the default values.
Reset
When you do /playerdata reset (player)
, this will reset a player's file.
For example: if they have 6 lives and the default lives is 4, it will reset it back to 4.
It simply resets the values in their personal file.
Set
You can set a specific value in-game by doing:
/playerdata set (option) (value)
The options and values are:
end-exempt
→true
orfalse
lives
→ any number (there is no limit)revived
→true
orfalse
status
→ALIVE
,DEAD
You can also change this in their personal file manually. If you have a big server with over 500+ players, the server console will likely not load all the files but will still create them (depending on your storage). If you have a file and can’t find it because there are too many files, this command could help you. The player does not have to be online for it.
Last updated