Cross Plugin Compatability
#7
Didn't get a chance to look to closely, but is database storage implemented for plugins?

If we had databases cross plugin communication could be simplified quite a bit.

Also. Is there some way to stop a script from "cancelling" the event by returning a value? I read somewhere returning a true (or false maybe?) from the hook cancels the rest of the plugins.

All plugins should be given a chance to break your server, in my opinion at least.

Say we breed two cows.

We have 2 plugins that work off a breeding event hook.
1. Cancels the spawn if to many npcs exist in 2 chunks. (Just an example)
2. Has a chance to spawn a mooshroom from breeding 2 cows. (Mutations)

Scenario 1
Say plugin 1 detects you have to many animals and cancels the event. However plugin 2 will not attempt to spawn it.
This is fine, maybe not quite desirable, but it works.

Scenario 2
Say plugin 2 runs first and spawns a mooshroom. It would then proceed to cancel the event. Plugin 1 will not limit this spawn because it would not run.
This is a no-go, it should still be able to prevent spawning.

Now these are just examples and may not be 100% realistic, but there is certainly more opportunities for modular plugins where things like this could break.

Speaking of which, do we even get a breed event hook yet?
Reply
Thanks given by:


Messages In This Thread
Cross Plugin Compatability - by Sessional - 07-07-2012, 03:56 AM
RE: Cross Plugin Compatability - by FakeTruth - 07-07-2012, 06:52 AM
RE: Cross Plugin Compatability - by Sessional - 07-08-2012, 05:30 AM
RE: Cross Plugin Compatability - by FakeTruth - 07-08-2012, 10:58 PM
RE: Cross Plugin Compatability - by Sessional - 07-09-2012, 03:35 AM
RE: Cross Plugin Compatability - by xoft - 07-09-2012, 03:53 AM
RE: Cross Plugin Compatability - by Sessional - 07-11-2012, 04:59 AM
RE: Cross Plugin Compatability - by Taugeshtu - 07-13-2012, 06:14 PM
RE: Cross Plugin Compatability - by NiLSPACE - 09-12-2012, 03:51 AM
RE: Cross Plugin Compatability - by FakeTruth - 09-12-2012, 03:58 AM
RE: Cross Plugin Compatability - by l0udPL - 09-12-2012, 04:21 AM
RE: Cross Plugin Compatability - by FakeTruth - 09-12-2012, 04:29 AM
RE: Cross Plugin Compatability - by xoft - 09-12-2012, 08:22 AM
RE: Cross Plugin Compatability - by NiLSPACE - 11-14-2012, 07:21 AM
RE: Cross Plugin Compatability - by FakeTruth - 11-14-2012, 08:00 AM
RE: Cross Plugin Compatability - by NiLSPACE - 11-14-2012, 04:26 PM
RE: Cross Plugin Compatability - by ThuGie - 11-14-2012, 10:40 PM
RE: Cross Plugin Compatability - by Taugeshtu - 11-14-2012, 11:20 PM
RE: Cross Plugin Compatability - by NiLSPACE - 06-15-2013, 07:19 PM
RE: Cross Plugin Compatability - by tonibm19 - 06-15-2013, 07:27 PM
RE: Cross Plugin Compatability - by NiLSPACE - 06-16-2013, 01:15 AM
RE: Cross Plugin Compatability - by tonibm19 - 06-16-2013, 01:26 AM
RE: Cross Plugin Compatability - by xoft - 06-16-2013, 01:23 AM
RE: Cross Plugin Compatability - by NiLSPACE - 06-16-2013, 01:27 AM
RE: Cross Plugin Compatability - by xoft - 06-16-2013, 01:36 AM



Users browsing this thread: 1 Guest(s)