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
@gustebeast
NoFlyPvp has turned into more of a flying anti cheat and all things that could also initiate unfair pvp. Thats why the pickup items was added so things like someone cant come and pick up someones freshly mined diamond before they can causing a rage fest etc. All the features have some reason behind them for me to add them
@STORMINNORMAN800
Sure. It's an unofficial update but at least I figured out what i did wrong and its stable again. I hope to get a couple things fixed on top of that in the next day or two
ya no error on the devtest. Is it safe to use the devtest build for now on my server until you can come out with an update?
@ThePlayingNoob
We shouldnt add a feature if we cant think of a reasonable scenario in which someone would benefit from it. I'm suprised the pick up items feature was even added in the first place.
@STORMINNORMAN800
So no error with devtest? I think i may have an idea what went wrong then. just a simple matter or incorrect order :D
I can make the error happen when i fight mobs while flying. Here is the error: NoFlyPvp v1.1.1 http://pastebin.com/2bbHzexC
I also did a test on your NoFlyPvp-1.1.1.devtest and i couldn't get the error to come up in console.
@gustebeast
Did i say i have it on? No i didnt. And i use caps to clarify what i mean.
Attention @vinipyx7, @gustebeast, @ThePlayingNoob, and @STORMINNORMAN800
I could not replicate the error on my side for some reason. HOWEVER, after being away for a couple days and clearing my head i finally thought to give you a slightly modified devtest jar. it has only been modified just enough to show me which line the error occurs on so i can fix it properly. AS SOON as you receive an error post it here or on pastebin and provide a link to it so i can find and fix the error and can work on the new features.
This is to my private error testing copy and once the error is resolved i will remove it and then continue work on version 1.1.2 which will be strictly for providing a patch to stop error spaming in the mean time so i can then work on version 1.2.0 after this issue has been resolved
Private DevTest Jar v1.1.1: https:dl.dropbox.com/u/23990914/Bukkit/NoFlyPvp/v1.1.1/NoFlyPvp-1.1.1.devtest.jar
@ThePlayingNoob
But why even have the check in the first place. Why not just turn off the pvp pick up items thing for everyone. How does being able to pick up items while flying give a player an unfair advantage in PvP.
Also, can you please stop putting words in full caps for emphasis? It is kind of ANNOYING. (as you can see)
@gustebeast
Dude did i ask for it? i said its not needed AND a example of why you can add it is because on some servers they give you creative for 1 hour to build a pixel art or something for EXAMPLE. And when you fly beside items that is dropped you get a lot of spam and MAYBE the owner of server dont want give the permission to player because he Will remove the creative mode from player when the pixel art or what ever its is done.
@STORMINNORMAN800
the error is getting annoying because i got 20 players online and my console is getting ton of spam. The log is almost impossible to read because of that.
@ThePlayingNoob Well it doesnt make sense to add features unless they have a good use or purpose. Im sure we could think of thousands of possible additions to this plugin that may do something somewhat positive. If we can find a way to do the same thing using other methods, like permissions, it doesnt make sense to add it. You seem to want to stop an issue from occuring with players in creative mode. The only reason this plugin would need to add a setting for that would be for servers that have players that both use creative mode and need to be limited in their pvp'ing such that they cant pick up items. I just dont see where that situation would realistically come up. Then again the whole limit on picking up items doesnt even make sense because it doesnt aid pvp in any way. Personally I would just disable the check entirely.
@ThePlayingNoob
I'm Getting the same error as speedemon92
@gustebeast
I know that and did i say its A NEED? No i didnt i just recommended that.
@ThePlayingNoob
Yes and if you had read what I wrote in my comment you would understand that all I am asking is why you wouldnt give them that permission. Its like saying "essentials is broken because people without essentials.gamemode cannot go into creative mode".
Also, there is no need to be hostile. I was not trying to "tell you what to do" I was merely trying to provide a simple solution to your problem that wouldnt require editting the plugin.
@gustebeast
Read 2 times before you tell me what to do. I wrote: 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 ^^ See that without? that what i said.
@speeddemon92
Im not sure why the error appear. I will try to find out.
@speeddemon92
It happened to me with hitting mobs. I forget now what settings I had, but there are only a few that change the way mobs are damaged.
@vinipyx7 @ThePlayingNoob do either of you know what happened when the error was thrown? I'm semi stumped but then again my mind has wandered off. any clues of how it happened and how to duplicate the error are greatly appreciated so i can fix these and focus on faction support
@ThePlayingNoob
Okay I re-read what you wrote, I guess I should have said this. Why not just give them that permission?