Description
This plugin allows storage of info about players. This is very useful if you want to store player preferences without having to worry about storage concerns.
But Wait! It's not just limited to to preferences! You can store any data you want on a player. A good example is time based muting. You can store the amount of time a player should be muted for so that even if they return, they will be muted again. This plugin is useful for any sort of persistent data you want to store on players.
Key Features:
- Easy integration
- Entirely SQL based (Fast and low memory)
- Keeps track of when preferences were last updated
- Stores read and write permissions
Example:
[syntax="python"]
import es
from prefs import prefs
def player_say(ev):
if ev['text'] == "lol":
player = prefs.getPlayer(ev['userid'])
player["lolcount"] += 1
es.tell(ev['userid'], "You have said lol %s times." % player["lolcount"])
[/syntax]
This simple example records how many times a player says "lol".