Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vidtu/antighostplugin
Server-side companion plugin for the AntiGhost mod.
https://github.com/vidtu/antighostplugin
Last synced: about 1 month ago
JSON representation
Server-side companion plugin for the AntiGhost mod.
- Host: GitHub
- URL: https://github.com/vidtu/antighostplugin
- Owner: VidTu
- License: mit
- Created: 2023-08-06T22:50:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-06T23:24:11.000Z (over 1 year ago)
- Last Synced: 2023-08-07T00:23:19.967Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AntiGhostPlugin
Server-side companion plugin for the [AntiGhost](https://modrinth.com/mod/antighost) mod.
Requires **Spigot 1.20** or newer.## Download
- [GitHub](https://github.com/VidTu/AntiGhostPlugin/releases)
## Building
You will need:
- Java JDK 17 or higher. (e.g. [Temurin](https://adoptium.net/))
- Some amount of RAM.
- A bit of storage.How to:
- Ensure your JDK is set up properly. (i.e. JDK path is in `JAVA_HOME` environment variable)
- Clone this repo or download it. (e.g. via `git clone https://github.com/VidTu/AntiGhostPlugin`)
- Open the terminal (command prompt) in the repository folder.
- Run `./gradlew build`. (`gradlew build` for command prompt)
- Grab JAR from `build/libs/`.## License
This project is licensed under [MIT License](https://github.com/VidTu/AntiGhostPlugin/blob/main/LICENSE).
## Config
```yaml
# Available modes:
# ENABLED - Uses default vanilla strategy.
# DISABLED - Disables the mod.
# CUSTOM - Uses server resend strategy via custom payloads with configurable radius.
mode: ENABLED# Radius for CUSTOM mode.
# Setting to 0 will disable sending block updates, but will allow other plugins receive block update requests.
radius: 4# Rate-limit for CUSTOM mode in milliseconds.
# Setting to 0 will disable it.
rateLimit: 1000
```## API
See [PlayerAntiGhostRegisterEvent](src/main/java/ru/vidtu/antighostplugin/events/PlayerAntiGhostRegisterEvent.java)
and [PlayerAntiGhostRequestEvent](src/main/java/ru/vidtu/antighostplugin/events/PlayerAntiGhostRequestEvent.java).