Status
This thread has been locked.

StephanYo

Member
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 - ⒮⒯⒠⒫⒣⒠⒩⒴⒪
 
ReliableSite: Dedicated Servers

Shadow

Dev
Premium
Feedback score
2
Posts
428
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,265
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
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.