Sueta
WO

WordFilter

1.1.0

The way you were meant to filter words.

·Plugin

WordFilter

This plugin is easy to use, allowing people to customize messages if they'd like them to give a specific message, execute a command, or just prevent the message from being sent.

Commands

/wordfilter reload - Reload the configuration.
/wordfilter version - Check the version of WordFilter;
/wordfilter dev - Check the developer of WordFilter.

Permissions

wordfilter.update - Access to notification of a update when joining.
wordfilter.* - Access to reloading configuration.

Configuration

config.yml

Custom Event

@EventHandler 
public void onFilteredWord(FilteredWordEvent e) { 
    Player p = (Player) e.getPlayer(); 
    String word = e.getWord(); 
    if (word.length() == 4 && word.equalsIgnoreCase("dirt")) { 
        p.getInventory().addItem(new ItemStack(Material.DIRT)); 
    } 
}

Similar projects

Plugin →