Projectile Knockback
This plugin should work across most minecraft versions: this plugin does not use anything version specific. This should work across newer and older minecraft versions. I will release a new version if it does not fit a certain update.
This is a simple plugin that I decided to make, because I couldn't find any other plugins like it to fit my needs. I really want to hear what you have to say to improve it, post it in the comments! This is my first plugin published on Bukkit/Spigot.
If you may or may not know, in earlier versions of Spigot there was a bug where snowballs (when I say snowballs, I am including eggs and enderpearls too) gave knockback to the player that was hit, and some minigames started to use this mechanic. Today, the bug is fixed and snowballs don't deal any knockback, like how it has always been in vanilla Minecraft. This plugin allows you to restore this functionality.
With this plugin, you also have the ability to choose what worlds the plugin affects. In the config, if you set cross-world to false, it will not affect all worlds on the server. After setting cross-world to false, you must add the worlds that the plugin should be enabled in them to the worlds-enable array in the config (you can also do this by command).
This plugin's commands allow you to manage the entire config, including toggling different projectile knockback, toggling the entire plugin, and choosing in what worlds the plugin is enabled, with these commands:
All the commands and permissions here only apply to the latest version of this plugin. If you have an older version, please download the new one.
/projectileknockback toggle - toggles the plugin on or off
/pkb help - get help
/pkb snowball|enderpearl|egg - toggles snowball/enderpearl/egg knockback on or off.
/pkb cross-world toggle - toggle on or off if the plugin manages all worlds
/pkb worlds add world - add a world to the enabled worlds list
/pkb worlds remove world - remove a world from the enabled worlds list
You can also edit these values in the configuration file.
The permissions you need to toggle knockback:
projectileknockback.toggle.plugin - toggle plugin on or off
projectileknockback.toggle.egg|enderpearl|snowball - toggle egg/enderpearl/snowball knockback on or off
projectileknockback.help - allows you to see the help page
projectileknockback.worlds - allows the player to manage enabled worlds and toggle the cross-world functionality.
Please do not post this plugin elsewhere, just leave a link to this page. I don't mind that you mention this plugin on other forums (why would I :p) but don't upload a version of this plugin to any of those sites.
bstats:
In version 1.7 I added support for a Plugin Metrics API that is called bstats. bstats lets plugin developers see how many servers are using there plugins (not the server names), how many players play on those servers, what operating system you use, Minecraft version, etc.
Update Notifier:
This plugin will notify you when a newer version of the plugin is available for download.
Changelog:
- v1.0 - Initial Release.
- v1.1 - Added a config file.
- v1.2 - Added messages into the config + multi-world support
- v1.3 - You can now edit words/functionalities via command + fixed issues with cross-world support
- v1.4 - Organized my code, fixed minor bugs. Nothing very visible changed.
- v1.5 - Minor bug fixes
- v1.6 - The first real stable update released. Fixed tons of bugs, changed some of the commands.
- v1.7 - Added support for bstats! You now support me just by using my plugin, no effect on server performance. Read more above.
- v1.7 for old MC - New version of PKB that has been tested on MC versions 1.9, 1.8.3, 1.8.1, 1.8, 1.7.4, 1.7.2 and 1.7. There may be more versions that this plugin works on, but I haven't tested them. This version adds no features to this plugin, just support for older MC versions. I do not plan to make PKB versions for older MC versions than 1.7.
- v1.8 (support for 1.13!) - 2 Additions, I am now using the ipify API to get your servers IP address for bstats usage, and this plugin now supports 1.13! Yay!
- v1.9 - Many bug fixes, update to bstats, no longer causes lag because of updater.
This project will not have any new features added, but I will update it with the new Minecraft versions that will come out.
Can you please make this work with fishing rods too? I want to be able to toggle off knockback for fishing rods in my server. Thank you
Will use on kitpvp server!
Works in 1.18! :)
Works perfectly on 1.16! There was a minor issue with tick lag which was resolved within a week.
In reply to AWEChess1:
I'm making an update to fix things like this right now
In reply to AWEChess1:
Update has been uploaded to bukkit, it is awaiting approval. If it hasn't been approved when you read this, you can download it on this plugin's page on spigot mc.
In reply to excel619:
Thank you; I wasn't expecting an update for a plugin this old. Appreciate it!
In reply to AWEChess1:
I don't really want to change anything major, but if there are any critical issues I will obviously do my best to resolve them. That PKB v1.9 update did include a major recode, so that I could fix some performance issues. Thanks for bringing this to my attention!
In reply to excel619:
Hmm, I think the error is back. Above this stack trace there was a message saying the server hasn't responded for 10 seconds. Maybe you need to be sending these metrics off of the main thread so that it doesn't block the server?
In reply to AWEChess1:
I'll look into it, thanks for letting me know. It should be fixed soon, but I am a little busy right now.
Is there a way to change how much knockback the snowballs/enderpearls/eggs do?
In reply to Tusnad30:
No, this is a simple plugin only meant to restore the old functionality of snowballs/eggs/enderpearls.
Works for 1.16.4 confirmed
I made a youtube video for it (very short) that shows this working in the latest version
I'm going to try this for 1.16 server
First of all, this plugin is AWESOME and it works perfectly fine up to version 1.13, good job on coding this, Kai. Secone of all, does this plugin work for 1.15.2?
If it doesn't can you please update it because this will be SO useful. Thank you in advance :)
In reply to pat4963:
Sorry for the late response, but yes, this plugin currently supports all of the latest versions! I updated the supported versions for the latest release. Thanks!
does members need permissions to use that? if yes, what the permissions they need, thanks
In reply to derpydev666:
I didn't respond earlier because the answer to this is written in the post, but just to clarify - yes there are permissions.