AntiAdvertising
Don't you hate these people joining your server, spamming their server's ip?
This plugin will bring an end to this.
It searches the chat messages (and specified commands) for server addresses like 111.111.111.111:12345 or server.domain.com. The plugin will then check if this message really points to a minecraft server (by pinging it) and in this case can:
CI-Server
If you want to support the development of this plugin, you can donate by clicking the button on the top right corner.
Thanks to Absolutionmc for donating.
This plugin will bring an end to this.
It searches the chat messages (and specified commands) for server addresses like 111.111.111.111:12345 or server.domain.com. The plugin will then check if this message really points to a minecraft server (by pinging it) and in this case can:
- drop the message
- censor the message (replace the advertisement by ***)
- kick the player
- broadcast a message
- notify moderators of the advertising
- execute a custom command
Frequently asked questions
Commands
- /antiadreload
-
Reloads the plugin configuration.
Permission: antiad.reload
- /serverping
-
Pings a server manually.
Permission: antiad.ping
Permissions
- antiad.notify
-
Permission to receive notifications about server advertisement.
- antiad.reload
-
Permissions to reload the configuration of the plugin.
- antiad.ignore
-
Permission to send chat messages without being checked.
- antiad.ping
-
Permissions to ping potential servers manually.
config.yml
Click the heading ;-)
Development builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.CI-Server
If you want to support the development of this plugin, you can donate by clicking the button on the top right corner.
Thanks to Absolutionmc for donating.
@dylamb6
Yes.
Does it work for 1.5.1?
@upsj
Going to be switching over to this plugin tomorrow. Looks like a great plugin, can't wait to see. :)
Help i have tried getting this plugin to work for over a week now and still no luck i have do my own configs and used your configs but still it doesn't work it doesn't kick a player or block the ip adress
@dotapurex1
The API didn't change in a way that would cause this plugin to stop working, so I'd like to keep it backward-compatible ;-)
The plugin does work on 1.5.1 (AFAIK) ;-)
Update to 1.5.1 ?
@MrREOM
Just like every list in YAML: Either each entry in one line: - /msg - /whisper or all in the same line: [/msg, /whisper]
on the chat: commands: []
how does that work do i put it like this: commands: - /msg or like this: commands: /msg,/whisper
@Absolutionmc
On my CI server, there's a version that probably shouldn't cause deadlocks any longer. If I have some time tomorrow, I will think the whole multi-threading part through again and hopefully resolve all possible deadlocks.
But on the plus side: It's not very probable that this happens again, as long as there are not too many suspicious chat messages around.
@k0nfuze
That's no big deal, I simply forgot to set the usage message properly. If you use a parameter with the serverping command, this won't happen.
Nevertheless, I will fix that in the next version.
@MrREOM
Yes, you can use the 'chat.commands' config node to list the commands that should be checked. See the configuration manual for more information.
@Absolutionmc
That's a great example of a deadlock -.- If I'm bored in the next lexture, I will break it apart and see if I can find the conflicting resource.
It seems to happen between ActionHandler.putPending and the ChatListener.approve message.
Have to think about how to rewrite this, I don't want to create race conditions :-/
Does the plugin cover every command that a player can contact another player through like /mail /whisper /tell /msg ect.
Hmm another crash :S
http://pastebin.com/wS6cEpYX
I think it's antiadvertising cause the crash has your plugin all over it lol.. Any ideas upsj?
2013-04-16 17:39:24 [SEVERE] null
org.bukkit.command.CommandException Unhandled exception executing command 'serverping' in plugin AntiAdvertising v2.1.3
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523)
at net.minecraft.server.v1_5_R2.PlayerConnection.handleCommand(PlayerConnection.java:966)
at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:884)
at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841)
at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292)
at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110)
at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.ArrayIndexOutOfBoundsException 0
at de.upsj.bukkit.advertising.commands.PingCommand.onCommand(PingCommand.java:59)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more
:( CB 2758, Build #38
Jap its working on 1.5.1 :)
Is this working with 1.5.1? Sounds like just the plugin i need to stop annoying spam advertising thank you :D
Is now possible edit the [TAG]?
@fungreenfox
Fixed it - The 'censor' action will be performed last, so the original message should be available to all previous actions.
You can obtain the updated version from the CI server or wait for it to be approved by the BukkitDev staff.
@upsj
well its good. but just a minor detail: i have experimented with sensor and hide all combinations, and if i want to hide the domain name for public, then i cant get it into the serubans logfile.
@fungreenfox
The %MSG% variable isn't available for the 'command' action in the current version, but it will be in the next version. You can either download it from my CI server or wait until it is approved by the BukkitDev staff and download it here.
I have tryed this command: attempts: 1 once: true command: kick %NAME% Reklamerer for %MSG%
but %MSG% is not outputting the sent message?