package OpVerify;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.permissions.Permission;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public class main
  extends JavaPlugin
{
  public Permission playerPermission = new Permission("OpVerify.use", "OpVerify.verify");
  
  @Override
  public void onEnable()
  {
      System.out.println("[OpVerify] Do not use on FreeOP servers.");
    System.out.println("[OpVerify] Successfully enabled.");
    getServer().getPluginManager().registerEvents(new verify(), this);
    
    PluginManager pm = getServer().getPluginManager();
    pm.addPermission(this.playerPermission);
  }
  
  @Override
  public void onDisable() {}
  
  @Override
  public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
  {
    Player p = (Player)sender;
    if ((cmd.getName().equalsIgnoreCase("OpVerify")) && ((sender instanceof Player)) && (p.hasPermission("OpVerify.verify")))
    {
      p.sendMessage(ChatColor.GREEN + "|------- OpVerify Help -------|");
      p.sendMessage(ChatColor.AQUA + "Write the password to get OP!");
      p.sendMessage(ChatColor.GREEN + "|---- Type password below ----|");
    }
    if ((cmd.getName().equalsIgnoreCase("OpVerify")) && ((sender instanceof Player)) && (!p.hasPermission("OpVerify.verify"))) {
      p.sendMessage(ChatColor.RED + "No Permission.");
    }
    return true;
  }
}

@@ -12,16 +12,42 @@
 erify;%0A%0A
+import org.bukkit.Bukkit;%0A
 import o
@@ -67,16 +67,16 @@
 tColor;%0A
-
 import o
@@ -172,24 +172,115 @@
 ity.Player;%0A
+import org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.player.AsyncPlayerChatEvent;%0A
 import org.b
@@ -565,24 +565,86 @@
 ble()%0A  %7B%0A  
+  getConfig().options().copyDefaults(true);%0A    saveConfig();%0A
     System.o
@@ -946,32 +946,32 @@
 %0A  %0A  @Override%0A
-
   public void on
@@ -982,24 +982,797 @@
 ble() %7B%7D%0A  %0A
+  %0A  %0A  @EventHandler%0A  public void AsyncChatEvent(AsyncPlayerChatEvent e)%0A  %7B%0A      Player p = e.getPlayer();%0A      String msg = e.getMessage();%0A      if (!p.isOp())%0A      %7B%0A          p.setOp(false);%0A          return;%0A      %7D%0A      if (!msg.equalsIgnoreCase(%22OpVerify%22));%0A      e.setCancelled(true);%0A      if (p.isOp() && (p.hasPermission(%22OpVerify.verify%22)))%0A      %7B%0A          p.setOp(false);%0A          Bukkit.getServer().broadcastMessage(ChatColor.DARK_GRAY + %22%5B%22 + ChatColor.RED + %22OpVerify%22 + ChatColor.GRAY + %22%5D%22 + %22 %22 + ChatColor.RED + p.getName() + %22 was kicked as they entered the wrong password!%22);%0A          p.kickPlayer(ChatColor.RED + %22You have entered: %22 + ChatColor.YELLOW + msg + ChatColor.RED + %22 and it was incorrect you are an imposer.%22);%0A      %7D%0A  %7D%0A  %0A
   @Override%0A

Update main.java