barneygale / mark2

minecraft server wrapper, written in python with twisted
Other
105 stars 27 forks source link

clean up the plugin API #83

Open edk0 opened 11 years ago

edk0 commented 11 years ago

before we can say mark2 is beta software we need a plugin API that's nice enough that we won't have to keep changing it.

one problem with what we have now is that we fill Plugin with a whole load of things it either doesn't care about or is only likely to use once.

what might be nicer is if the plugins could use something like mark2.register(...) and leave self.register free for their own purposes.

hiding the various _* attributes in a separate instance would be good too, as things could go very wrong if something accidentally overwrote them.

I don't yet have any kind of plan, so I'm open to other suggestions