Prevent users from sending links #77
@ -94,6 +94,12 @@ public class ChatListener extends BasicListener {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!sender.hasPermission(ConnectionListener.TEAM_GROUP) && (e.getMessage().contains("http") || e.getMessage().contains("www"))){
|
||||
BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "§cDu darfst keine Links versenden.");
|
||||
e.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
|
||||
Subserver subserver = Subserver.getSubserver(sender);
|
||||
if(subserver != null && subserver.getType() == Servertype.ARENA)
|
||||
return;
|
||||
|
@ -25,7 +25,7 @@ import java.util.Iterator;
|
||||
public class ConnectionListener extends BasicListener {
|
||||
|
||||
private static final String ADMIN_GROUP = "admin";
|
||||
private static final String TEAM_GROUP = "team";
|
||||
public static final String TEAM_GROUP = "team";
|
||||
private static final String YOUTUBER_MODS = "bungeecore.youtubermods";
|
||||
|
||||
@EventHandler
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren