Module jobcontext
job context utilities
Functions
blockexchange.set_job_context (playername, ctx) | sets the current job context for the player |
blockexchange.get_job_context (playername) | returns the current job context for the player, nil if no job active |
blockexchange.get_job_contexts () | returns all job contexts |
Functions
- blockexchange.set_job_context (playername, ctx)
-
sets the current job context for the player
Parameters:
- playername the name of the player
- ctx the job context for the worker
Returns:
-
the payload in json format
- blockexchange.get_job_context (playername)
-
returns the current job context for the player, nil if no job active
Parameters:
- playername the name of the player
Returns:
-
the current job contect
- blockexchange.get_job_contexts ()
-
returns all job contexts
Returns:
-
the job context map with playername as key