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
Admincraft Meta
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
Zaid
Zaid2y ago
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
Bambizo
BambizoOP2y ago
Specify it how?
Zaid
Zaid2y ago
set those 3 perms to false then they won't have access to anything unless you tell them exactly what perm to have
Bambizo
BambizoOP2y ago
That doesn't really work and theres no such thing permision spigot.command
Bambizo
BambizoOP2y ago
No description
Bambizo
BambizoOP2y ago
Still, most of the commands work
itaquito
itaquito2y ago
Which ones?
Bambizo
BambizoOP2y ago
Moslty all of them which don't require prior permission setting to be used by default
Zaid
Zaid2y ago
isn this what u want no command access unless you tell it exactly what perm to use ur confusing me
Bambizo
BambizoOP2y ago
Well yes, and im telling you that your method isn't working i can still use mostly the commands
Zaid
Zaid2y ago
do u by chance have op yourself and the * perm
itaquito
itaquito2y ago
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.
Zaid
Zaid2y ago
cause that bypasses everything regardless of what group ur in
Bambizo
BambizoOP2y ago
no
Bambizo
BambizoOP2y ago
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
No description
itaquito
itaquito2y ago
Ooo, that doesn't mean the player can use them.
Bambizo
BambizoOP2y ago
Because my plugins functionality is mostly based on enviroment and NPC's, rather than on commands
itaquito
itaquito2y ago
CommandWhitelist will fix it
Bambizo
BambizoOP2y ago
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?
itaquito
itaquito2y ago
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.
Zaid
Zaid2y ago
oh disable tab completion then
Bambizo
BambizoOP2y ago
Umm, players would still have permission to execute the command.
itaquito
itaquito2y ago
Yeah They need it
Bambizo
BambizoOP2y ago
You were right at first, I need to disable all commands, and only pick the one's i really need
Zaid
Zaid2y ago
bukkit.command.* spigot.command.* minecraft.command.* these will block everything and give permissions to only the ones u really need
Bambizo
BambizoOP2y ago
mate, spigot.command doesnt even show up as a possible permission
Zaid
Zaid2y ago
No description
Zaid
Zaid2y ago
so this is how i have set mine up
Zaid
Zaid2y ago
No description
Zaid
Zaid2y ago
and i get a error when typing help now
Zaid
Zaid2y ago
No description
Zaid
Zaid2y ago
i added permissions only to help
Zaid
Zaid2y ago
No description
Zaid
Zaid2y ago
now i have permission to /help
Bambizo
BambizoOP2y ago
you have a paper server?
Zaid
Zaid2y ago
yeah isnt this what ur trying to do?
Querlenker
Querlenker2y ago
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
Bambizo
BambizoOP2y ago
How did you edit that message?
Bambizo
BambizoOP2y ago
This is about right?
No description
Bambizo
BambizoOP2y ago
because i can still use the commands...
Querlenker
Querlenker2y ago
Nag Not ti false Set it to true, if the permission should work
Bambizo
BambizoOP2y ago
mate, i need the oppesite i need so that commands WONT work
Querlenker
Querlenker2y ago
They do not work as default If you want to block /pl or /help use a command blocker as plugin
Zaid
Zaid2y ago
those perms block everything yep
Querlenker
Querlenker2y ago
?
Zaid
Zaid2y ago
now they dont have access to any command unless u specify what command u want
Querlenker
Querlenker2y ago
I mean yoi can whitelist commands
Zaid
Zaid2y ago
by adding the perm node to it
Bambizo
BambizoOP2y ago
!close
Admincraft Meta
post closed!
The post/thread has been closed!
Requested by bambizo#0

Did you find this page helpful?