Addon Details

Watch - Add Favorite


Does this version work for you?
3
w00ts
w00t!2

Preferences - Version 1.0

posted on 2009-01-23 17:44:00
by adminc



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".

Version Notes For 1.0

Updated on: 2009-01-23 17:44:00 EST by adminc (View Zip Contents)
1.0 - Release

( Previous Versions )