Disallow commands regardless of permission
With what method i can disable all commands for normal players (even though they have permission to use them), and allowing them use only a selective few? I have a plugin MyCommands if that helps. How would I'd like it to work exactly is whenever a player enters the denied command in chat, a custom message would pop up, denying the use of it.
52 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by bambizo#0
bukkit.command.*
spigot.command.*
minecraft.command.*
set those perms to false in luckperms
every single command will be disabled for that group
unless you specifiy it
Specify it how?
set those 3 perms to false
then they won't have access to anything
unless you tell them exactly what perm to have
That doesn't really work
and theres no such thing permision
spigot.command
Still, most of the commands work
Which ones?
Moslty all of them
which don't require prior permission setting to be used by default
isn this what u want
no command access unless you tell it exactly what perm to use
ur confusing me
Well yes, and im telling you that your method isn't working
i can still use mostly the commands
do u by chance have op yourself and the * perm
You can try using CommandWhitelist.
If a plugin doesn't use permissions, which odly enough some of them do, you will need an external plugin to block them.
cause that bypasses everything
regardless of what group ur in
no
Ok, take it like this, whenever player starts a chat like this: He would see a list of commands regardless if he's allowed to use them or not. I dont want that, i want to disable mostly all of the commands, but only use a selective few that players can use, important stuff like /help, /report, /rules, stuff like that
Ooo, that doesn't mean the player can use them.
Because my plugins functionality is mostly based on enviroment and NPC's, rather than on commands
CommandWhitelist will fix it
No well, players would have permission to use player auctions, but not using the command
but using the npc
Ill check it out rn
and does it disable like all command usage?
Yeah, it adds a whitelist so you can add there the commands you want
However, you won't be able to do that
Often, when an NPC executes a command it is run either by the console or by the player.
If the command is run by the player, he will need the perm.
oh
disable tab completion then
Umm, players would still have permission to execute the command.
Yeah
They need it
You were right at first, I need to disable all commands, and only pick the one's i really need
bukkit.command.*
spigot.command.*
minecraft.command.*
these will block everything
and give permissions to only the ones u really need
mate,
spigot.command
doesnt even show up as a possible permissionso this is how i have set mine up
and i get a error when typing help
now
i added permissions only to help
now i have permission to /help
you have a paper server?
yeah
isnt this what ur trying to do?
Give them permission for report (you find the permissions by looking in the plugin docs)
Install https://www.spigotmc.org/resources/tabcompletefilter.75208/
if other commands still appear, which you do not want to see or gave permission
SpigotMC - High Performance Minecraft
TabCompleteFilter
How did you edit that message?
This is about right?
because i can still use the commands...
Nag
Not ti false
Set it to true, if the permission should work
mate, i need the oppesite
i need so that commands WONT work
They do not work as default
If you want to block /pl or /help use a command blocker as plugin
those perms block everything
yep
?
now they dont have access to any command
unless u specify what command u want
I mean yoi can whitelist commands
by adding the perm node to it
!close
post closed!
The post/thread has been closed!
Requested by bambizo#0