Giter Club home page Giter Club logo

commandblocker's Introduction

Hi there! I'm Trey!

I am a self-taught developer that specializes in Minecraft.

commandblocker's People

Contributors

snyk-bot avatar treyruffy avatar treyswebhooks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

commandblocker's Issues

[Bug] Bungee Command not blocked

Describe the bug

  • BungeeCord plugin won't block configured bungeecommand, it do nothing.
  • But plugin start successful, without error.

Screenshot: None

Desktop:

  1. Server Type: WaterFall
  2. Plugin version: 2.1.1
  3. Version: Last

Make the reaction contain a command.

For example, be able to do something like:
Plugins: Message: 'Plugins (5): There. Is nothing. To. See. Here.' Permission: cb.allow.plugins Command: '/effect %player% nausea 1 60'

[Feature]

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
A cIs it possible to integrate a notification that teamers are informed when a player enters a blocked command, where the player and the command are then displayed?

Additional context
Message like "Player used the blocked Command ...

Bypass Permissions

Hello, was wondering what the permission is to bypass the blocked commands/?

[Bug]

plugin don't hide tab complete commands in 1.16

[Bug] CB 2.1.1 not blocking tab complete

Describe the bug
CommandBlocker 2.1.1 does not block tab complete attempts when ProtocolLib 4.6.0

To Reproduce

  1. Install CommandBlocker 2.1.1 and ProtocolLib 4.6.0
  2. Configure CommandBlocker like you'd do normally
  3. Set DisableTabComplete to true in "config.yml" (CommandBlocker)
  4. Restart your server to make sure your changes take effect
  5. View the results

Expected behavior
Tab complete should be disabled, but for some reason it isn't. I'd assume it has something to do with the code.

Screenshots
n/a

Desktop (please complete the following information):

  • Server Type: Paper
  • Version: 1.8.8(9)

Additional context
Before submitting this issue, I went ahead and downgraded to CommandBlocker 2.0.0, and the issue wasn't present there. So, something has changed with the latest build.

[Bug]

Desktop (please complete the following information):

  • Server Type: paperspigot
  • Version 1.16

I get his error?

Trey's Command Blocker] Enabling CommandBlocker v2.1.2
[03:18:04] [Server thread/ERROR]: Error occurred while enabling CommandBlocker v2.1.2 (Is it up to date?)
java.lang.NoSuchMethodError: 'java.lang.Object net.kyori.adventure.platform.facet.FacetAudience.getOrDefault(net.kyori.adventure.pointer.Pointer, java.lang.Object)'
at net.kyori.adventure.platform.facet.FacetAudienceProvider.addViewer(FacetAudienceProvider.java:113) ~[?:?]
at net.kyori.adventure.platform.bukkit.BukkitAudiencesImpl.(BukkitAudiencesImpl.java:99) ~[?:?]
at net.kyori.adventure.platform.bukkit.BukkitAudiencesImpl$Builder.lambda$build$1(BukkitAudiencesImpl.java:175) ~[?:?]
at java.util.HashMap.computeIfAbsent(HashMap.java:1220) ~[?:?]
at java.util.Collections$SynchronizedMap.computeIfAbsent(Collections.java:2760) ~[?:?]
at net.kyori.adventure.platform.bukkit.BukkitAudiencesImpl$Builder.build(BukkitAudiencesImpl.java:173) ~[?:?]
at net.kyori.adventure.platform.bukkit.BukkitAudiencesImpl.instanceFor(BukkitAudiencesImpl.java:89) ~[?:?]
at net.kyori.adventure.platform.bukkit.BukkitAudiences.create(BukkitAudiences.java:53) ~[?:?]
at me.treyruffy.commandblocker.bukkit.BukkitMain.onEnable(BukkitMain.java:42) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-794]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-794]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-794]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-794]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-794]
at java.lang.Thread.run(Thread.java:833) [?:?]

[Bug] /? command

I can't manage to block the "/?" command, it's the only one not working. If I try to add it manually to the disabled.yml file and reload the plugin it doesn't work. If I use "/cb edit ?" then it works. If I use /cb reload it's removed for no reason. Now it's even on the config but the command is still not blocked.

[Bug] Blocking Operator Commands Does Not Work

Describe the bug
When blocking operators' commands it does not work, whether I use in-game commands or file editing to add it.

To Reproduce
Install Command Blocker
Run it on the server
Add a opblock command
Try the command on an operator account
The command continues to function like normal, not blocked.

Expected behavior
To block the command for operators and provide the message/execute the commands.

Desktop (please complete the following information):

  • Server Type: Paper Spigot
  • Version: 1.16.5-788 (Latest 1.16.5 Paper Spigot)

Additional context
No errors in Console or On Startup.

Thanks, amazing plugin other than this issue!

[Bug] Plugin Won't Start

Describe the bug
Plugin won't start, and was disabled when it try to start

Screenshotsimage

Desktop (please complete the following information):

  • Server Type:Paper
  • Version 1.16.5

[Feature] add regex and : block

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 a player can use commands with a colon, I would like to block /citizens:npc ( in the command blocker .:. does not work, and : does not block the command above.)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Add support for regular expressions and a detailed description of the plugin's functions. I couldn't find it on spigot or on the git-hub.

Additional context
Add any other context or screenshots about the feature request here.

Add regulars please). The plugin is great, without bungee cord support I would have drowned myself(

[Bug] [ViaVersion] ERROR IN Protocol1_19To1_18_2 IN REMAP OF CHAT_MESSAGE (0x0F)

need to update commandblocker, i am getting this error:

[ViaVersion] ERROR IN Protocol1_19To1_18_2 IN REMAP OF CHAT_MESSAGE (0x0F)

pasting into google, seems playervaults had the same issue, viaversion devs responded with:

"PlayerVaults is using a version of adventure-platform-bukkit that writes bad packet data with Via API; it needs to use the latest snapshot version of the library, being 4.1.2-SNAPSHOT (to be changed here https://github.com/drtshock/PlayerVaults/blob/master/pom.xml#L104), that'll fix the issue"

(ViaVersion/ViaVersion#3070)

this occurs when running commandblocker 2.1.2 on a 1.8.8 server with viaversion, and using a 1.19.2 client on that 1.8.8 server with commandblocker. every time i try and use a command that is blocked, it provides no output in game and in console it shows the error:

[ViaVersion] ERROR IN Protocol1_19To1_18_2 IN REMAP OF CHAT_MESSAGE (0x0F)

Blocking aliases

Add the alias block. For example, the /ban command is blocked, all aliases of this command will also be blocked (/eban ...)

Bug Report

Hello, I've been using your CommandBlocker since 1.9 and it used to work great!
Unfortunately after updating past 1.14 I needed a solution to block the automatic tab completion, and the pre release isnt working that well.
I've posted these two bug reports on CommandBlocker's SpigotMC page but received no response, so I opened a issue here. Hope you see it.

This one is from about 2 weeks ago

Hello, there is a issue where tab block does not block the command itself, players cant tab in arguments but they can still press tab to see the entire list of commands, including the ones with colon even when coloned command is disabled, thus allowing them to see the server's list of plugins

I'm using version 2.0.0 beta-4 and running Paper 1.15.2

Edit:
Was able to fix coloned commands appearing in tabcomplete by changing spigot.yml, but all of the permissions from CommandBlocker doesn't work, I'm using Vault and LuckPerms (for example cb.allowcolonedcommands does not allow the user to use coloned commands)

None of the CommandBlocker's own commands work
Admins can run commands like "/cb add" one time, nothing will change, and when they try again they will get the no permission message

Also when running the /cb reload command, this error happens
https://pastebin.com/T5gFeZ6Q

This one I just posted on Spigot a few minutes ago, also leaving it here.

Another problem, a lot of commands are not getting blocked, for example

These ones are completely ignored, players can tab them in and don't get the message
//br, //brush, //desel, //deselect, //sel, //toggleplace /! and a lot more from WorldEdit
/ekit, /ewarp, /emsg, and a lot more from EssentialsX
All commands from LibsDisguises
All commands from ArmorStandEditor
All commands from Crackshot and Crackshotplus
All commands from Holograms
All commands from Multiverse
and a LOT more, there's more commands that are not blocked than ones that are blocked

Some commands cannot be tab completed but players can still run them even when they are supposed to be blocked
/,, /thru, /jump //calculate and a lot more from WorldEdit
and possibly more

Some commands gets blocked but can still be tabbed in
All of CommandBlocker's own commands
and possibly more

All of these have the same config of:
Command:
Message: '&fNope.'
Permission: cb.allow.admin
NoTabComplete: true

Errors in version 1.18.2. Please update plagin

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Server Type: [e.g. Spigot, BungeeCord, Paper]
  • Version [e.g. 1.8.9, 1.16.2]

Additional context
Add any other context about the problem here.

[Feature]

Add ability to block commands with spaces

[Feature] Block-all

There is no direct problem and this is more of a preference but I'd like to have an option that blocks every single command in the server for the regular player. Then admins can use a command like /allow to allow certain commands.
So it pretty much turns the whole plugin around. When by default most commands are allowed and you can block them one by one, then you could allow them one by one.

This would give the server more of a mainstream feel because all different plugins have their own "permissions denied" message and this way there would be one error message for them all. Many plugins also have many little features that many don't want and feel useless and with this feature those would be gone by default and you can only have what you want.

This option would also likely prevent exploits, backdoors and other loopholes (by default) created by plugins.

Disable autocomplete

I might be completely retarded right now, but I can't seem to get the commands removed from the autocomplete list.

disabled.yml

DisabledCommands:
    Plugins:
        Message: none
        Permission: cb.allow.plugins
        NoTabComplete: true
    Pl:
        Message: none
        Permission: cb.allow.plugins

config.yml

# Allows you to disable tab complete!
DisableTabComplete: true

What on earth might I be doing wrong? Running Spigot 1.13.2

[Bug] Luckperms and CommandBlocker

I don't know how to describe this issue in detail. I have sent you a discord friend invite (ElijahJunaid#7222) to talk to you so we can discuss this bug and try to solve it.

In as much detail as I can go into, when I created a new group for LuckPerms, it failed to recognize the 'global' commands in CommandBlocker. I've tried just about everything I can to fix it but it hasn't worked. All other groups for LuckPerms has worked, except for this one.

[Feature] Add support Velocity and Fabric port

Is your feature request related to a problem? Please describe.
I would like to have a similar functionality on Velocity, as it is more secure than Bungee, and it would also be good to port it to Fabric, since there are no such server mods there. :/

Describe the solution you'd like
The ability to use the plugin in Velocity, and also, if possible (if there is of course an opportunity) to port to Fabric... with LuckPerms(mod version) support

[Bug]

how can I block a command like /ah addon but keep /ah and other subcommands of ah like /ah sell?

[Bug] Could not pass event InventoryClickEvent

Describe the bug
When i click in some plugins GUI, i receive a spamming error in console

Could not pass event InventoryClickEvent to CommandBlocker v2.1.2
java.lang.NoClassDefFoundError: Could not initialize class net.kyori.adventure.text.minimessage.MiniMessageImpl$Instances
at net.kyori.adventure.text.minimessage.MiniMessage.miniMessage(MiniMessage.java:53) ~[CommandBlockerFull-2.1.2.jar:?]
at me.treyruffy.commandblocker.bukkit.Variables.translateVariables(Variables.java:79) ~[CommandBlockerFull-2.1.2.jar:?]
at me.treyruffy.commandblocker.bukkit.Variables.translateVariablesToLegacyString(Variables.java:103) ~[CommandBlockerFull-2.1.2.jar:?]
at me.treyruffy.commandblocker.bukkit.gui.DisabledGui.onInventoryClick(DisabledGui.java:342) ~[CommandBlockerFull-2.1.2.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor221.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Paper-411]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Paper-411]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Paper-411]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:2807) ~[app:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:55) ~[app:?]
at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:11) ~[app:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:56) ~[app:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:149) ~[app:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[app:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1426) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer.java:192) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[app:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1404) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1397) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:110) ~[app:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1536) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[patched_1.17.1.jar:git-Paper-411]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-411]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

  • Server Type: Paper
  • Version 1.17.1

Additional context
Add any other context about the problem here.

[Feature] Add support for Regex and a description of all the features of the plugin.

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 a player can use commands with a colon, I would like to block /citizens:npc ( in the command blocker .:. does not work, and : does not block the command above.)

Describe the solution you'd like
A clear and concise description of what you want to happen.

Add support for regular expressions and a detailed description of the plugin's functions. I couldn't find it on spigot or on the git-hub.

Additional context
Add any other context or screenshots about the feature request here.

Add regulars please). The plugin is great, without bungee cord support I would have drowned myself(

[Bug]

Describe the bug
Almost every plugin that has an inventory click command, displays this bug

To Reproduce
Example: the plugin "citizens", when i use the equipment inventory. (/npc equip)

Expected behavior
Not show this error

Screenshots
image

Desktop (please complete the following information):

  • Server Type: Paper
  • Version 1.18.1 (last build)

Additional context
I am using the last plugin version, and its a bug that dont affect nothing, but my console keeps getting spammed with that
also, sorry for the bad english, i am from Brazil and my english isnt the best

have a nice day

/aac doesn't get blocked

I try to block /aac command and the command works perfectly even after disabling it. If you want I can send the plugin of the /aac command to check it. Thanks!

Cant Block commands with Spaces!!!!

please help i am really needing to block a command which contains a space ( /f claim ) but cant do it as the plugin doesn't allow you to make the blocked command contain a space please fix this or tell me how to achieve this ! ;) , PS , <3 your plugin

Error

[22:16:42 INFO]: [Command Blocker] Enabling CommandBlocker v5.4
[22:16:42 ERROR]: Error occurred while enabling CommandBlocker v5.4 (Is it up to date?)
java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
at me.treyruffy.commandblocker.Updater.UpdateChecker.getLastUpdate(UpdateChecker.java:19) ~[?:?]
at me.treyruffy.commandblocker.Updater.Updates.updateCheck(Updates.java:18) ~[?:?]
at me.treyruffy.commandblocker.CommandBlocker.onEnable(CommandBlocker.java:23) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.IOUtils
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_141]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.7.10.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_141]
... 14 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.