WorldGuard Chunk Flag
Description
WorldGuard Chunk Flag adds a flag to WorldGuard: chunk-unload. If set to deny the chunks that intersect with this region are not unloaded when no player is near them. There are also autimatically loaded when the server starts.
Prerequisites
This mod requires WorldGuard Custom Flags and (of course) WorldGuard.
Examples
/region flag city chunk-unload deny
keeps the chunks of the region "city" loaded.
/region flag city chunk-unload allow
resets the value and allows the chunks to be unloaded again.
Some other useful WorldGuard Custom Flags plugins
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
Hello !
I really need this chunk-unload flag for 1.11.
Thank you !
@val59000
I recompiled a version for 1.8.3 and 6.0 worldguard, there was no code that had to be changed so maybe it just need a recompile?
https://drive.google.com/file/d/0B7gWHPFxbAsMZUZqa1M2MndWVTA/view?usp=sharing
@DerekZil
Your talking about some serious ram usage. Would take one h* of a server if even possible.
If I use a 2000x2000 map is it ok is I have the chunks loaded all the time or run it normal?
Last dev build doesn't work in 1.8, spams the console with thousands of errors
[17:59:35] [Server thread/ERROR]: Could not pass event ChunkUnloadEvent to WGChunkFlag v0.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:353) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.WorldServer.doTick(WorldServer.java:221) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:741) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-e497721-96d09e3]
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 de.mewin.wgchf.WorldListener.onChunkUnload(WorldListener.java:56) ~[?:?]
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.jar:git-Spigot-e497721-96d09e3]
... 10 more
@der_mewin
Alright, download here I come! I look forward to test out the plugin! ;)
@Marium0505
It isn't in planning stage, I just forgot that dev.bukkit.org does not sync this with the uploads.
Is this safe to use, even though its in the planning stage?
Seems like a useful plugin.