Creative Night Vision Perk

Discussion in 'Creative Server Suggestions' started by Aqua, Apr 10, 2014.

  1. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    A perk for infinite night vision potion effect, it's a pain to work in the dark...
     
    • Like Like x 1
    • Agree Agree x 1
  2. Thr0ttie

    Thr0ttie Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,969
    Likes Received:
    1,406
    /ptime @day is your friend
     
    • Friendly Friendly x 1
  3. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    Not when underground

    And I rather do ptime @1200, has more light ;)
     
    • Like Like x 1
    • Informative Informative x 1
  4. HarryTurney

    HarryTurney Forum Legend

    Joined:
    Feb 13, 2012
    Messages:
    1,612
    Likes Received:
    501
    I agree and drinking night vision potions makes my screen go black
     
    • Agree Agree x 1
  5. Juwn

    Juwn Active Member

    Joined:
    Jul 1, 2013
    Messages:
    212
    Likes Received:
    33
    I agree with this.
     
    • Like Like x 1
  6. Natbyte

    Natbyte Overseer

    Joined:
    Dec 12, 2011
    Messages:
    1,411
    Likes Received:
    1,522
    So how would we have this as a perk then? As in technical implementation.
     
    • Like Like x 1
  7. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    ./nightvision
     
    • Like Like x 1
  8. TechTeller

    TechTeller Forum Legend

    Joined:
    Aug 23, 2011
    Messages:
    1,789
    Likes Received:
    745
    Stop playing Smite and code it :3
     
  9. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    Done....
    To nat:
    Its in the pvp server, same spot, named 'CreaMech'
    EDIT:
    Permission is 'crmech.nightvision'
    Command is '/nightvision'
     
    • Like Like x 2
    • Ninja Ninja x 1
  10. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    So this is a no-go?
     
  11. Natbyte

    Natbyte Overseer

    Joined:
    Dec 12, 2011
    Messages:
    1,411
    Likes Received:
    1,522
    No this is an I've not got round to testing and running on the live server yet ;)
     
    • Friendly Friendly x 1
  12. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    Pfft, I made it, ofcourse it works xP
    Sourcecode (open)

    Not much that can break :O
    Code:
        @Override
        public boolean onCommand(CommandSender sender, Command cmd, String lbl, String[] args) {
            if (!(sender instanceof Player)) {
                sender.sendMessage(ChatColor.RED + "Only players can perform this command!");
                return false;
            }
            if (!sender.hasPermission("crmech.nightvision")) {
                sender.sendMessage(Constants.NO_PERMISSION);
                return false;
            }
            Player pl = (Player) sender;
            if (pl.hasPotionEffect(PotionEffectType.NIGHT_VISION)) {
                pl.removePotionEffect(PotionEffectType.NIGHT_VISION);
                sender.sendMessage(ChatColor.BLUE + "Removed nightvision!");
            } else {
                pl.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 999999, 0));
                sender.sendMessage(ChatColor.BLUE + "You now have nightvision!");
            }
            return true;
        }
     
    • Ninja Ninja x 1
  13. Thr0ttie

    Thr0ttie Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,969
    Likes Received:
    1,406
    any idea why randomly everything goes completely black for a little bit while using /nightvision?

    [​IMG]
    [​IMG]
     
  14. Aqua

    Aqua Overseer

    Joined:
    Jun 22, 2011
    Messages:
    1,249
    Likes Received:
    457
    Bug with your client, not many people have this problem. Maybe your gfx needs updating, or the texturepack is causing this, or the minimap. No idea otherwise.
     
  15. Natbyte

    Natbyte Overseer

    Joined:
    Dec 12, 2011
    Messages:
    1,411
    Likes Received:
    1,522
    Does indeed look like a client rendering issue, I have had similar problems on my main pc when using certain resource / shader packs, run totally vanilla with a freshly downloaded client, if you still get the issue look for updated video card drivers.
     
  16. Sahib

    Sahib Member

    Joined:
    May 10, 2015
    Messages:
    61
    Likes Received:
    82
    That code though.
     
    • Old Old x 2
    • Funny Funny x 1

Share This Page