From fc6a1d36e138571ab65e47e2d0bc90697fc8f562 Mon Sep 17 00:00:00 2001 From: DeactivatedMan Date: Tue, 9 Jun 2026 12:15:31 +0100 Subject: [PATCH] Changed version to v1.0, added license and readme, changed run-every default to 4 ticks (5 times a second) --- gradle.properties | 2 +- license.txt | 20 ++++++++++++++++++++ readme.md | 11 +++++++++++ src/main/resources/config.yml | 2 +- 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 license.txt create mode 100644 readme.md diff --git a/gradle.properties b/gradle.properties index 422d39b..1246af2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=me.deac -version=1.0-SNAPSHOT +version=1.0 description=Caps the speed of pearls, prevents abuse org.gradle.configuration-cache=true org.gradle.parallel=true diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..d8050d4 --- /dev/null +++ b/license.txt @@ -0,0 +1,20 @@ +MIT License + +Copyright (c) 2026 DeactivatedMan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..ffc7379 --- /dev/null +++ b/readme.md @@ -0,0 +1,11 @@ +## Why use this plugin +You may just want to make ender pearls slower to reduce their range and make them less overpowered. Though the main focus of this plugin is to try prevent players from abusing the chunkloading capabilities of pearls to lag the server. + +## What this plugin does +This plugin limits ender pearls to always be under a certain speed. The cap and how often the check runs can be configured in the config.yml file, you can even choose to remove speeding pearls too. The default of 3 should only affect pearls shot by a cannon or fast-moving player. If you wish to tweak the speed limit then you should enable `dev-mode` as this logs every pearl's speed, making it easier for you to determine the right value for your application. + +## Config +`max-speed` - The (roughly) maximum speed a pearl can travel with this plugin +`kill-pearl` - Destroys any speeding pearls if enabled +`run-every` - How many ticks between speed checks, 20 means one check a second +`dev-mode` - Logs every pearl's speed, only enable when tweaking the max speed \ No newline at end of file diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index f45f48b..0ab47a3 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,4 +1,4 @@ max-speed: 3 # Ender pearls below this speed are unaffected, anything over 3 is practically impossible *without* a cannon kill-pearl: false # Destroys speeding pearls if enabled -run-every: 20 # How many ticks between speed checks, 20 = 1 second +run-every: 4 # How many ticks between speed checks, 20 = 1 second dev-mode: false # Just logs every pearl's speed, keep disabled unless you want to change the max-speed value \ No newline at end of file