NathanWolf / BukkitPlugins

My plugins for the Bukkit Minecraft server
mine.elmakers.com
14 stars 7 forks source link

Implement Message data structure #11

Closed NathanWolf closed 13 years ago

NathanWolf commented 13 years ago

I want to move all in-game text to data.

To facilitate this, create a Message class, which contains a text message and a string id.

These ids could be dotted, such as "persistence.reloadMessage". It may or may not make sense to store them as a tree structure, though- since most likely only the child nodes would have data anyway.

I am also considering a boolean flag in each message, to allow admins to disable any message in the system. A per-user solution for this would be nice, though, too- so maybe that belongs in a separate entity-table.

NathanWolf commented 13 years ago

This is done- I also implemented a "Command" structure specifically for tracking game commands. This would let users override commands, which is important if there are collisions.

I've started using these systems internally in Persistence, and will have all of its text data-driven soon.