A noob's question
#1
As far as I know, mc-server is the one calling the plugins. Could there be a plugin that would call other plugins too?
Reply
Thanks given by:
#2
You mean Inter-plugin communication? We use the cPluginManager:CallPlugin function to call other plugins.
Reply
Thanks given by:
#3
I could use that, but by thinking more thoroughly, maybe it would be more modular if, technically, I were to be able to create new hooks in a plugin.
Let's say I wanted to make a plugin that would count ticks and every 24000 ticks would register an event and mc-server would then be responsible to call the plugin(s) that would use my new "hook". How would I make such a thing? Is it even possible?

I didn't mean to rate the thread, I was courious to see if I could rate something I had posted....
Reply
Thanks given by:
#4
If you want your plugin to create its own hooks, and you want other plugins to hook into them then you probably have to do it the same way our WorldEdit plugin does it. Other plugins can call a function in WorldEdit to register a function. Whenever a certain action happens WorldEdit will call the function from the plugin.
Reply
Thanks given by:
#5
Note that the way you call something every 24000 ticks would not be counting ticks. Use the scheduleTask call.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)