package me.AntiBully;

import java.util.Arrays;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.plugin.java.JavaPlugin;

public class AntiBully extends JavaPlugin implements Listener 
{
    public static final List<String> LIST_1 = Arrays.asList();

    @Override
    public void onEnable()
    {
     getLogger().info("AntiBully has started up! :D");
    }
    
    @Override
    public void onDisable()
    {
     getLogger().info("AntiBully has been disabled! D:");
    }
     public static final List<String> SWEAR_LIST = Arrays.asList("INSERT WORDS HERE");
     public static final List<String> BULLY_LIST = Arrays.asList("INSERT WORDS HERE");
    
    @EventHandler(priority = EventPriority.HIGHEST)
    public void onPlayerChat(AsyncPlayerChatEvent event) 
    {
            final Player player = event.getPlayer();
            String message = event.getMessage().trim();   
            
            if(message.contains((CharSequence) SWEAR_LIST)) 
            {
              player.sendMessage(ChatColor.DARK_GRAY + "[" + ChatColor.DARK_RED + "Anti" + ChatColor.RED + "Bully" + ChatColor.DARK_GRAY + "] " + " AntiBully has blocked your message as you have swore!");
              event.setCancelled(true);
            }
            
            if(message.contains((CharSequence) BULLY_LIST)) 
            {
              player.sendMessage(ChatColor.DARK_GRAY + "[" + ChatColor.DARK_RED + "Anti" + ChatColor.RED + "Bully" + ChatColor.DARK_GRAY + "] " + " AntiBully has blocked your message as you have said a blocked word!.");
              event.setCancelled(true);
            }
    }
}

@@ -27,152 +27,84 @@
 ort 
-java.util.Arrays;%0Aimport java.util.List;%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.command.Command;%0Aimport org.bukkit.command.CommandSender
+org.bukkit.ChatColor;%0Aimport org.bukkit.configuration.file.FileConfiguration
 ;%0Aim
@@ -409,72 +409,11 @@
 r %0A%7B
-%0A
    
- public static final List%3CString%3E LIST_1 = Arrays.asList();%0A
 %0A   
@@ -638,182 +638,8 @@
   %7D%0A
-     public static final List%3CString%3E SWEAR_LIST = Arrays.asList(%22INSERT WORDS HERE%22);%0A     public static final List%3CString%3E BULLY_LIST = Arrays.asList(%22INSERT WORDS HERE%22);%0A
     
@@ -781,21 +781,16 @@
 Player p
-layer
  = event
@@ -878,69 +878,54 @@
     
-%0A            if(message.contains((CharSequence) SWEAR_LIST)) 
+ConfigManager cm = ConfigManager.getConfig(p);
 %0A   
@@ -925,35 +925,33 @@
 p);%0A            
-%7B%0A 
+%0A
              pla
@@ -950,197 +950,87 @@
     
- player.sendMessage(ChatColor.DARK_GRAY + %22%5B%22 + ChatColor.DARK_RED + %22Anti%22 + ChatColor.RED + %22Bully%22 + ChatColor.DARK_GRAY + %22%5D %22 + %22 AntiBully has blocked your message as you have swore!%22
+if (!cm.exists())%0A            %7B%0A            FileConfiguration f = cm.getConfig(
 );%0A 
@@ -1044,120 +1044,228 @@
     
+%0A
   
-event.setCancelled(true);%0A            %7D%0A            %0A            if(message.contains((CharSequence) BULLY_LIST
+          f.addDefault(%22blocked_words%22, %22ADD THEM HERE%22);%0A            %7D%0A            %0A            if (!cm.getConfig().getString(%22staff%22).equals(p.getName()) && message.contains(cm.getConfig().getString(%22blocked_words%22)
 )) %0A
@@ -1293,21 +1293,16 @@
        p
-layer
 .sendMes
@@ -1359,40 +1359,47 @@
 D + 
-%22Anti%22 + ChatColor.RED + %22Bully%22
+cm.getConfig().getString(%22server_name%22)
  + C

Update AntiBully.java