Prevent users from sending links
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
995fa97c26
Commit
b100721cf8
@ -94,6 +94,12 @@ public class ChatListener extends BasicListener {
|
|||||||
return;
|
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);
|
Subserver subserver = Subserver.getSubserver(sender);
|
||||||
if(subserver != null && subserver.getType() == Servertype.ARENA)
|
if(subserver != null && subserver.getType() == Servertype.ARENA)
|
||||||
return;
|
return;
|
||||||
|
@ -25,7 +25,7 @@ import java.util.Iterator;
|
|||||||
public class ConnectionListener extends BasicListener {
|
public class ConnectionListener extends BasicListener {
|
||||||
|
|
||||||
private static final String ADMIN_GROUP = "admin";
|
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";
|
private static final String YOUTUBER_MODS = "bungeecore.youtubermods";
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren