zedwick / bungeechatfilter Goto Github PK
View Code? Open in Web Editor NEWThis project forked from altfreq/bungeechatfilter
Chat and command filter control for BungeeCord using regex
This project forked from altfreq/bungeechatfilter
Chat and command filter control for BungeeCord using regex
None of the command types (p-, c-, scommand) seem to be working, the plugin just skips over them. No errors, no commands executed.
Using BungeeChatFilter v1.6.1 and BungeeCord build 1180.
And if the text is too long at actions > message, the color in the second line is removed.
Reported by dweSheppard on SpigotMC
New Can you add the feature to use own colorcodes for the AntiSpamMessage and AntiRepeatMessage?
Reported by dweSheppard on SpigotMC
This plugin is not available on WaterFall 1.20, please fix it! Please!
[22:37:29 WARN]: Exception encountered when loading plugin: BungeeChatFilter
java.lang.NoSuchMethodError: org.yaml.snakeyaml.representer.Representer: method ()V not found
at com.minecraftdimensions.bungeechatfilter.configlibrary.YamlRepresenter.(YamlRepresenter.java:11) ~[?:?]
at com.minecraftdimensions.bungeechatfilter.configlibrary.YamlConfiguration.(YamlConfiguration.java:20) ~[?:?]
at com.minecraftdimensions.bungeechatfilter.configlibrary.YamlConfiguration.loadConfiguration(YamlConfiguration.java:152) ~[?:?]
at com.minecraftdimensions.bungeechatfilter.configlibrary.Config.(Config.java:19) ~[?:?]
at com.minecraftdimensions.bungeechatfilter.MainConfig.(MainConfig.java:11) ~[?:?]
at com.minecraftdimensions.bungeechatfilter.Main.initialiseConfig(Main.java:65) ~[?:?]
at com.minecraftdimensions.bungeechatfilter.Main.onEnable(Main.java:26) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:316) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:299) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[waterfall.jar:git:Waterfall-Bootstrap:1.20-R0.1-SNAPSHOT:ec41547:536]
I'd like to be able to get the original command/chat message text if it matches a rule.
Is it possible to get the original command/text and use it like::
ccommand: warn {player} Swearing {originalText}.
Regards.
It's me again.
I updated the plugin from 1.6.1 to 1.6.4 and most of the rules didn't work anymore. Some did, but most didn't and I'm not sure why. So I downgraded back to 1.6.2 without any changes to the config and it magically started working again.
They will monitor all commands.
I use the /tpa fuck command.I will be kicked out
#Commands - The list of commands that the plugin will monitor
Commands:
- msg
AntiSpam: true
Minimum-Chat-Delay: 1500
rules:
swearfilter2:
regex:
- .*fuck.*
actions:
deny: true
kick: 'fuck'
The following rule can result in an error after the player has been kicked, presumably because the player is kicked before the chat event completes, resulting in failure to modify it with the replacement chat.
AntiAdvertising:
regex: (^.*([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*$)|(^.*((mc|play)\.(.*)\.(com|net|ru|org|xyz|su))|((.+)\.(.*(mine|craft|lite|hard|pixel|world|game|build|mc|land).*)\.(com|net|ru|org|xyz|su)).*$)
ignores: (^.*minecraftserver.*$) |(^.*craft-in-the-sky.*$) |(mc1.craft-in-the-sky.ru)
actions:
replace:
-'!&fНе слушаем мой пиар других говно-серверов. И модераторы чата, выдайте мне бан за пиар.'
-'!&fИграем только тут ---> mc1.craft-in-the-sky.ru'
-'!&fХочу бан. Срочно!'
kick: '&cНе бомби школяр, попиаришь в другом месте.'
deny: true
21:30:15 [INFO] [Mr_Krab] <-> ServerConnector [hub] has connected
21:30:30 [INFO] [Mr_Krab] disconnected with: ?f?f?c╨Э╨╡ ╨▒╨╛╨╝╨▒╨╕ ╤И╨║╨╛╨╗╤П╤А, ╨┐╨╛╨┐╨╕╨░╤А╨╕╤И╤М ╨▓ ╨┤╤А╤Г╨│╨╛╨╝ ╨╝╨╡╤Б╤В╨╡.
21:30:30 [SEVERE] ??? 28, 2017 9:30:30 PM net.md_5.bungee.event.EventBus post
WARNING: Error dispatching event ChatEvent(super=TargetedEvent(sender=Mr_Krab, receiver=net.md_5.bungee.ServerConnection@2508c732), cancelled=true, message=mc.pixel.com) to listener com.minecraftdimensions.bungeechatfilter.PlayerChatListener@4803b726
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Unknown Source)
at com.minecraftdimensions.bungeechatfilter.Rule.performActions(Rule.java:92)
at com.minecraftdimensions.bungeechatfilter.PlayerChatListener.playerChat(PlayerChatListener.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19)
at net.md_5.bungee.event.EventBus.post(EventBus.java:46)
at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:377)
at net.md_5.bungee.connection.UpstreamBridge.handle(UpstreamBridge.java:117)
at net.md_5.bungee.protocol.packet.Chat.handle(Chat.java:50)
at net.md_5.bungee.netty.HandlerBoss.channelRead(HandlerBoss.java:78)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:624)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.lang.Thread.run(Unknown Source)
Originally reported by Glavrak on SpigotMC
How can I add multiple lines for a message action?
I tried /n and it doesnt work.
I also tried adding multiple lines under "messages:" like this:
#Shortcut for website URL can use either /url or /website
CreateCommand:
regex: (/help)|(/ehelp)
actions:
message:
- '&f'
- '&eFor help with payments or donation issues:'
- '&bHIDDEN'
- '&eTo report bugs found on the server:'
- '&bHIDDEN'
- '&eTo contact staff members on Teamspeak'
- '&bHIDDEN'
- '&eTo contact staff members on Discord'
- '&bHIDDEN'
- '&f'
could you please add an option or '*' support for Monitor all Commands?
#2 I know this issue but I really need a feature to monitor all commands....
deny: false
currently acts as if it were deny: true
, as the rule checks for the existence of the config node rather than the value of the Boolean.
Hello,
I'm trying to make a command for /vote with the links through bungeechatfilter.
However, I cannot click on links for some reason. If I type the links in chat myself I can click on them but can't directly from /vote
CreateCommand3:
regex: (/votes)|(/vote)
ignores: (/topvoter|topvote|voter|voting)
actions:
message: "&6\n&a Voting Links &7(Right-Click):\n&f\n&8-&7 www.minecraft-server.net/vote/pikanetwork\n&8-&7 www.serverpact.com/vote-6068\n&8-&7 www.minecraft-mp.com/server/41366/vote/\n&8-&7 www.planetminecraft.com/server/pikacraft-2317599/vote/\n&8-&7 www.minecraft-servers-list.net/servers/1004/\n&8-&7 www.minecraft-list.com/vote.php?id=358\n&b"
deny: true
Missing utf-8 support
As requested by Kavatch on SpigotMC
could you please add the function to use args?
So if someone uses a command with args we could use something like {arg0},{arg1},{arg2} and so on.
First of all, thank you for bringing this wonderful plugin back to life.
There seems to be a problem with filtering rules that are positioned after rule that contains permission starting with "!" sign. Default config is a great example of this:
CommandShortcut2:
regex: /shop
actions:
scommand: /warp shop
deny: true
CreateCommand:
regex: /broadcast
permission: '!bungeefilter.broadcast'
actions:
alert: '&5[Broadcast]&a{player}&f:{arguments}'
deny: true
CreateCommand2:
regex: (/url)|(/website)
actions:
message: '&l&6[Check it out]&3 This server''s website is &6www.minecraftserver.com'
deny: true
The command before CreateCommand works fine (submits "/warp shop" to the Spigot server), but the command after it is not filtered ("/url" is sent directly to Spigot, without denying or sending a message). But if the player has the required permission (in this case "bungeefilter.broadcast"), even rules following it work as they're supposed to.
It caused me a bit of a headache, since some command aliases were "randomly" not working for majority of players. Luckily I found the cause of this and hope it will get fixed soon.
Using BungeeChatFilter v1.6.1 and BungeeCord build 1180.
Please add support for checking the register of Russian letters.
Requested by glavrak on SpigotMC
Add placeholders support to all rule message/command actions. Should avoid code duplication.
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.