Misc
All checks were successful
/ build (push) Successful in 1m10s

This commit is contained in:
Minecon724 2025-01-18 18:36:24 +01:00
parent 19ab653181
commit 2430416915
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
3 changed files with 19 additions and 20 deletions

View file

@ -7,8 +7,8 @@ jobs:
- name: Install JDK and other deps - name: Install JDK and other deps
run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
- name: Clone repository - name: Checkout
run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git . uses: https://github.com/actions/checkout@v4
- name: Download NMS - name: Download NMS
run: ./tools/download_nms.sh ~ run: ./tools/download_nms.sh ~

View file

@ -12,37 +12,37 @@ Please report all suspicious behavior. You can do so on any of those:
Stuff no<sub><sup>t many</sup></sub> other plugins do. Stuff no<sub><sup>t many</sup></sub> other plugins do.
Dependencies: Dependencies:
- **1.21.1**, recommended as the plugin uses NMS for some stuff \ - **1.21.1 and newer**
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)
- [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) - [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/)
- To use modules marked <sup><sub>N</sub></sup>, you must use a JAR made precisely for your server version.
# Features # Features
### Expand world border <sup><sub>N</sub></sup> - requires a specific version \
<sup><sub>P</sub></sup> - requires ProtocolLib
### Expand world border <sup><sub>N</sub></sup>
Expands the world border to 30,000,000 (from 29,999,984) Expands the world border to 30,000,000 (from 29,999,984)
### Hide world border ### Hide world border <sup><sub>P</sub></sup>
Hides the world border. It's still there, just invisible. Hides the world border. It's still there, just invisible.
### Server brand ### Server brand <sup><sub>N P</sub></sup>
Modify the F3 brand, optionally include player's ping and server performance Modify the F3 brand, optionally include player's ping and server performance
### Doors ### Doors
Open two doors with one click. Knock on doors. Open two doors with one click. Knock on doors.
### MOTD ### MOTD <sup><sub>N P</sub></sup>
Random MOTD for every ping Random MOTD for every ping
### Chat rooms ### Chat mods <sup><sub>N</sub></sup>
Chat rooms players can freely create and join. Alerts like death and join messages are only within the player's chat room. - 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 \ `/chat` - switch chat room \
`/chatmanage` - create, delete, modify etc. (`tweaks724.chatmanage`) `/chatmanage` - create, delete, modify etc. (`tweaks724.chatmanage`)
### Proximity chat
Self-explanatory
### Compass ### Compass
Holding a compass shows a bar with 4 directions and stuff like beds, lodestones, death pos (TODO) etc. 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`) `/updates` - shows available updates (`tweaks724.updates`)
### Hardcore ### Hardcore <sup><sub>N P</sub></sup>
Hardcore hearts by chance Hardcore hearts by chance
### Sleep ### Sleep
@ -78,7 +78,7 @@ It can be enabled that new players can't join the server without a key
### Full join ### Full join
Players with `tweaks724.bypass-full` can join even when the server is full Players with `tweaks724.bypass-full` can join even when the server is full
### Emergency alerts ### Emergency alerts <sup><sub>P</sub></sup>
Issue messages that the player needs to read to keep playing, and that make an attention grabbing sound Issue messages that the player needs to read to keep playing, and that make an attention grabbing sound
`/emergencyalerts` (`tweaks724.emergencyalerts`) `/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) [KILLSWITCH.md for more info](/Minecon724/tweaks724/src/branch/master/docs/KILLSWITCH.md)
### Swing through grass ### Swing through grass
Self-explanatory
### Utility commands ### Utility commands
- `/ping` - displays player ping \ - `/ping` - displays player ping <sup><sub>P</sub></sup> \
**Ping is calculated by the plugin**. \ **Ping is calculated by the plugin**. \
That allows for more precision (decimal places) and to get the ping immediately after a player join That allows for more precision (decimal places) and to get the ping immediately after a player join

View file

@ -34,7 +34,7 @@ public class WorldBorderExpandModule extends TweaksModule implements Listener {
} }
level.getWorldBorder().setAbsoluteMaxSize(30000000); 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); level.getWorldBorder().setSize(59999998.6);
} }
} }