WorldGuard Fly Flag
WorldGuard Fly Flag
"WorldGuard" extension to allow everybody to fly in a specific region. It ignores players in creative mode and includes the possibility to turn of flying for players that get damage. When a player loses the fly flag his fall distance is set to 0 to ensure he does not take extrem fall damage from flying.
How to use this?
this plugin adds a new region flag to worldguard: "fly"
it will allow everybody to fly if the value is "ALLOW".
it will override allow of parent regions if it's set to "DENY".
so simply use the usual worldguard region command, like this:
/region flag <region> fly deny
to deny fly, or:
/region flag <region> fly allow
to allow fly, or:
/region flag <region> fly
to set the flag back to default value (deny).
Permissions
- flyflag.ignore: if set to true the player will ignore the fly flag
Default Config
send-messages: true # send the messages on enabling/disabling the fly flag messages: fly-start: §6You can fly now. # message on enable fly-end: §6You cannot fly anymore. # message on disable pvp-events: true # enable damage events pvp-timeout: 10000 # time a player can't fly when damaged
Config
Set send-messages to false to disable the messages.
Use fly-start and fly-end to set the messages for enabling/disabling the fly flag. You can use colors/styles using a § sign and a character (see Minecraft Wiki)
Dependencies
The plugin requires the latest WorldGuard Custom Flags.
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.
I'm getting this error on start,
[18:59:14] [Server thread/ERROR]: Error occurred while enabling WGFlyFlag v0.2 (Is it up to date?) java.lang.NullPointerException at com.mewin.WGCustomFlags.data.YAMLSaveHandler.loadFlagsForWorld(YAMLSaveHandler.java:119) [?:?] at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.loadFlagsForWorld(WGCustomFlagsPlugin.java:222) [?:?] at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.loadAllWorlds(WGCustomFlagsPlugin.java:208) [?:?] at com.mewin.WGCustomFlags.FlagManager.addCustomFlag(FlagManager.java:79) [?:?] at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.addCustomFlag(WGCustomFlagsPlugin.java:273) [?:?] at com.mewin.wgFlyFlag.WGFlyFlagPlugin.onEnable(WGFlyFlagPlugin.java:49) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot.jar:git-Spigot-1571] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329) [spigot.jar:git-Spigot-1571] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-1571] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1571] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1571] at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot.jar:git-Spigot-1571] at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot.jar:git-Spigot-1571] at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot.jar:git-Spigot-1571] at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot.jar:git-Spigot-1571] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1571] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1571]
This seems to be working for me, apart from the fall damage aspect. I tested it and once i flew from the allowed flying region I fell to my death. Any advice?
Can this please be updated! I really need this in my server, can't get people to disabled fly mode when they enter my parkour area, can you please update this plugin :)
Update, flag work, but it dont block and prevent fly!
Please Update!
@Mr_Burkes
I have the same exact problem and it is driving me crazy! I have a spawn and I don't want to put a roof on it, but players can fly out :( Normally I would use exit deny but I wanted to use this plugin, like so I can turn of fly in PvP.
Thanks
@Mr_Burkes
Hi, Have you made sure that you are not of Operator status nor have the * permission? If you have either of these, then you automatically bypass the flag which disables your fly mode.
@Mr_Burkes
This is simply not the way the plugin should work. It does not affect other plugins, but only disables flying when itself enabled it earlier.
Why is everyone saying this works? I set a deny fly flag on a region, and I can still fly freely.
Dev, have you even tested your own plugin on latest builds?
@thekiwininja99 Just use the player damage flags, you can get them on the flags list.
I agree, plugin does not work unfortunately. fly flag seems to get disabled when travelling between worlds.
Plugin does not work.
Can you do this with /god to?
@Pixiyo
There is no reason to update as the plugin works fine with the latest Bukkit release.
Please update this!
@der_mewin
That sounds great, thanks!
@Niknox
Not it does not. A foce-fly flag is planned, but I am not sure when I will add it.
@der_mewin
But it does not deny flying with Essentials /fly.
@Niknox
This plugin does not affect other plugins, it simply allows/denies flying on its own.
Does this also work with Essentials /fly?