youhavetrouble / commandwhitelist Goto Github PK
View Code? Open in Web Editor NEWYou decide what commands players can use or tab complete on your server!
License: GNU General Public License v2.0
You decide what commands players can use or tab complete on your server!
License: GNU General Public License v2.0
Describe the bug
CMI alias commands doesn't work with the command list.
Expected behavior
Well, I expect that it could work I guess
To Reproduce
Steps to reproduce the behavior:
use-protocollib-to-detect-commands
, both cases doesn't work.Additional context
CW Version: 1.7.4
CMI Version: 8.8.4.0
Server Version: git-Purpur-1092 (MC: 1.16.5)
[00:23:26 WARN]: org.apache.commons.lang.UnhandledException: Plugin CommandWhitelist v1.7.3 generated an exception while executing task 3944
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.updateCommands()V
at eu.endermite.commandwhitelist.spigot.CommandWhitelist.lambda$reloadPluginConfig$0(CommandWhitelist.java:68)
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
Describe the bug
It would be really amazing to have a wildcard modifier for the subcommand tabcompletion section so /help * would block all subcommands for that. I've typed out every single subcommand so only /help shows up however /help help and /help helpop still show up for tab completion, and when typing /help h it will show a list of all "h" subcommands even though they are normally blocked.
Expected behavior
Block all tab completions/subcommand tabcompletions. Ease of use for blocking multiple subcommands with wildcard.
To Reproduce
Steps to reproduce the behavior:
Paper 1.17 and CW1.7.7 (luckperms, vault etc)
Describe the solution you'd like
Would be nice to have an option to allow tab completion only for the commands that the player has permission to use
Is your feature request related to a problem? Please describe.
My problem is that i need some way to manage tab completions without having to deal with the command blocker feature, there's no reason for me to use it if i got an permissions plugin
Describe the solution you'd like
A command or switch in the config to be able to use the plugin only for tab completion management
Describe alternatives you've considered
none
Additional context
Add any other context or screenshots about the feature request here.
Hello, I want to ask if the plugin is compatible with Purpur.
I use Purpur version git-Purpur-1051 (MC: 1.16.5) and with CommandWhitelist 1.7.3 but the tab completion and the whitelist doesn't work on any way.
Do you want some logs, config, or anything related? Or is the plugin not compatible with Purpur?
Describe the bug
Attempting to do / and then hit tab kicks me off the server (alt)
Expected behavior
Not show anything or kick the player
To Reproduce
Steps to reproduce the behavior:
/
and then tabScreenshots
none needed
Additional context
none
If not, will I lose any features if I don't install it on both?
Plugin doesn't work on 1.15.2 paper
Describe the bug
Base gamemode commands from the BentoBox plugin cannot be accessed, but subcommands work fine. The 'No such command' message is displayed. The issue is not fixed by enabling ProtocolLib support.
Expected behavior
Upon running a base gamemode command such as '/ob', the command executes normally.
To Reproduce
Steps to reproduce the behavior:
Is your feature request related to a problem? Please describe.
Yes. The problem is that players can still see the plugin list using the .plugins command on utility mods such as Meteor. This is closely related to commands, as commandless plugins are not shown.
Describe the solution you'd like
I'm not super knowledgeable on this but I think there is a packet, or multiple ones, that the plugin should be cancelling.
Describe alternatives you've considered
Look into ProtocolLib stuff is my guess.
Additional context
Just to confirm, the "hacks" are able to tell command arguments beginnings, hence displaying the "plugin list". What I mean is "minecraft:", "essentials:" etc. Another conclusible thing is that they are able to display server brand command beginnings as well, such as "paper:", "purpur:" etc.
I switched from a plugin that's similar to this one, and they're asking users to purchase the premium version of it to be able to block .plugins.
Implementing a workaround seems very possible to do since there are multiple servers that are successful at blocking .plugins, so it would be really nice if you figured it out.
I'm having an issue where when I type /help, it will show all subcommands and reveal all the plugins that I'm using.
I'm using essentials, and I have to give permission essentials.help to the default group in order for them to use /help, otherwise it will say they don't have permission even if 'help' is whitelisted for the default group.
Due to this, I was wondering if subcommands can be whitelisted instead (same as commands) so I can whitelist only the subcommands I want people to see.
Right now, I would have to blacklist a whole bunch of subcommands in order for people to not see them which is very tedious.
Perhaps, this could be a new feature. For example, you could add an option in the config for people to choose whether they want subcommands to be whitelisted or blacklisted. Let's say if set to true, subcommands will act as a whitelist, and if set to false, subcommands will act as a blacklist.
Hi when I put this plugin on bungeecord it doesn't seem to me the permissions to put groups with lp what can I do?
i'm using 3 servers: bungeecord, spigot 1.12.2 and paper 1.16.2 and this plugin hides bungee commands on spigot server but not on paper
I mean if it is possible for this plugin to do that.
Like I don not have op, but I can use /tp.
It seems that it is impossible for Velocity Plugin to do that.
Thank you.
Console Error
[19:57:26] [Server thread/INFO]: [CommandWhitelist] Enabling CommandWhitelist v2.2.1
[19:57:26] [Server thread/ERROR]: Error occurred while enabling CommandWhitelist v2.2.1 (Is it up to date?)
java.lang.NoSuchMethodError: eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit.getSLF4JLogger()Lorg/slf4j/Logger;
at eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit.reloadPluginConfig(CommandWhitelistBukkit.java:71) ~[?:?]
at eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit.onEnable(CommandWhitelistBukkit.java:38) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched.jar:git-PaperSpigot-"4c7641d"]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_311]
[19:57:26] [Server thread/INFO]: [CommandWhitelist] Disabling CommandWhitelist v2.2.1
Server Version
1.8.8 PaperSpigot
Using latest version of plugin (v2.2.1)
Describe the bug
Error on console.
https://gist.github.com/SrBedrock/058732545c0f98108cff1865af8cbf30
[20:34:55 INFO]: CENSORED issued server command: /cw add default worldguard
[20:34:55 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'cw' in plugin CommandWhitelist v1.7.8
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_282]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_282]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.updateCommands()V
at eu.endermite.commandwhitelist.spigot.config.ConfigCache.addCommand(ConfigCache.java:65) ~[?:?]
at eu.endermite.commandwhitelist.spigot.command.MainCommand.onCommand(MainCommand.java:33) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[server.jar:git-Spigot-db6de12-18fbb24]
... 15 more
Subcommand blocker doesn't work for all commands, confirmed for luckperms subcommands
First of all, thanks for making this plugin it's rly awesome and saved me alot of pain! So i've created a group called "admin" inside the config.yml which should be corresponding to my "admin" group inside of the Luckperms permission manager. If i've got that right from the wiki these two groups are supposed to be working with each other. My problem is that the commands (even if permitted through LP) are not showing up for the Char with the "admin" group. The command will only show up if i put them in the "default" group in the config.yml (even if the admin group isn't set to inherit "default"'s permissions through LP) and set the corresponding permissions to the "admin" group. So all in all, my "admin" group isn't doing anything, i mean i could leave it completely blank and just manage the visibility through permissions and putting the commands in the "default" group but that's not exactly an elegant way to do it. Hope i could describe my problem understandably. I think it's most likely a problem on my end, but maybe you're able to help me.. Thanks in advance though!!
Here is the config as .txt (as github doesnt support yml)
config.txt
Any plan to add a command to reload config file? It would be much easier to add new whitelist command
I have numerous custom commands for custom help files, etc. which I've created using commands.rs and whitelisted in my CommandWhitelist plugin. The commands work when entered BUT display as red text and an error overlay reading "Unknown or incomplete command, see below for error at position 1: /<--HERE]" appears above the chat entry field.
I've tried creating dummy entries in Bukkit's command.yml but otherwise I'm out of ideas for how to get the server to recognize these as legitimate commands during entry. Any ideas?
Is your feature request related to a problem? Please describe.
The only plugin that has Bungeecord (and Spigot) anti-tab complete support costs $8
Describe the solution you'd like
Support for Bungeecord
Describe alternatives you've considered
Buying the $8 plugin or not having anti-tab complete for Bungeecord commands
Unexpected exception while parsing console command "cw add default hotrest" org.bukkit.command.CommandException: Unhandled exception executing command 'cw' in plugin CommandWhitelist v1.7.8 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[server.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_302] Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.updateCommands()V at eu.endermite.commandwhitelist.spigot.config.ConfigCache.addCommand(ConfigCache.java:65) ~[?:?] at eu.endermite.commandwhitelist.spigot.command.MainCommand.onCommand(MainCommand.java:33) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[server.jar:git-Spigot-db6de12-18fbb24] ... 8 more
What version of commandwhitelist works perfectly with 1.8?
I found some bugs in the latest version with 1.8.8 in use
Will you consider making that if we define help
it'll allow us to ONLY use /help
not /help anything1
?
If we want to allow ANY subcommand as another arg, we define help *
as allowed, that will allow us to execute /help anything1
but not /help anything1 anything2
?
Please consider this because there are still vulnerabilities if you have big complex of plugins (a lot of plugins) or custom stuff, this is very neat
Thank you for developing this.
Describe the bug
When I try to use /vcw with the default config, it shows an error in console.
Expected behavior
I expected to use the command without any issues.
To Reproduce
Steps to reproduce the behavior:
Additional context
I haven't updated my proxy in a while, maybe I'm outdated.
For example, i have a custom alias for /cmi spawn command. It is /spawn. But when i add spawn command to whitelist, it is not working. Custom aliases are blocking from plugin.
the first case:
commands: default: - wand
The //wand command works, but tab complete doesn't work
the second case:
commands: default: - /wand
The //wand command doesn't work, but tab complete does
use-protocollib-to-detect-commands: true
Separating this for #32
A wildcard for subcommand filter that would block all subcommands.
Describe the bug
Plugin doesn't work as intended.
Expected behavior
Block commands & subcommands.
To Reproduce
Install PaperSpigot 1.8.8 (443), install ProtocolLib 4.6.0, install CommandWhitelist 1.7.1, try my config.
Additional context
[14:05:48 INFO]: [CommandWhitelist] Enabling CommandWhitelist v1.7.1
[14:05:48 ERROR]: [CommandWhitelist] Plugin CommandWhitelist v1.7.1 has failed to register events for class eu.endermite.commandwhitelist.spigot.listeners.PlayerCommandSendListener because org/bukkit/event/player/PlayerCommandSendEvent does not exist.
[14:05:48 INFO]: [CommandWhitelist] §bRunning in legacy mode...
[14:05:48 ERROR]: [CommandWhitelist] Plugin CommandWhitelist v1.7.1 has failed to register events for class eu.endermite.commandwhitelist.spigot.listeners.TabCompleteBlockerListener because org/bukkit/event/server/TabCompleteEvent does not exist.
works -> plugincommand
not works ->plugincommand:wasd
Greetings.
I run a PaperMC 1.16.5 server with ViaVersion-3.2.1 + ViaBackwards-3.2.0.
When using 1.16.5, CommandWhitelist works flawlessly as expected.
Describe the bug
But if I use Minecraft 1.12.2, open the chat, type /
and then press TAB
, it shows all the server commands, including the ones that normal players without permissions couldn't use.
Expected behavior
Commands shouldn't be displayed for users without permission.
To Reproduce
/
, and then press TAB
Additional context
Describe the bug
When I try to use MiniMessage and test its use in the console, the message is displayed without the color
Expected behavior
Messages are colored correctly
To Reproduce
Steps to reproduce the behavior:
Additional context
I have tried the command "/vcw add (group) (command)" and the corresponding message is displayed "correctly" (There is color, but it cuts like a client version <1.15.)
It seems that the problem is only in the command "/vcw reload".
Is your feature request related to a problem? Please describe.
Hey there! I am confident in my permission setup, but my problem is that certain plugins have commands that can be called upon by players even when they can't access them, which confuses them. It is significantly easier just listing those annoying commands than adding 3 times more commands to whitelist, and keep updating the list after every new plugin is added.
If it is possible, could there be an option to treat the whitelist as a blacklist, so the plugin blocks the command in the list?
I know this is weird considering the name of the plugin, but it would be nice.
Thanks!
Suggestion iam not programer, but could u achieve something liek this?
#Enabled servers
auth=[
"example_permision",
"example_permision_2"
]
hub=[
"example_permision",
"example_permision_2"
]
#
#Settings for permisions
permisions {
example_permision=[
mode=whitelist
whitelist=[
"login"
"register"
]
blacklist=[
"say"
]
}
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
[13:29:14] [Server thread/ERROR]: Encountered an unexpected exception
com.google.gson.JsonSyntaxException: Expected entry to be a JsonObject, was "Sebby"
at afd.m(SourceFile:393) ~[minecraft_server.1.16.5.jar:?]
at acy.f(SourceFile:122) ~[minecraft_server.1.16.5.jar:?]
at zf.y(SourceFile:95) ~[minecraft_server.1.16.5.jar:?]
at zf.<init>(SourceFile:22) ~[minecraft_server.1.16.5.jar:?]
at zg.d(SourceFile:169) ~[minecraft_server.1.16.5.jar:?]
at net.minecraft.server.MinecraftServer.w(SourceFile:645) ~[minecraft_server.1.16.5.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[minecraft_server.1.16.5.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
[13:29:14] [Server thread/ERROR]: This crash report has been saved to: D:\Uploads\damnserver 2\minecraft\.\crash-reports\crash-2022-07-06_13.29.14-server.txt
[13:29:14] [Server thread/INFO]: Stopping server
[13:29:14] [Server thread/INFO]: Saving worlds
[13:29:14] [Server thread/ERROR]: Exception stopping the server
java.lang.NullPointerException: Cannot invoke "aag.f()" because "?" is null
at net.minecraft.server.MinecraftServer.a(SourceFile:572) ~[minecraft_server.1.16.5.jar:?]
at net.minecraft.server.MinecraftServer.t(SourceFile:599) ~[minecraft_server.1.16.5.jar:?]
at zg.t(SourceFile:567) ~[minecraft_server.1.16.5.jar:?]
at net.minecraft.server.MinecraftServer.w(SourceFile:707) ~[minecraft_server.1.16.5.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[minecraft_server.1.16.5.jar:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
I fixed many command alias with your suggestion but only /cmi reply $1- command does not work.
I tried this way but its not working;
commands.yml
r:
Hello, I'm using a 1.16.5 paper server with the essentialsx plugin and was hoping to hide the /help tab completion items. When typing /help then space it shows a list of every command. I verified that the user is not OP and only has the commandwhitelist.commands.default permission as well as the command associated essentials permissions like essentials.help
Everything else seems to be working great!
Ideally /help should only show the same list as /[tab] (or nothing as the help file would also be able to list the commands).
I tested the whitelist without essentialsx and I could manually add every single command to the list, however once I reinstalled the plugin, they were no longer blocked by the whitelist.
If there is a way in the whitelist to simply block all subcommands from /help that would also help a lot.
Thank you for your time!
Hello, I want to reload the plugin in FlameCord but it doesn't work. Says: '>....�=>.... [15:08:31 INFO]: Command not found'
Do I need a permission to do it in game or what is the correct command to reload the config in FlameCord?
And if I put two groups or more, all the commands of those groups will be appear in the tablist?
Besides, I don't see if the plugin has commands to execute, like /commandwhitelist /cw or something like that
Describe the bug
Hi sorry for my english, i'm french.
So, I am a 1.16.5 paper spigot.
The bug is that when I don't use the protocolib detect option,
the commands block well, the general complete tab works well on the other hand the blocking of the subscommands does not work.
And when I use the protocolib option, the commands block well, the subscommands block well but we see all the commands in general in the complete tab, even those to which I do not have access.
I'm using CommandWhitelist-1.3.3 and ProtocolLib v4.6.0 -SNAPSHOT-b482 and git-Paper-253 (MC: 1.16.3).
The problem is the default messages that cannot be changed.
Previous versions was fine.
I installed the latest version of plugin for Paper 1.19, using the Bukkit one release, I activated the Protocolib setting in the config, and seems is broken, I get this error on the console when tabbing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.