So I was wondering how to temp ban a player here is my code for the Command My command is for people who safezone and on the third time they login I want it to ban them for 2 hours how could I do that Code:java if(cmd.getName().equalsIgnoreCase("safezone")) { if(args.length < 1) { player.sendMessage(ChatColor.RED + "/safezone <player>"); } Player target = Bukkit.getServer().getPlayer(args[0]); if(target == null) { player.sendMessage(ChatColor.RED + "Could not find player " + args[0]); } String uuid = target.getUniqueId().toString(); if (!plugin.getConfig().contains(uuid)) { target.sendMessage(ChatColor.GOLD + "[Safezone]" + ChatColor.RED + "Warning - 1"); plugin.getConfig().set(uuid, 1); plugin.saveConfig(); return true; } int l = this.plugin.getConfig().getInt(uuid); if(l == 1) { target.kickPlayer(ChatColor.GOLD + "[Safezone] \n" + ChatColor.RED + "Warning - 2"); plugin.getConfig().set(uuid, 2); plugin.saveConfig(); return true; } if(l == 2) { target.kickPlayer(ChatColor.GOLD + "[Safezone] \n" + ChatColor.RED + "Warning - 3 \n" + ChatColor.AQUA + "Banned for: 2 hours"); plugin.getConfig().set(uuid, 3); plugin.saveConfig(); return true; } } Code: @EventHandler public void onPlayerLogin(PlayerLoginEvent e) { String uuid = e.getPlayer().getUniqueId().toString(); if (getConfig().contains(uuid) && getConfig().getInt(uuid) == 3) { } } Need to know what goes inside the PlayerLoginEvent please Thank you for your help