@Override
    public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
        Player player = (Player) sender;

        String myString = "";
        for(int i = 0; i < args.length; i++){
            String arg = args[i] + "";
            myString = myString + arg;
        }

        String fakejoin = ((String) getConfig.get("FakeJoinMessage")).replaceAll("%e", ChatColor.YELLOW + "").replaceAll("player", player.getName() + "")
                .replaceAll("%a", ChatColor.GREEN + "").replaceAll("%d", ChatColor.LIGHT_PURPLE + "").replaceAll("%c", ChatColor.RED + "").replaceAll("%g", ChatColor.GOLD + "")
                .replaceAll("%b", ChatColor.DARK_RED + "").replaceAll("%q", ChatColor.AQUA + "").replaceAll("%b", ChatColor.BLACK + "").replaceAll("%r", ChatColor.GRAY + "")
                .replaceAll("%u", ChatColor.BLUE + "").replaceAll("%w", ChatColor.WHITE + "").replaceAll("%s", ChatColor.DARK_BLUE + "").replaceAll("%p", ChatColor.DARK_GREEN + "")
                .replaceAll("%x", ChatColor.DARK_AQUA + "").replaceAll("%o", ChatColor.DARK_PURPLE + "").replaceAll("%h", ChatColor.DARK_GRAY + "");

        if(args.length == 1 && sender.hasPermission("fakequit.join")){
            String fakejoin1 = ((String) getConfig.get("FakeJoinMessage")).replaceAll("%e", ChatColor.YELLOW + "").replaceAll("player", myString + "")
                    .replaceAll("%a", ChatColor.GREEN + "").replaceAll("%d", ChatColor.LIGHT_PURPLE + "").replaceAll("%c", ChatColor.RED + "").replaceAll("%g", ChatColor.GOLD + "")
                    .replaceAll("%b", ChatColor.DARK_RED + "").replaceAll("%q", ChatColor.AQUA + "").replaceAll("%b", ChatColor.BLACK + "").replaceAll("%r", ChatColor.GRAY + "")
                    .replaceAll("%u", ChatColor.BLUE + "").replaceAll("%w", ChatColor.WHITE + "").replaceAll("%s", ChatColor.DARK_BLUE + "").replaceAll("%p", ChatColor.DARK_GREEN + "")
                    .replaceAll("%x", ChatColor.DARK_AQUA + "").replaceAll("%o", ChatColor.DARK_PURPLE + "").replaceAll("%h", ChatColor.DARK_GRAY + "");
            ChatUtils.sendMsgToAllPlayers(fakejoin1);
        }
        else {

            if(sender.hasPermission("fakequit.join")){
                //Bukkit.broadcastMessage(fakejoin);
                ChatUtils.sendMsgToAllPlayers(fakejoin);
                HidePlayer.getHidePlayer().hidePlayer(player, false);
            }
            else if(!sender.hasPermission("fakequit.join")){
                sender.sendMessage(ChatColor.RED + "You don't have the permissions to do this!");
                return true;
            }
        }

        return false;
    }