Execute commands not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

tanggo

Member
Aug 17, 2023
10
0
1
So im trying to make a skript where people cant type /pl /plugins /plugin or /? to get the plugin list, only people with op can use it, but it gives me errors and warnings


Could not pass event PlayerCommandPreprocessEvent to Skript v2.6.4 is it saying in console when i type /pl.

[13:04:02 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[13:04:02 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[13:04:02 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[13:04:02 INFO]: [Skript] Server Version: git-Paper-794 (MC: 1.16.5)
[13:04:02 INFO]: [Skript] Skript Version: 2.6.4
[13:04:02 INFO]: [Skript] Installed Skript Addons:
[13:04:02 INFO]: [Skript] - SkQuery v4.1.10
[13:04:02 INFO]: [Skript] Installed dependencies:
[13:04:02 INFO]: [Skript] - Vault v1.7.3-b131
[13:04:02 INFO]: [Skript] - WorldGuard v7.0.5+3827266

here is the code

command /pl:
permission: op
permission message: &4hov hov det må du ikke
trigger:
make player execute command "/plugins"
command /?:
permission: op
permission message: &4hov hov det må du ikke
trigger:
make player execute command "/plugins"
command /plugin:
permission: *
permission message: &4hov hov det må du ikke
trigger:
make player execute command "/plugins"
command /plugins:
permission: op
permission message: &4hov hov det må du ikke
trigger:
make player execute command "/plugins"
 
If youre using a permissions system, you can just set the permission bukkit.command.plugins to false. This would remove the permission from the default group to view the plugins. I suggest you do the same with bukkit.command.help and bukkit.command.version

Using luck perms this would look the following:
Code:
/lp group default permission set bukkit.command.plugins false
/lp group default permission set bukkit.command.version false
/lp group default permission set bukkit.command.help false

Optional:
Additionally, you can edit the spigot.yml config and set the key "send-namespaced" to false, this will remove all commands with a colon ":" for example bukkit:help etc
 
Last edited: