WorldGuard Region Effects
Description
WorldGuard Region Effects lets you give WorldGuard regions effects. That means players automatically get a potion effect when they enter the region and lose it when they leave the region.
The plugin adds an additionally flag to WorldGuard regions: effects. This flag allows you to set multiple effects for the region. It requires WorldGuard Custom Flags to work.
The source is now available on github.
If the effects don't appear try:
/region flag __global__
effects speed
/region flag __global__
effects
Usage
Possible effects: speed, slow, fast_digging, slow_digging, increase_damage, jump, regeneration, damage_resistance, fire_resistance, water_breathing, hunger, weakness, blindness, poison, invisibility, night_vision and confusion. You can also set the level for the effect (ANY value, also values that would be impossible normally like negative values). For more information click here.
Example:
/region flag exampleRegion effects speed 3,jump II,damage_resistance -1
This line would affect that you get a much faster (speed 3), can jump about 2 block high (jump II) and get more damage (damage_resistance -1). As you can see here you can also use Roman numerals (just from I to VI) for the level.
Some usages I thought of, feel free to add your own
Commands
- /toggleeffects or /te - allows you to toggle the region effects (permission: effects.toggle)
Click here for some other plugins using WorldGuard Custom Flags.
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
@der_mewin
Maybe its because it's using 64bit, If you were to update the github I could compile it myself.
@der_mewin
I'm using JRE7, I have both 64bit and 32bit installed but it should default to 64bit.
@der_mewin
I would love this plugin, but can't get jre7 yet, so Im afraid I wont be able to run this plugin :( it looks awesome
@epictech300
Which version of Java are you running your server on? Try to update to jre7 if you are not using it yet.
@der_mewin
The error is triggered when I move, and I'm not running any other plugins except WorldGuard, WorldGuard Custom Flags and World Edit
@epictech300
When did this error appear? Did it appear immediately when you started the server, if not what did you do before. Maybe also give me a list of other plugins running on your server to reproduce the error.
Getting this error :(
@der_mewin
Thanks
@epictech300
As I uploaded it 21 hour ago, I think it should be approved during the next 24 hours.
@der_mewin
Awesome do you have a ETA for this as I really need it for a server I'm making.
@epictech300
I am working on the next release. It will improve the way how the effects are selected:
Nice plugin but is there a way to override effects inside a region for example: We have 2 regions A and B, B is inside of A when you enter region A you should get a potion effect but when you enter region B you will have no effects or different effect.
EDIT: probably the best way to achieve this is making it so that doing "effects slow 0" instead of adding a slowness 0 effect it doesn't add the effect and removes it if a region with a lower priority is adding it.
@BangL
By using the WG database I mean you could tell WorldGuard not to use the database and my plugin would do the same.Try to disable databases in WorldGuard and tell me if it works then.
Maybe you could send me the complete log file, some inforamtion about the system you are running your server on and the WorldGuard config and tell me what you exactly did. So it would be easier to reconstruct your problem. I am new to working with databases in Java and still need to learn much about it .
And I would like to create that plugin with you, although I didn't write anything in together with someone else it would be nice for me.
Btw.
I also wanna make a plugin to white/black list commands and/or signs in specific regions since the official allowed-cmds/blocked-cmds flags aren't working properly anyways.
Maybe we should work together.
All the plugin tells me on enable is this:
2012-10-16 23:56:39 [INFO] [WGCustomFlags] Enabling WGCustomFlags v1.2.3
2012-10-16 23:59:50 [INFO] [WGRegionEffects] Enabling WGRegionEffects v1.0
and this on disable:
2012-10-16 23:59:00 [INFO] [WGRegionEffects] Disabling WGRegionEffects v1.0
2012-10-16 23:59:00 [INFO] [WGCustomFlags] Disabling WGCustomFlags v1.2.3
2012-10-16 23:59:00 [INFO] [WGCustomFlags] Saving flags for world world
2012-10-16 23:59:00 [INFO] [WGCustomFlags] Saving flags for world world_nether
2012-10-16 23:59:00 [INFO] [WGCustomFlags] Saving flags for world world_the_end
2012-10-16 23:59:00 [INFO] [WGCustomFlags] Saving flags for world world_pvp
2012-10-16 23:59:00 [INFO] [WGCustomFlags] Saving flags for world world_admin
but the table keeps empty.
What do you mean by not using the WG db? Do i have any other chance? i just added the table to my mysql db where the wg tables are and copied both plugins. nothing else. i don't even have a config folder for any of both plugins. but the effects are working well until i restart the server.
@BangL Does it say anything in the server log? And does it work better if you don't use the WG database? The plugin is in an early stage and so it is very buggy, but I will fix it as soon i know what is the problem.
Just one problem.. its not saving on server restart for me. the new table for WorldGuard Custom Flags keeps empty.
amazing. i totally love it. thank you!
Sounds awesome, testing in progress...
Very much looking forward to this.