WorldRegions
WorldRegions
WorldRegions is an extension to the WorldGuard plugin that adds more flags to regions to allow for greater customization options.WorldRegions is 1.7.8 compatible!
Features
WorldRegions comes with a variety of useful flags to add to regions.Flag | Type | Description |
allowed-break | block list | Allow players to only break specified blocks. |
allowed-damage | damage list | Allow players to only be affected by specified damage types. |
allowed-place | block list | Allow players to only place specified blocks. |
apply-potion | potion effect list | Apply a potion effect to the player every second they are in the region. |
blocked-break | block list | Block players from breaking specified blocks. |
blocked-damage | damage list | Block players from being affected by specified damage types. |
blocked-place | block list | Block players from placing specified blocks. |
healing | allow/deny | Allow or deny healing the player by natural causes. |
hunger | allow/deny | Allow or deny hunger and starvation damage. |
instabreak | allow/deny | Allow players in survival mode to instantly break blocks. |
item-pickup | allow/deny | Allow or deny players picking up items. |
item-spawn | allow/deny | Allow or deny items spawning when dropped or mined. |
mob-targeting | allow/deny | Allow or deny mobs targeting players to attack them. |
pve | allow/deny | Allow or deny players attacking mobs, but not players. |
regen | allow/deny | Allow or deny players being healed by a full hunger bar. |
sheep-eat * | allow/deny | Allow or deny sheep from eating grass inside the region. |
time | time | Keep the player's client time set to a specific time. |
wither-block-damage * | allow/deny | Allow or deny withers or wither skulls from destroying blocks inside the region. |
zombie-door-break | allow/deny | Allow or deny zombies breaking down wooden doors. |
Flags marked with a * were added in the Beta 1.0.1 R2 release, and are still being approved.
You may find more information about flag types here.
Setup & Dependencies
For more detailed setup instructions including permissions, see here.Dependencies
WorldEdit by sk89q |
WorldGuard by sk89q |
Bugs & Suggestions
If you have a bug or suggestion, leave a comment below.Please do not reload WorldGuard by any other means than /reload. Doing so will cause the WorldRegions flags to be removed from every loaded region.
Please update this plugin to the 1.8, it is not working. When I use the flags worldguard sets them but it doesn't load them
Hey, i become an error in my console. I have WorldGuard 6
[00:19:24 ERROR]: Could not pass event ItemSpawnEvent to WorldRegions v1.0.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callItemSpawnEvent(CraftEventFactory.java:303) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.World.addEntity(World.java:1011) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.World.addEntity(World.java:981) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.Entity.a(Entity.java:1410) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.Entity.a(Entity.java:1396) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.Entity.a(Entity.java:1392) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.EntityChicken.m(EntityChicken.java:60) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.EntityLiving.s_(EntityLiving.java:1449) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.EntityInsentient.s_(EntityInsentient.java:193) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.World.entityJoinedWorld(World.java:1590) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.World.g(World.java:1565) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.World.tickEntities(World.java:1412) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.WorldServer.tickEntities(WorldServer.java:576) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:761) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65] Caused by: java.lang.IncompatibleClassChangeError: Found interface com.sk89q.worldguard.protection.ApplicableRegionSet, but class was expected at com.thebinaryfox.worldregions.util.RegionUtil.getFlag(RegionUtil.java:29) [?:?] at com.thebinaryfox.worldregions.listen.EntityListener.onItemSpawn(EntityListener.java:173) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_65] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_65] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-952179b-7bdb8f9] ... 21 more
Are you guys moving forward with Spigot 1.8 and WorldGuard 6?
I cant seem to get it to add a night_vision effect to my spawn. I'm not getting any errors and under the /region info command it tells me i have the effect set but no one gets the potion effect in that region for it. I'm running spigot 1.7.10 with version 5.9 of Worldguard.
@samueli5750 @z65703071
Unfortunately, the latest versions of WorldRegions are compliant with the UUID changes, and only work with version of Bukkit (and Spigot) that support UUIDs. I'm trying to figure out a way to make it compatible with servers that do not support UUIDs, but in the meantime, an earlier version of the plugin will work.
Is it dead?
It is great plugin. However, can you fix the problem of UUID for WorldRegions 1.0.1 Beta R2? Our server using the Spigot 1.7.2 Version and WorldRegions always spam my console all the time ....
Please fix the bug. Those would be spawn so much error when I setup a apply-potion region and go inside.
http://pastebin.com/VvnQjCf0
@lANTHONYl
I will implement that in the next version, thank you.
[00:42:11] [Server thread][33m[WARN][m: [WorldRegions] Task #548137 for WorldRegions v1.0.1 generated an exception java.lang.NoSuchMethodError: org.bukkit.Bukkit.getPlayer(Ljava/util/UUID;)Lorg/bukkit/entity/Player; at com.thebinaryfox.worldregions.misc.PlayerStore.getPlayer(PlayerStore.java:105) [?:?] at com.thebinaryfox.worldregions.listen.PlayerListener.onTick(PlayerListener.java:415) [?:?] at com.thebinaryfox.worldregions.listen.PlayerListener.access$0(PlayerListener.java:381) [?:?] at com.thebinaryfox.worldregions.listen.PlayerListener$1.run(PlayerListener.java:149) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:67) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:614) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:562) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Spigot-1.7.2-R0.3-122-gb58e277] [00:42:12] [Server thread][33m[WARN][m: [WorldRegions] Task #548137 for WorldRegions v1.0.1 generated an exception
hOW CAN I DO allowed-break: * ?
Block List A list of blocks. See here for a list of blocks. BLOCK or ID, ....... CAN SHOW SOME EXAMPLE ? THE LINK IS SHOWN 404 ERROR
Is there a way to completely disable the warning messages? I tried setting empty quotes but that's still comes up in chat as an empty line.
@CloudeLecaw
That's odd. It appears that the event provided a null world object in the "getTo" location. That shouldn't happen normally. I added additional checks to help prevent that from happening in the next plugin update, but it may still error if the cause of the problem persists.
In the meantime, my guess as to why that's happening is a plugin may be altering the event and improperly changing the location provided before it's handled by WorldRegions. If it's not an inconvenience, may I ask what Bukkit version you're running and what plugins you are using?
@lANTHONYl
The UUIDs don't really have much of an effect on WorldRegions. The only change I had to make was this:
https://git.thebinaryfox.com/bukkit/worldregions/commit/1a090cd8333eb29e43ce48d8216201a8231ab979#579cb4b28cbf773327748e5ab7ab05fdcef558d4_100_105
@TheBinaryFox
An update! Well done sir. I'm curious if the transition to UUID is going to be relevant to WorldRregions. I noticed that the pending version says 1.7.4.
@lANTHONYl
Moving it would break the configuration, but I'll make it check for configuration in both places.
@TheBinaryFox
Fantastic!
Suggestion: Can you move the config file out of the WorldGuard folder and into its own?
Due to the apparent lack of support by the former author (and my vital need for this plugin on my private server), I had previously offered to maintain this plugin. Recently, it appears that the former author has transferred ownership of this plugin to me, so please regard me as the current author.
I'm hoping that the features of this plugin are eventually merged into WorldGuard, but in the meantime, I will be providing continuing support and maintenance. If anybody requires support or would like to request features, please contact me.
btw could u add a flag that blocks a player in a certain regions? and allow s some players to enter it plz? thanks! and plz update it