I'm trying to make it so when your disguised and you log out it removes potion effects and items? How come this doesn't work? Code: Code:java @EventHandler public void onPlayerLogout(PlayerQuitEvent e) { if (DisguiseCraft.getAPI().isDisguised(e.getPlayer())) { Player p = e.getPlayer(); p.getInventory().remove(Material.SPIDER_EYE); p.getInventory().remove(Material.FEATHER); p.getInventory().remove(Material.IRON_INGOT); p.removePotionEffect(PotionEffectType.REGENERATION); p.removePotionEffect(PotionEffectType.SLOW); p.removePotionEffect(PotionEffectType.DAMAGE_RESISTANCE); p.removePotionEffect(PotionEffectType.ABSORPTION); p.removePotionEffect(PotionEffectType.SPEED); p.removePotionEffect(PotionEffectType.JUMP); p.setFoodLevel(20); MorphsEnable.setMetadata(e.getPlayer(), "morphtype", "none", this.plugin); Morphs.unmorph(e.getPlayer()); } }