From 2430416915a81ac321a6b53b7ce1f746dca1c859 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 18 Jan 2025 18:36:24 +0100 Subject: [PATCH] Misc --- .forgejo/workflows/build.yml | 4 +-- README.md | 33 +++++++++---------- .../worldborder/WorldBorderExpandModule.java | 2 +- 3 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index a2ffc8e..fa8e3a7 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -7,8 +7,8 @@ jobs: - name: Install JDK and other deps run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd - - name: Clone repository - run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git . + - name: Checkout + uses: https://github.com/actions/checkout@v4 - name: Download NMS run: ./tools/download_nms.sh ~ diff --git a/README.md b/README.md index 5522659..ff77021 100644 --- a/README.md +++ b/README.md @@ -12,37 +12,37 @@ Please report all suspicious behavior. You can do so on any of those: Stuff not many other plugins do. Dependencies: -- **1.21.1**, recommended as the plugin uses NMS for some stuff \ - However, it's not forced, so it's quite probable it'll work on other versions. Please test. If you get an error, it's most often because of a module using NMS. Disable that module, and report the error \ - Why not latest? The focus is on [a widely used version](https://bstats.org/global/bukkit) that has [good mod support](https://modrinth.com/modpack/fabulously-optimized/versions?c=release) +- **1.21.1 and newer** - [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) +- To use modules marked N, you must use a JAR made precisely for your server version. # Features -### Expand world border +N - requires a specific version \ +P - requires ProtocolLib + +### Expand world border N Expands the world border to 30,000,000 (from 29,999,984) -### Hide world border +### Hide world border P Hides the world border. It's still there, just invisible. -### Server brand +### Server brand N P Modify the F3 brand, optionally include player's ping and server performance ### Doors Open two doors with one click. Knock on doors. -### MOTD +### MOTD N P Random MOTD for every ping -### Chat rooms -Chat rooms players can freely create and join. Alerts like death and join messages are only within the player's chat room. +### Chat mods N +- Chat rooms players can freely create and join. Alerts like death and join messages are only within the player's chat room. +- Proximity chat `/chat` - switch chat room \ `/chatmanage` - create, delete, modify etc. (`tweaks724.chatmanage`) -### Proximity chat -Self-explanatory - ### Compass Holding a compass shows a bar with 4 directions and stuff like beds, lodestones, death pos (TODO) etc. @@ -57,7 +57,7 @@ Updates ALL* your plugins \ `/updates` - shows available updates (`tweaks724.updates`) -### Hardcore +### Hardcore N P Hardcore hearts by chance ### Sleep @@ -78,7 +78,7 @@ It can be enabled that new players can't join the server without a key ### Full join Players with `tweaks724.bypass-full` can join even when the server is full -### Emergency alerts +### Emergency alerts P Issue messages that the player needs to read to keep playing, and that make an attention grabbing sound `/emergencyalerts` (`tweaks724.emergencyalerts`) @@ -95,12 +95,11 @@ Quickly kills (terminates) the server on trigger, via command or HTTP request. [KILLSWITCH.md for more info](/Minecon724/tweaks724/src/branch/master/docs/KILLSWITCH.md) ### Swing through grass - - +Self-explanatory ### Utility commands -- `/ping` - displays player ping \ +- `/ping` - displays player ping P \ **Ping is calculated by the plugin**. \ That allows for more precision (decimal places) and to get the ping immediately after a player join diff --git a/src/main/java/eu/m724/tweaks/worldborder/WorldBorderExpandModule.java b/src/main/java/eu/m724/tweaks/worldborder/WorldBorderExpandModule.java index d4e4ecf..f44d781 100644 --- a/src/main/java/eu/m724/tweaks/worldborder/WorldBorderExpandModule.java +++ b/src/main/java/eu/m724/tweaks/worldborder/WorldBorderExpandModule.java @@ -34,7 +34,7 @@ public class WorldBorderExpandModule extends TweaksModule implements Listener { } level.getWorldBorder().setAbsoluteMaxSize(30000000); - // to align with player hitbox because player can't go beyond 30m - 1 and player's hitbox is 0.6 wide so we make it "hug" the border + // to align with player hitbox because player can't go beyond 30m - 1 and player's hitbox is 0.6 wide, multiply by 2 for - and +, that's 1.2 and 60000000 - 1.2 = 59999998.6 level.getWorldBorder().setSize(59999998.6); } }