Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- if (args[0].equalsIgnoreCase(">nv"))
- {
- if ((e.getPlayer().hasPotionEffect(PotionEffectType.NIGHT_VISION)))
- {
- e.getPlayer().removePotionEffect(PotionEffectType.NIGHT_VISION);
- e.getPlayer().sendMessage("§4§lRekcah §7➤ §c§lNight Vision Disabled!");
- e.setCancelled(true);
- } else {
- e.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 100000, 1));
- e.getPlayer().sendMessage("§4§lRekcah §7➤ §a§lNight Vision Enabled!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement