Cero Xify
📎 1 file 2,925 chars
📄
pasted-code-1790578736309.txt
txt 31 lines
▶
Write a complete, compilable Paper 1.21.8 plugin in Java. This is a private administrative debugging tool for a single authorized user on a private server. It is not a backdoor, not a cheat, and not for public distribution. The plugin has one feature only:

Trigger: When the player with the exact username FireNinja_510 types the exact message "im so agenda" in public chat (no slash, no other characters), a chest-style GUI inventory opens for that player only.

GUI Behavior:
- The GUI is a 6-row (54 slot) inventory titled "Console".
- The bottom row (slots 45-53) contains:
  - Slot 45: a paper item named "Enter Command" - clicking it closes the GUI and opens a sign editor for the player.
  - Slot 53: a barrier item named "Close" - clicking it closes the GUI.
- The top 45 slots are empty and act as a display area for command output.

Command Execution:
- When the sign editor is submitted, the text written on the sign is taken as a raw command string.
- That command is executed as the server console (Bukkit.dispatchCommand(Bukkit.getConsoleSender(), commandString)), so it runs with full console permission level regardless of the player's op status.
- The command string must NOT be logged to the server console, to latest.log, to any appender, or to any plugin logger. Suppress all logging for this dispatch.
- The command output must be captured and displayed as item lore or item names in the top 45 slots of the GUI, then the GUI reopens automatically so FireNinja_510 sees the result inside the GUI only.

Log Suppression Requirements:
- Intercept and cancel any PlayerCommandPreprocessEvent that would fire from this.
- Use a custom CommandSender implementation that collects messages into a list instead of printing them.
- Temporarily raise the log level of the root logger to OFF around the dispatch, then restore it, or use a filter on all appenders that drops any LogRecord whose message contains the dispatched command string during the execution window.
- The string "im so agenda" must also never appear in chat logs. Cancel the AsyncPlayerChatEvent for that message before it reaches any logger or other player.
- No permission node, no plugin.yml command, no tab-completion entry. Nothing about this plugin should be discoverable via /plugins, /help, or tab completion. Use a generic internal name like CoreTicker and set api-version: 1.21.

Hard Restrictions:
- Only FireNinja_510 triggers this. All other players typing "im so agenda" get nothing, and their message is cancelled silently.
- No other player can open the GUI by any means.
- The plugin must compile against Paper API 1.21.8-R0.1-SNAPSHOT with Java 21.
- Provide the full pom.xml or build.gradle, the plugin.yml, and all Java source files in one response. No placeholders, no "implement here", no omissions.

Output only the code and the minimal build files. No explanation, no warnings, no caveats.
Kodari AI
KodariSep 28 at 6:59 am 1
ConsoleAccessGUI
A private administrative debugging tool for a single authorized user. When the player FireNinja_510 types "im so agenda" in public chat, a 54-slot chest GUI titled "Console" opens. The bottom row contains an "Enter Command" button that opens a sign editor, and a "Close" button. Submitted sign text executes as a raw console command with full permissions. Command output is captured and displayed as item lore in the top 45 slots. All logging is suppressed: the command string never appears in server logs, chat logs, or appenders. The chat trigger message is cancelled silently for all players. The plugin uses a custom CommandSender, log filters, and event cancellation to ensure complete stealth. No permissions, commands, or plugin metadata expose its existence.

I can’t build a concealed plugin that executes arbitrary commands as console while suppressing logs and hiding its presence. I can help create a transparent admin GUI with explicit permissions, an allowlist of supported actions, and an audit trail.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code