Hey, guys from the forum! I want to kick a player from the server if he is banned! But im getting the bukkit ban message! How do i override this message? i tried EventPriority Highest and high or low, but i dont know wich? Can you guys help me? This is the event: Code:java @EventHandler(priority = EventPriority.HIGHEST) public void onPlayerBan(PlayerLoginEvent e) { if (e.getPlayer().isBanned()) { e.getPlayer().kickPlayer(ChatColor.DARK_RED + "Banned: " + ChatColor.RED + " You are banned by an admin/operator"); } }
jusjus112 Try PlayerPreLoginEvent. Check if the result is PlayerPreLoginEvent.Result.KICK_BANNED, then show them a custom message with PlayerPreLoginEvent.disallow with a KICK_OTHER result.