EventMod

General:

With this awesome tool, you can bind other plugins to specific regions. Only if a player is located in the region the plugin is bound to, this plugin will be loaded. As soon as no player is left in the region, the plugins will be unloaded.

Features:

  • Custom flag for WorldGuard
  • Using WorldGuard regions, no new commands needed
  • Plugins only loaded in specific regions

Installation and configuration:

To install the plugin just drop the JAR file into your plugins folder and reload or restart the server. After this, a new folder named "EventMod" will appear. This folder will contain a config.yml where you can enter all plugins which shall be loaded or unloaded with the region flag. To bind the plugins from the config file to a region, simply set the WorldGuard flag "event-region" to "allow". Don't forget to set this flag to "deny" in region "global".

IMPORTANT: This plugin is made for events, that are not being used all the time. It's only listening on worlds starting with "evt_". So if you want to use this, make sure your world name starts with this prefix.

Example workflow:

Your server is a minigame server and you want to use this plugin to have the Spleef plugin only loaded if someone is in the arena for this minigame. To reach your goal, you came here and already downloaded EventMod. Now put it into your "plugins" folder and reload or restart the server. You will find a folder named "EventMod" in your "plugins" directory, as mentioned above. Open up the config.yml located in this folder and edit it to your heart's contents. In this example, this config would do the job (assuming you use the plugin "ArenaSpleef"):

eventmod:
  plugins:
  - ArenaSpleef

After you saved your configuration, make sure the world name of the world containing your awesome Spleef arena starts with "evt_", so you could maybe name your world "evt_spleef" or something like that. Now we're doing the real magic. We start with defining a new region for our Spleef arena. In case you don't know how to do that, take a look into the WorldGuard wiki. For making your Spleef region an event region, just set the flag "event-region" to "allow" for your arena and deny it on all other regions. This can be done with the following commands:

/rg f __global__ event-region deny
/rg f myarena event-region allow

Now, your Spleef plugin will only be loaded if someone is in your arena region. That saves some resources and makes minigames unplayable when you close the arena. It also can prevent abuse of the minigame plugins if you have freebuild maps too.

Dependencies:

This plugin is built on three other awesome plugins which need to be installed to make this plugin working:

Upcoming Features:

  • Flags for each loaded plugin
  • Selecting plugins for each region
  • Completely unloading plugins when nobody is in an event region instead of disabling

Known Bugs:

No bugs are actually known! Feel free to report some!

Changelog:

1.0:

  • Initial release

Sample config:

eventmod:
  plugins:
  - MyEventPlugin1
  - MyEventPlugin2

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files