Huhu,
bin komplett neu in der Bukkit programmierung. Wollte euch mal
fragen wie man mehrere Wörter zur Blacklist eines AdBlock
Plugins hinzufügt.
Momentaner Code:
Ich möchte nun aber nicht nur "http" blocken, sondern auch andere. Wie füge ich
dort mehr hinzu?
Vielen dank
bin komplett neu in der Bukkit programmierung. Wollte euch mal
fragen wie man mehrere Wörter zur Blacklist eines AdBlock
Plugins hinzufügt.
Momentaner Code:
Code:
if(e.getMessage().contains("http")) {
if(!e.getPlayer().hasPermission("adblock.bypass")) {
e.getPlayer().sendMessage("§8[§4AdBlock§8] §cDon't advertise or you get banned!");
e.setCancelled(true);
Ich möchte nun aber nicht nur "http" blocken, sondern auch andere. Wie füge ich
dort mehr hinzu?
Vielen dank