๐
1 file
4,931 chars
๐
pasted-code-1775197962138.txt
txt
306 lines
โถ
pasted-code-1775197962138.txt
txt
306 lines
# ๐ ULTIMATE PROMPT โ ETERNALSRV (ADVANCED DISCORD โ MINECRAFT CONTROL PLUGIN)
Create a **high-performance, modular, and secure Minecraft plugin** named **EternalSRV** for Paper/Spigot servers.
The plugin must act as an **advanced alternative to DiscordSRV**, but with significantly more powerful systems including **custom console control, permission hierarchy, security filtering, and smart moderation**.
---
# ๐ง CORE FEATURES
## 1. Discord โ Minecraft Bridge
* Real-time chat sync (Discord โ Minecraft)
* Channel linking system
* Support multiple channels (global, staff, logs, etc.)
* Mention system (Discord โ Minecraft and vice versa)
---
## ๐ 2. ADVANCED ACCOUNT LINK SYSTEM
* `/discord link` system with code verification
* Discord bot sends DM + mention when linking
* `/discord unlink`, `/discord whois`
* When a Discord user is mentioned:
* If linked โ show Minecraft IGN
* If not linked โ show error
* Store:
* UUID
* Discord ID
* Username
---
## โ๏ธ 3. CUSTOM CONSOLE SYSTEM (CORE FEATURE)
Admins can create unlimited Discord console channels with full customization.
Each console must support:
* Channel ID binding
* Name
* Allowed commands
* Power level
* Mode (WHITELIST / BLACKLIST)
* Text blocking
Example structure:
```yaml
CustomConsoles:
admin-console:
ChannelId: ""
AllowedCommands: ["*"]
PowerLevel: 100
BlockText: true
```
---
## ๐ 4. COMMAND-ONLY SYSTEM
* Only allow commands in console channels
* Block normal text messages
* Configurable prefix (default: `!`)
* Auto-delete invalid messages
* Send warning if needed
---
## โก 5. POWER-BASED PERMISSION SYSTEM
Implement a numeric power system:
* Each role/preset has power value
* Each command requires power
Example:
```yaml
CommandsPower:
stop: 100
op: 100
ban: 80
kick: 50
mute: 40
warn: 10
```
Logic:
* If user power < required โ deny
* Else โ allow
---
## ๐ 6. PRESET ROLE SYSTEM
Create built-in presets:
* master (full access)
* sradmin
* admin
* srmod
* mod
* helper
* trialhelper
Each preset defines:
* Power level
* Permissions
* Data visibility
---
## ๐ 7. SENSITIVE DATA PROTECTION
Hide sensitive information unless user is authorized.
Data to protect:
* IP address
* UUID
* Tokens
Only visible to:
* master preset
---
## ๐งฉ 8. MULTI-CONSOLE WITH PERMISSIONS
* Each console has independent permissions
* Different command access per console
* Different power requirements per console
---
## ๐ก๏ธ 9. ADVANCED FILTER SYSTEM (REGEX)
Implement regex-based filtering system:
* Anti-IP leak
* Anti-website
* Anti-discord invite
Example:
```yaml
Regex:
IP: "(\\d{1,3}(\\.\\d{1,3}){3})"
URL: "(https?:\\/\\/|www\\.)"
```
Actions:
* BLOCK
* DELETE
* LOG
---
## ๐ซ 10. ANTIBADWORD SYSTEM (ADVANCED)
Features:
* Custom bad word list
* Case insensitive detection
* Smart bypass detection (e.g. f.u.c.k โ fuck)
* Normalize:
* Remove spaces
* Remove symbols
* Punishment system:
* warn โ mute โ ban
Modes:
* Block message
* Replace message (***)
Bypass roles supported
---
## ๐ 11. ALERT & LOG SYSTEM
* Send logs to Discord channels
* Events:
* bad word detection
* blocked message
* command usage
* link/unlink
---
## ๐ฌ 12. CHAT CONTROL SYSTEM
* Require linked account
* Mention control
* Cooldown system
* Anti-spam
* Anti-caps
---
## ๐ง 13. SMART KEYWORD HIDE SYSTEM
* Detect keywords like:
* ip
* uuid
* Automatically hide sensitive values
---
## ๐งพ 14. USERNAME SANITIZATION
* Remove unsupported characters
* Prevent formatting issues (e.g. "_" โ "/")
---
## ๐ 15. MASTER CONSOLE
* Special console for master role
* Can view:
* Full logs
* IP
* UUID
* Hidden data
---
## โ๏ธ 16. CONFIG SYSTEM
* Fully modular YAML config
* Reload support (`/eternalsrv reload`)
* Error-safe parsing
---
## ๐ง TECHNICAL REQUIREMENTS
* Platform: Paper / Spigot
* Language: Java (latest LTS)
* Use:
* JDA (Discord API)
* PlaceholderAPI support
* Async processing for performance
* Clean architecture:
* Managers (ConsoleManager, LinkManager, FilterManager)
* Services
* Listeners
---
## ๐ฅ PERFORMANCE & SECURITY
* Non-blocking async tasks
* Rate limiting
* Permission validation at every step
* Logging system
---
## ๐ก OPTIONAL (BONUS)
* Web dashboard
* Discord buttons (execute commands)
* Audit logs
* INVENTORY GUI in-game panel
---
# ๐ฏ GOAL
Build a **next-generation Discord-Minecraft control system** that is:
* Secure
* Scalable
* Fully customizable
* More powerful than DiscordSRV
---
# ๐ท๏ธ NAME
EternalSRV
Tagline:
"Next Generation Discord-Minecraft Control System"
๐
1 file
4,931 chars
๐
pasted-code-1775633149021.txt
txt
306 lines
โถ
pasted-code-1775633149021.txt
txt
306 lines
# ๐ ULTIMATE PROMPT โ ETERNALSRV (ADVANCED DISCORD โ MINECRAFT CONTROL PLUGIN)
Create a **high-performance, modular, and secure Minecraft plugin** named **EternalSRV** for Paper/Spigot servers.
The plugin must act as an **advanced alternative to DiscordSRV**, but with significantly more powerful systems including **custom console control, permission hierarchy, security filtering, and smart moderation**.
---
# ๐ง CORE FEATURES
## 1. Discord โ Minecraft Bridge
* Real-time chat sync (Discord โ Minecraft)
* Channel linking system
* Support multiple channels (global, staff, logs, etc.)
* Mention system (Discord โ Minecraft and vice versa)
---
## ๐ 2. ADVANCED ACCOUNT LINK SYSTEM
* `/discord link` system with code verification
* Discord bot sends DM + mention when linking
* `/discord unlink`, `/discord whois`
* When a Discord user is mentioned:
* If linked โ show Minecraft IGN
* If not linked โ show error
* Store:
* UUID
* Discord ID
* Username
---
## โ๏ธ 3. CUSTOM CONSOLE SYSTEM (CORE FEATURE)
Admins can create unlimited Discord console channels with full customization.
Each console must support:
* Channel ID binding
* Name
* Allowed commands
* Power level
* Mode (WHITELIST / BLACKLIST)
* Text blocking
Example structure:
```yaml
CustomConsoles:
admin-console:
ChannelId: ""
AllowedCommands: ["*"]
PowerLevel: 100
BlockText: true
```
---
## ๐ 4. COMMAND-ONLY SYSTEM
* Only allow commands in console channels
* Block normal text messages
* Configurable prefix (default: `!`)
* Auto-delete invalid messages
* Send warning if needed
---
## โก 5. POWER-BASED PERMISSION SYSTEM
Implement a numeric power system:
* Each role/preset has power value
* Each command requires power
Example:
```yaml
CommandsPower:
stop: 100
op: 100
ban: 80
kick: 50
mute: 40
warn: 10
```
Logic:
* If user power < required โ deny
* Else โ allow
---
## ๐ 6. PRESET ROLE SYSTEM
Create built-in presets:
* master (full access)
* sradmin
* admin
* srmod
* mod
* helper
* trialhelper
Each preset defines:
* Power level
* Permissions
* Data visibility
---
## ๐ 7. SENSITIVE DATA PROTECTION
Hide sensitive information unless user is authorized.
Data to protect:
* IP address
* UUID
* Tokens
Only visible to:
* master preset
---
## ๐งฉ 8. MULTI-CONSOLE WITH PERMISSIONS
* Each console has independent permissions
* Different command access per console
* Different power requirements per console
---
## ๐ก๏ธ 9. ADVANCED FILTER SYSTEM (REGEX)
Implement regex-based filtering system:
* Anti-IP leak
* Anti-website
* Anti-discord invite
Example:
```yaml
Regex:
IP: "(\\d{1,3}(\\.\\d{1,3}){3})"
URL: "(https?:\\/\\/|www\\.)"
```
Actions:
* BLOCK
* DELETE
* LOG
---
## ๐ซ 10. ANTIBADWORD SYSTEM (ADVANCED)
Features:
* Custom bad word list
* Case insensitive detection
* Smart bypass detection (e.g. f.u.c.k โ fuck)
* Normalize:
* Remove spaces
* Remove symbols
* Punishment system:
* warn โ mute โ ban
Modes:
* Block message
* Replace message (***)
Bypass roles supported
---
## ๐ 11. ALERT & LOG SYSTEM
* Send logs to Discord channels
* Events:
* bad word detection
* blocked message
* command usage
* link/unlink
---
## ๐ฌ 12. CHAT CONTROL SYSTEM
* Require linked account
* Mention control
* Cooldown system
* Anti-spam
* Anti-caps
---
## ๐ง 13. SMART KEYWORD HIDE SYSTEM
* Detect keywords like:
* ip
* uuid
* Automatically hide sensitive values
---
## ๐งพ 14. USERNAME SANITIZATION
* Remove unsupported characters
* Prevent formatting issues (e.g. "_" โ "/")
---
## ๐ 15. MASTER CONSOLE
* Special console for master role
* Can view:
* Full logs
* IP
* UUID
* Hidden data
---
## โ๏ธ 16. CONFIG SYSTEM
* Fully modular YAML config
* Reload support (`/eternalsrv reload`)
* Error-safe parsing
---
## ๐ง TECHNICAL REQUIREMENTS
* Platform: Paper / Spigot
* Language: Java (latest LTS)
* Use:
* JDA (Discord API)
* PlaceholderAPI support
* Async processing for performance
* Clean architecture:
* Managers (ConsoleManager, LinkManager, FilterManager)
* Services
* Listeners
---
## ๐ฅ PERFORMANCE & SECURITY
* Non-blocking async tasks
* Rate limiting
* Permission validation at every step
* Logging system
---
## ๐ก OPTIONAL (BONUS)
* Web dashboard
* Discord buttons (execute commands)
* Audit logs
* INVENTORY GUI in-game panel
---
# ๐ฏ GOAL
Build a **next-generation Discord-Minecraft control system** that is:
* Secure
* Scalable
* Fully customizable
* More powerful than DiscordSRV
---
# ๐ท๏ธ NAME
EternalSRV
Tagline:
"Next Generation Discord-Minecraft Control System"
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code