BetterSecurity v1.4 | Added a system for unknown commands 1.19+
NEW CHANGES (Spigot/Bukkit)
┃Added customizable unknown messages for version 1.19+. It also works with previous versions, but if you want to just add something more. (Example: Titles, ActionBar, Etc..)
[⚠ This function with PlugMan can give problems if you upload new plugins. In that case if you run into problems, just restart the server to correctly register the new commands.]
┃In the "Block_Custom_Commands" section, you can now register multiple commands at once. By default it is "command", with this version "commands" has also been added, to block multiple commands with the same executor.
# --------- < ⚠ > --------- # This feature is only recommended for versions 1.19+! # This is because spigot does not currently edit the unknown command via spigot.yml, # but remains the default one. If you have a version lower than 1.19, you can leave it to false. # If you use PlugMan, it can cause problems if the plugin it loads registers commands for the first time. enabled: false
# If set to "true", it will fetch the unknown message directly from spigot.yml. # If it's false, then it will use the executor below. use_spigot_message: true
# If "use_spigot_message" is true, ignore this section. # < ? > You can find more information about the executors in the header. executors: - '
[MESSAGE
]%prefix%The "&b%command%&7" command was not found.'
Code (YAML):
# In this example, he shows you how you can block multiple commands with the same executor. example_Command4:
commands: - 'exampleCommand4'
- 'exampleCommand5'
warning: true
permission_required: 'bettersecurity.bypass.exampleCommands'
executors: - '
[MESSAGE
]%prefix%&cYou cannot execute this command!'
FOR SUPPORT ┃Write to me
here in private,
Telegram, or by
Discord ⚠️ After the update, reset or add the new changes, to the config.yml