PAPIThem
A simple custom player data storage for PlaceholderAPI.
Commands
- /storefor <player> <variableName> <data>
Stores data for a player. The stored data can be accessed by a placeholder later.
- /getfrom <player> <variableName>
Sends the data of the variable stored for the player.
- /deletefor <player> <variableName>
Deletes a variable for a player.
- /listStorage <player>
Display all the variable names stored for a player.
All the commands can be used with the server's account ("server" by default, configurable) instead of the player name.
Placeholder
Any data stored for a player can be access by a placeholder with the following syntax :
%papithem_<variableName>%
To retrieve data stored with the server's account, use :
%papithem_server_<variableName>%
Disk synchronisation
By default, the files are always in sync with the state in memory.
This mode will be slow for big servers and it is recommended to enable deferred disk synchronisation by setting the following option in the config.yml :
configSavingMode: on-server-save
Example
You want to store how many points players (Steve and Alex) did during a minigame.
Imagining Steve made 5 points and Alex 7, you can store them like so :
/storefor Steve minigame_score 5
/storefor Alex minigame_score 7
And then you could have a custom command /score that would send the player :
You made %papithem_minigame_score% points !
Steve would see :
You made 5 points !
And Alex :
You made 7 points !
Permissions
- papithem.storefor : Allows you to store information for the players (default op)
- papithem.getfrom : Allows you to get stored information from the players (default op)
- papithem.deletefor : Allows you to delete variables of the players (default op)
For more detailled use of PlaceholderAPI, check out its plugin page.
Thank you for downloading, don't forget to leave a review ;)
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta