NathanWolf / BukkitPlugins

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

Transition Command DAO to use Bukkit Command object #28

Closed NathanWolf closed 13 years ago

NathanWolf commented 13 years ago

This also implies refactoring all of my plugins to use the Bukkit command system properly.

NathanWolf commented 13 years ago

I guess I'll be mirroring all of that data in Persistence, too. I still think it makes sense to do, but I really wish I could be doing this in all inside of Bukkit sometimes.

NathanWolf commented 13 years ago

Hm, I need to look at this more.

Of course commands have to be defined in the razzin-frazzin YML file, so it kind of defaults the whole purpose of what I'm trying to accomplish. I hope there's a way to do it at runtime.

NathanWolf commented 13 years ago

Bah. Just going to go with the flow, I guess.

Abandoning the unified command data store idea. This really makes me kind of sad, but I guess I have to live with what i'm given here.

NathanWolf commented 13 years ago

Ok- done sulking :)

Persistence and Wand have been converted to the new Command interface. I need to leave Spells alone for Wandmin support until I can figure out how to get Wandmin to be able to force commands thew new way.

I still plan to create the unified CommandData store, with SubCommand support. The base Command represented by CommandData will mirror the YML file commands, but SubCommands will be a Persistence feature.

NathanWolf commented 13 years ago

This is done- I'm still working on CommandData, and how it will gracefully support sub-commands, but currently it can be used with onCommand to link up to Command.