Giter Site home page Giter Site logo

bungeechatfilter's People

Contributors

behoston avatar leonfagan71 avatar prozhong avatar zedwick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bungeechatfilter's Issues

Commands as action not working

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.

This plugin is not available on WaterFall 1.20, please fix it! Please!

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]

Get original command/text in action.

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.

Something broke between 1.6.2 and 1.6.4

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.

Monitor Commands Issue

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'

Error on rule match where player is kicked and messages replaced

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

Multiple lines?

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'

Monitor Commands

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....

Not respecting Boolean in config

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.

Can't click on links (CRUCIAL ISSUE)

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

Failing to parse rules after "!permission.permission"

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.

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.