sCmdHide - Ulitmate Block Commands Plugin
Tired of the boring, red "You do not have permission" message? Give your server a professional touch, even when denying a command!
Ever de-opped a player, only for them to keep trying to use commands like /gamemode or /give? The default error message is functional, but it's uninspired and can make your server feel generic.
sCmdHide elegantly solves this problem. It intercepts commands from non-operators, blocks the ones you don't want them to use, and replaces the ugly error with beautiful, fully customizable messages. It's a simple way to add a layer of polish and control to your server.
Features
- Fully Configurable Blocked Commands
You have total control. In a simple config file, you can list every command you want to block for non-OP players, including commands from other plugins (like /vanish or /home).
- ✨ Beautiful & Customizable Messages
This is the core of sCmdHide. Craft the perfect response when a command is blocked:
- Full Color & HEX Support: Use standard & color codes and modern <#RRGGBB> hex codes for stunning gradients and colors.
- Placeholders: Use %player% and %command% to create dynamic messages.
- Title & Action Bar Messages: Display a message not just in chat, but as a big title on the player's screen for maximum impact.
- Custom Sounds: Play a sound effect (like a "click" or an "error" sound) to give the player instant feedback.
- Silent Admin Notifications
Stay informed without spamming chat. When a player tries to use a blocked command, a custom notification can be sent privately to staff members with the correct permission.
- Bypass Permission
Need your moderators or other staff ranks to use certain commands without being OPs? Just give them the scmdhide.bypass permission, and they can use all commands freely.
- Lightweight & Easy to Use
sCmdHide is designed to be as simple as possible. There's no complex setup. Just drop it in your plugins folder, edit the config, and you're done. A simple /scmdhide reload command means you never have to restart your server to apply changes.
How It Works
Imagine you just de-opped a player named Steve.
- Steve tries to run /gamemode creative.
- sCmdHide checks if Steve is an OP or has the bypass permission. He has neither.
- It sees that gamemode is in your blocked commands list.
- The command is cancelled instantly.
- Steve sees a beautiful, custom message in his chat and on his screen, and hears a sound effect.
- An alert is sent to all online admins: [!] Steve tried to use the blocked command: /gamemode creative.
Commands & Permissions
Command Description Permission
Code (Text):
/scmdhide reload Reloads the configuration file. scmdhide.reload
/scmdhide help Shows the plugin's help message. scmdhide.help
Permissions:
- scmdhide.bypass - Allows a non-OP player to use blocked commands.
- scmdhide.notify - Staff with this permission will receive alerts when a command is blocked.
Configuration
The config.yml is designed to be simple and easy to understand.
Code (Text):
# sCmdHide Configuration File
#
# Placeholders: %player%, %command%
# Use '&' for colors and <#RRGGBB> for HEX.
settings:
notify-admins: true
blocked-commands:
- "gamemode"
- "gm"
- "give"
- "op"
- "deop"
- "plugins"
- "pl"
- "vanish"
messages:
blocked-command-message:
- "&8&m--------------------------------------------------"
- ""
- "<#FFBF00>&l sCmdHide &8» <#FF5733>Access Denied!"
- "&7Sorry, %player%&7, you no longer have access to this command."
- ""
- "&8&m--------------------------------------------------"
send-title-message: true
title: "&c&lCOMMAND BLOCKED"
subtitle: "&7You do not have permission."
admin-notification: "&c&l[!] &e%player% &7tried to use the blocked command: &c/%command%"
sounds:
play-sound: true
sound-effect: "BLOCK_ANVIL_LAND"
volume: 1.0
pitch: 1.2
Author: Spacexstudio
Discord:
https://discord.gg/6Z2WtjShA2