NoFlyPvp
Have players with flying on your PVP enable server? Tired of complaints of players cheating by using flying to keep from being attacked?
With NoFlyPvp not only can you block players with flying enabled from attacking other players without flying, but you can also block that player from using bows and potions giving an unfair advantage! Another feature is that if a player has flying on they are required to turn fly off to attack back or optionally their opponent can enable fly to have a fair fight while flying!
Inspiration
This plugin was actually inspired by SwiftSwamp of DeadWood Entertainment Both SwiftSwamp and myself actually run an 7 Server HUD together and needed something for the PVP enabled servers to prevent cheating by flying
Commands
At This Time There Is Only One Command
- /noflypvp reload
- Alias: /nfp reload
Permissions
# Grants Access To Admin And Exemptions noflypvp.* # Grants Access To Config Reload And Update Notification noflypvp.admin # Grants All Block Exemptions noflypvp.exempt.* # Grants Exemption For Breaking Blocks While Flying noflypvp.exempt.blockbreak # Grants Exemption For Placing Blocks While Flying noflypvp.exempt.blockplace # Grants Exemption For Shooting Mobs With A Bow While Flying noflypvp.exempt.bowdamagemob # Grants Exemption For Shooting Players With A Bow While Flying noflypvp.exempt.bowdamageplayer # Grants Exemption For Shooting A Bow While Flying noflypvp.exempt.bowfire # Grants Exemption For Emptying Buckets While Flying noflypvp.exempt.bucketempty # Grants Exemption For Filling Buckets While Flying noflypvp.exempt.bucketfill # Grants Exemption For Dropping When Damaged While Flying noflypvp.exempt.divebomb # Grants Exemption For Picking Up Items While Flying noflypvp.exempt.pickupitem # Grants Exemption For Using Potions While Flying noflypvp.exempt.potions # Grants Exemption For Attacking Players While Flying noflypvp.exempt.pvp
Configuration
Configuration Files HAS Changed. However If you are using an older version it will auto update to the new config
settings: # Seconds To Wait Before The Same Message Is Sent To A Player msgtimeout: 5 # Allows The Plugin To Check For New Versions And Notify Players updatecheck: true # Sends A Message To Admins Of A New Version notifyadmins: true block: # Block PVP While Flying pvp: true # Block Potions While Flying potions: true # Block Shooting A Bow While Flying (Overrides Player/Mob Bow Damage) bowfire: true # Block Shooting A Player With A Bow While Flying bowdamageplayer: false # Block Shooting A Mob With A Bow While Flying bowdamagemob: false # Block Breaking Blocks While Flying blockbreak: true # Block Placing Blocks While Flying blockplace: true # Block Emptying Buckets While Flying bucketempty: true # Block Filling Buckets While Flying bucketfill: true # Block Picking Up Items While Flying pickupitem: true pvp: # Turn Off Fly When Hit By A Player (Aka DiveBomb) disableflyonhit: false # Minimum Health To Leave A Player Whose Fly Was Turned Off fallminhealth: 1 # Mobs That Deal Damage To A Player Turn Off Their Fly mobdisablefly: false messages: # Messages Sent To Player # Warning Messages Are An Alert Of What They Are Not Allowed To Do # Disable Messages Are To Tell The Player They Must Disable Flying # To Continue What They Want To Do # If A Message Is Set To '' That Message Will Be Ignored And Not Sent pvp: warning: '&cYou Are Not Allowed To PVP While Fly Is Enabled' disable: '&cYou Must Disable Flying Or Your Opponent Must Enable Flying To Continue' potion: warning: '&cYou Are Not Allowed To Use Potions While Flying Is Enabled' disable: '&cYou Must Disable Flying To Use Potions Again' bowfire: warning: '&cYou Are Not Allowed To Shoot Bows While Flying Is Enabled' disable: '&cYou Must Disable Flying To Shoot Bows Again' bowdamageplayer: warning: '&cYou Are Not Allowed To Shoot Bows At Players While Flying Is Enabled' disable: '&cYou Must Disable Flying To Attack With Bows Again' bowdamagemob: warning: '&cYou Are Not Allowed To Shoot Bows At Mobs While Flying Is Enabled' disable: '&cYou Must Disable Flying To Attack With Bows Again' blockbreak: warning: '&cYou Are Not Allowed To Break Blocks While Flying Is Enabled' disable: '&cYou Must Disable Flying To Break Blocks Again' blockplace: warning: '&cYou Are Not Allowed To Place Blocks While Flying Is Enabled' disable: '&cYou Must Disable Flying To Place Blocks Again' bucketempty: warning: '&cYou Are Not Allowed To Empty Buckets While Flying Is Enabled' disable: '&cYou Must Disable Flying To Empty Buckets Again' bucketfill: warning: '&cYou Are Not Allowed To Fill Buckets While Flying Is Enabled' disable: '&cYou Must Disable Flying To Fill Buckets Again' pickupitem: warning: '&cYou Are Not Allowed To Pick Up Items While Flying Is Enabled' disable: '&cYou Must Disable Flying To Pick Up Items Again' divebomb: warning: '&4MAYDAY. MAYDAY. MAYDAY. You Are Going Down!!!!'
Proposed Update Features
- Ability To Block Flying In Certain Regions For Factions/WorldGuard
@speeddemon92
here ya go: http://pastebin.com/cR19Jcxa
@gustebeast
read what i wrote instead of telling me what to do.
@ThePlayingNoob
Sorry but that hastebin link does not work for me. Mind posting it on pastebin so it doesn't get deleted?
@ThePlayingNoob
For the second suggestion, if you have a creative world just make it so that in that world the player has that permission.
Hello, i have this bug in long time now but i didnt report it, my bad and i saw people under me reported this: http://hastebin.com/kirewewuxa.avrasm
And 2 important suggestions by my opinion: 1. Add support for cooldown before you can do /efly & /fly (maybe add a option to conf which commands should cooldown be for)
(Not needed but could be good) 2. Add a option: Ignore-Creative: true/false ^ this would be awesome because some people run multiworld: main world, nether & the end + creative world for example. if you have set pickupitem: true # Block Picking Up Items While Flying you will get a spam as hell if you try in creative mode to pickup without permission: noflypvp.exempt.pickupitem
Thanks :)
@vinipyx7 @gustebeast
Sorry Its taken me some time to get back. I'm going to attempt to fix this and a couple other things if I can make time today after work
@vinipyx7
I got the same error
i am damage mob end console error: Кароче когда я бью моба то ошибка в консоле:
[SEVERE] Could not pass event EntityDamageByEntityEvent to NoFlyPvp v1.1.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:81) at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:369) at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:391) at net.minecraft.server.v1_4_R1.EntityLiving.damageEntity(EntityLiving.java:686) at net.minecraft.server.v1_4_R1.EntityHuman.attack(EntityHuman.java:805) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:1116) at net.minecraft.server.v1_4_R1.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NullPointerException at com.trifractalstudios.bukkit.noflypvp.EListener.onEntityDamage(EListener.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more
@SwiftSwamp
Yes because i asked for this 3 times since the plugin was released but i got no answer so why not ask again?
EDIT: I didnt see he added it to Proposed Update Features.
@ThePlayingNoob Please read his "Proposed Update Features" list before suggestiong something. It has already been said: "Ability To Block Flying In Certain Regions For Factions/WorldGuard"
Factions support would be great, my players is keep saying its not fair that Donators can fly in Factions claimed land, could you make config option that would disable fly if in Faction claimed land
@Kami675
If you use essentials, give them essentials.fly
how do i give them the permission to fly? O_o
Thanks man, appreciate it.
@JKnetz
Thanks for the feedback. I was up until 5am working on fixes and completely forgot about checking those. So I'll start working on an update. And I do like the idea of the not picking up items while flying. If i can track down the errors I should have an update later today :)
And if you are in fly while the server restarts, you drop and can die. Also if you can add an option so they can't pick up items while in fly, this plugin would be perfect.
Also you are able to place a lava bucket in fly
When you hit a mob with a bow, not shoot, but hit, it throws errors.
@ThePlayingNoob
For now I believe we will keep the plugin closed source. This, while not the best solution, helps deter plugin cloning and unofficial updates.
@speeddemon92
Thx! and will you add a Source Code for this plugin? would be awesome!