Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,900 resources
00
Days
08
Hours
14
Mins
41
Secs
Status
This thread has been locked.

StephanYo

Feedback score
0
Posts
12
Reactions
0
Resources
0
My plugin blocks out offensive and "naughty" words!
Its great for a child friendly server and environment.
It censors variations of hate speech and other words and slang.
Add me on steam to buy or chat me up on skype!
Skype - Thomas The BLANK Engine
Steam - ⒮⒯⒠⒫⒣⒠⒩⒴⒪
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Shadow

Dev
Premium
Feedback score
2
Posts
424
Reactions
308
Resources
0
There are free plugins that do exactly this.
 

Irantwomiles

Check my signature for a new Practice plugin
Premium
Feedback score
3
Posts
1,263
Reactions
570
Resources
0
Code:
    public void onType(AsyncPlayerChatEvent event) {
        Player player = event.getPlayer();

        if (iChat.isLocked != false
                && !event.getPlayer().hasPermission("ichat.chat.bypass")) {
            event.setCancelled(true);
            event.getPlayer().sendMessage(
                    player.getDisplayName() + ": " + event.getMessage());
        }
        String message = event.getMessage().toString().toLowerCase().replace(" ", "");
        List<String> cursewords = plugin.getConfig().getStringList("filtered");
       
        for(String badword : cursewords) {
            badword = badword.toString().toLowerCase();
           
            if(message.contains(badword)) {
               
                event.setCancelled(true);
                for (Player canSee : Bukkit.getOnlinePlayers()) {
                    if (canSee.hasPermission("ichat.filter.see")) {
                        String old = event.getMessage();
                        canSee.sendMessage(ChatColor.RED + "[Filter] "
                                + ChatColor.YELLOW + "(" + player.getName()
                                + "): " + old);
                    }
            }
        }
       
    }

Please don't pay a Dime for this. Enjoy!
 
Status
This thread has been locked.
Top