Factions Todo List 🔗
This mod adds a todo list for each faction, which can only be accessed by the faction members.
Adds a command f_todo with several subcommands:
-
Available to all faction members:
f_todo list- View the faction's todo list -
Owner-only commands:
f_todo add <item>- Add a new item to the todo listf_todo clear- Clear all items from the todo list
Helper Functions 🔗
-
todo.add(faction, item)- Adds a new item to a faction's todo list, initializing the faction's list if it doesn't exist -
todo.save()- Serializes and saves the current todo items to storage -
todo.get(faction)- Retrieves and deserializes a faction's todo list from storage, returns empty table if none exists -
todo.clear(faction)- Clears all todo items for a specific faction and saves the change to storageThese functions handle the core functionality of storing, retrieving, and managing todo lists for each faction.