https://github.com/hbidamian/crashbanusers
Upon onPlayerLogin, crash banned user's clients will be crashed.
https://github.com/hbidamian/crashbanusers
Last synced: about 2 months ago
JSON representation
Upon onPlayerLogin, crash banned user's clients will be crashed.
- Host: GitHub
- URL: https://github.com/hbidamian/crashbanusers
- Owner: HBIDamian
- License: apache-2.0
- Created: 2022-07-18T01:11:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-02T00:56:34.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T22:35:40.560Z (4 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CrashBanUsers
Upon onPlayerLogin, crash-banned user's clients will be crashed.__**How it works:**__
Basically if the y coordinate ≃ `-2,147,483,648` (Min x32 Signed Int) or `2,147,483,647` (Max x32 Signed Int), the client will crash.
After inspiration from [Jason's Plugin](https://github.com/jasonwynn10/CrashAndBan/), I've made this feature plugin of its own.
This plugin is different, seeing as the fact that `$sender` is also able to unban the player via command, also (within the `crash-banned-users.json` file it tells you who banned the player.## Usage:
| Command | Description | Alias(es) | Permission |
| ---------------------- | ----------------- | -------------------- | --------------------------- |
| `/crashban ` | Bans the player | cban | crashbanusers.command.ban |
| `/crashunban ` | Unbans the player | cpardon, crashpardon | crashbanusers.command.unban |## How do I unban a player manually?
This shouldn't be necessary, as `/crashunban` already does the advanced option already, but it's here so you know what to do if you're bored. Just don't come running to me when there are issues.1. In `plugin_data/CrashBanUsers/crash-banned-users.json`, delete the user's name.
2. In the `players/` directory, search for the player's name, and do either one of the following:
- (Easiest Option - Deletes their data:) Delete the player's `.dat` file
- (Advanced Option:) Head to your favourite NBT Editor (For example, https://irath96.github.io/webNBT/ or https://github.com/jaquadro/NBTExplorer). Head to "Pos", and change the integers to any coordinate of your choice, so long as it's sensible.## Plugin's Inspiration:
- I was playing around and found out (with help from @JavierLeon9966) that (in this case) the height integer was 32bit signed.
- https://github.com/jasonwynn10/CrashAndBan - Jason's CrashAndBan Plugin (which is currently archived)