This commit is contained in:
78
readme.md
78
readme.md
@@ -1,15 +1,71 @@
|
|||||||
# plugin hider for minecraft v1.21.5
|
# <img src="logo.png" alt="PlugHide Logo" width="50"/> PlugHide 🔌🛡️
|
||||||
|
|
||||||
this plugin hides commands such as
|
**PlugHide** is a Kotlin-based Minecraft plugin designed to enhance server security by blocking sensitive or administrative commands from non-OP players. It prevents command abuse, tab-completion leaks, and provides operator alerts when unauthorized access is attempted.
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
---
|
||||||
|
|
||||||
|
## ✨ Features
|
||||||
|
|
||||||
|
- 🚫 Blocks default plugin-discovering commands (`/pl`, `/plugins`, `/version`, etc.)
|
||||||
|
- ⚠️ Notifies OPs when blocked commands are attempted
|
||||||
|
- 🔍 Filters tab-completion to prevent exposing server plugins
|
||||||
|
- ✅ Fully configurable and lightweight
|
||||||
|
- 🧩 Built using Bukkit/Spigot API
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📦 Installation
|
||||||
|
|
||||||
|
1. Download the latest release `.jar` file
|
||||||
|
2. Place it in your server's `plugins` folder
|
||||||
|
3. Restart or reload your server
|
||||||
|
4. You're all set — no configuration needed!
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🧠 How It Works
|
||||||
|
|
||||||
|
- **Command Blocking**: Intercepts `PlayerCommandPreprocessEvent` to cancel and report blocked commands
|
||||||
|
- **Tab Filtering**: Modifies `TabCompleteEvent` to hide suspicious completions
|
||||||
|
- **OP Notifications**: Sends styled messages to online OPs when non-OPs attempt forbidden actions
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## ⚙️ Customization (Coming Soon!)
|
||||||
|
|
||||||
|
Future updates will include:
|
||||||
|
- Customizable blocked command list
|
||||||
|
- Toggleable plugin features
|
||||||
|
- Custom OP notification messages
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 👨💻 Developer Info
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
private val blockedCommands = listOf(
|
class PlugHide : JavaPlugin(), Listener {
|
||||||
"/pl", "/plugins", "/plugin", "/bukkit:pl", "/bukkit:plugins", "/bukkit:plugin",
|
override fun onEnable() {
|
||||||
"/minecraft:pl", "/minecraft:plugins", "/minecraft:plugin",
|
logger.info("PlugHide has been enabled!")
|
||||||
"/ver", "/version", "/bukkit:ver", "/bukkit:version",
|
server.pluginManager.registerEvents(this, this)
|
||||||
"/minecraft:ver", "/minecraft:version",
|
}
|
||||||
"/about", "/bukkit:about", "/minecraft:about",
|
}
|
||||||
"/help", "/bukkit:help", "/minecraft:help",
|
|
||||||
"/?", "/bukkit:?", "/minecraft:?"
|
|
||||||
)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Built with ❤️ in Kotlin.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📃 License
|
||||||
|
|
||||||
|
MIT License — do whatever you want with it, just give credit if you build on it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🤝 Contributions
|
||||||
|
|
||||||
|
Feel free to submit issues or pull requests on GitHub. Suggestions and improvements are always welcome!
|
||||||
|
|
||||||
|
---
|
||||||
Reference in New Issue
Block a user