Events, Spawns, Source Servers, and many more!

User Tools

Site Tools


Sidebar

home

issues

downloads


bukkit plugins

windows 8 apps

windows phone apps


Maintaining these plugins takes a lot of work, so if your server is enriched by them please consider sending some love my way!

If you're penniless I'm also partial to TF2 items. Send any you don't want my way! STEAM id: coldandtired

If you don't know what TF2 is, then start playing! It's free and fun!

events:files

Events only listens for the events you are interested in and the way you tell the plugin you're interested is by creating the relevant xml file in the plugin folder.

This page explains how the system works. To see a list of all the supported events go here


The name of the file must match the name of the event and be in lowercase. For example, mob-spawns.xml, block-spreads.xml, etc.

Inside the file you need to set a root element. This element can be called anything that is valid but I recommend calling it the same way as the file so you can always see instantly which event you're dealing with (and so can I if you need help!)

<mob-spawns>
    ...
</mob-spawns>

Feel free to give it a more descriptive name if it helps you

<when-a-mob-spawns-but-not-a-player>
    ...
</when-a-mob-spawns-but-not-a-player>

Within this element you define the actions you want to be performed. But what if you want to stop listening for an event? You have four options

  • delete the file completely
  • rename the file to a name which doesn't have an event (disabled-mob-spawns.xml, for example)
  • move the file somewhere else (either outside the plugin folder or create a new folder inside for disabled events)
  • add an attribute called ignore to the root element
<mob-spawns ignore="yes">
    ...
</mob-spawns>

If you choose this last option then you can re-enable the event by removing the attribute or changing it to no.


Lastly, some events are not tied to any specific world (like the config-loads event). This is fine for logging but means that mobs, locations, etc. are unavailable. To get around this you can include a world attribute with the name of the world you are interested in

<config-loads world="world">
    ...
</config-loads>
events/files.txt · Last modified: 2014/08/26 13:44 by sylian