PAPIThem (PlaceHolder API Expension) icon

PAPIThem (PlaceHolder API Expension) -----

Custom player data storage for PAPI



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 :
Code (Text):
%papithem_<variableName>%
To retrieve data stored with the server's account, use :
Code (Text):
%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 :
Code (Text):
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 :

Code (Text):
/storefor Steve minigame_score 5
Code (Text):
/storefor Alex minigame_score 7
And then you could have a custom command /score that would send the player :
Code (Text):
You made %papithem_minigame_score% points !
Steve would see :
Code (Text):
You made 5 points !
And Alex :
Code (Text):
You made 7 points !
  • 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 ;)
Resource Information
Author:
----------
Total Downloads: 224
First Release: May 31, 2022
Last Update: Oct 9, 2022
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings