SecureCommands [1.18x - 1.21x] icon

SecureCommands [1.18x - 1.21x] -----

Secure your Server's most vulnerable commands!



SecureCommands is a plugin that allows you to easily add more security to your server by focusing on the most vulnerable commands that can cause the most damage if used by an unauthorized user.


Installation Guide
This plugin is compatible from version 1.18x to 1.21x.

Download the latest version of the plugin and upload it to your server's plugins folder.

Once uploaded, restart the server for the changes to take effect.

✅ Features:
  • Block vulnerable commands using individual codes for user and user whitelisting.
  • Discord Webhook Integration
  • Database Connection (Required)
  • Automatic detection of users who have OP but have not been added to the Plugin Whitelist.
  • Automatic Premium User Detection. Cracked users are now prevented from accessing the server if they have previously logged in as Premium.
⌨️ Commands:
  • /sc setcode <code>
  • /sc resetcode <player>
  • /sc reload
  • /sc resetall
  • /sc add <player>
  • /sc remove <player>
  • /sc addcommand <command>
  • /sc removecommand <command>
  • /sc premium <player>
  • /sclogin
⁉️ FAQ:
Connect your Plugin with a Discord Webhook

Send plugin updates and security notifications to your Discord with the Discord Webhook config.

I forgot the set code what do I do?
To reset the code you must execute the /sc resetcode command from the server console, once done the /sc setcode command will be enabled again.

I want to reset the code for all users, how can I do it?
To do this you just need to run the /sc resetall command from the server console.

Code (Text):
# Database connection
database:
  host: "localhost"
  port: 3306
  name: "secure_commands"
  user: "root"
  password: "password"

# Plugin language setting
# Available languages: en, es, fr
language: "es"

# Whitelisted players
whitelist:
  - "Player1"
  - "Player2"

# Commands to protect
blocked-commands:
  - "/op"
  - "/ban"
  - "/kick"

# Discord Notifications
discord:
  # Enable or disable all Discord notifications
  enabled: false

  # Webhook to notify about plugin updates
  update-webhook-url: "YOUR_UPDATES_WEBHOOK_HERE"

  # Webhook to notify about security events (blocked commands, failed logins)
  security-webhook-url: "YOUR_SECURITY_WEBHOOK_HERE"
Code (Text):
# SecureCommands - Plugin Messages (English)
# ------------------------------------
# This configuration file centralizes all plugin messages.

# Prefix to be added to all plugin messages.
# You can customize it with colors and formatting.
prefix: '&b[SecureCommands] &r'

# ⚠️ Error and Warning Messages ⚠️
errors:
  only_players: '&cOnly players can execute this command.'
  only_console: '&cThis command can only be executed from the console.'
  not_whitelisted: '%prefix%&cYou are not on the whitelist.'
  already_authenticated: '%prefix%&cYou are already authenticated!'
  not_authenticated: '%prefix%&cThis command is protected. Please use &a/sclogin <password>&c.'
  secure_code_not_set: '%prefix%&cYou have not set a secure code yet. Use &a/sc setcode <password>&c to create one.'
  secure_code_already_set: '%prefix%&cYou have already set a secure code.'
  invalid_code: '%prefix%&cIncorrect code.'
  invalid_usage_login: '%prefix%Usage: &a/sclogin <code>'
  invalid_usage_setcode: '%prefix%Usage: &a/sc setcode <password>'
  invalid_usage_resetcode: '%prefix%Usage: &a/sc resetcode <player>'
  unknown_subcommand: '%prefix%&cUnknown subcommand. Usage: &a/sc [setcode|resetcode <player>|resetall|reload]'
  db_error_setting_code: '%prefix%&cAn error occurred while setting the secure code.'
  db_error_resetting_code: '%prefix%&cAn error occurred while trying to reset the secure code for %player%.'
  db_error_resetting_all: '%prefix%&cAn error occurred while trying to reset all secure codes.'
  no_op_permission: '%prefix%&cOnly operators or the console can execute this command.'
  player_not_found: '%prefix%&cPlayer not found: &r%player%.'
  player_not_whitelisted_for_code: '%prefix%&cPlayer &r%player%&c is not on the whitelist to have a secure code.'

# ✅ Success Messages ✅
success:
  authenticated: '%prefix%&aYou are now authenticated!'
  logged_in: '%prefix%&aLogged in successfully!'
  code_set: '%prefix%&aSecure code set successfully.'
  code_reset_player: '%prefix%&aThe secure code for player &a%player%&r has been reset successfully.'
  code_reset_all: '%prefix%&aAll secure codes have been reset successfully.'
  config_reloaded: '%prefix%&aConfiguration file has been reloaded.'
  secure_code_sent: '%prefix%&aA secure code has been sent to &r%player%&a via Discord.'

# System and Special Messages
system:
  enabled: '&aSecureCommands enabled!'
  disabled: '&cSecureCommands disabled!'
  db_connected: 'Connected to database successfully!'
  db_failed: 'Database connection failed! Shutting down the server...'
  db_not_configured: 'Database is not configured properly in config.yml!'
  update_available: 'A new version of SecureCommands is available: %version%'
  update_check_failed: 'Could not check for updates: %error%'
  discord_disabled: 'Discord notifications are disabled in config.yml. Skipping.'
  discord_webhook_not_configured: 'Discord webhook URL not configured. Skipping notification.'
  discord_sent: 'Discord notification sent successfully.'
  discord_failed: 'Discord notification failed with response code: %code%.'
  discord_alert_title: ' Security Alert '
  discord_alert_message: 'Player &e%player%&r tried to use an incorrect code: &c%password%&r.'
  discord_blocked_title: ' Command Blocked '
  discord_blocked_message: 'Player &e%player%&r tried to use a protected command: &c%command%&r.'
  discord_command_used_title: ' Command Used '
  discord_command_used_message: 'Authenticated player &e%player%&r used a protected command: &c%command%&r.'
Resource Information
Author:
----------
Total Downloads: 87
First Release: Aug 17, 2025
Last Update: Sep 15, 2025
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings