How can I get a worlds weather conditions?

Discussion in 'Plugin Development' started by EvilPeanut, Feb 3, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    EvilPeanut

    There is world.setThundering() and world.setStorm() but there is only world.isThundering()?????
    How can I get a worlds weather conditions?
    (Raining, storming, sunny, snowing ect..)
     
  2. Offline

    teunie75

    Thundering: if(player.getWorld().getThunderDuration() > 0L){
    //Do something
     
  3. Offline

    EvilPeanut

    They really should implement isThundering() to the bukkit API :p
    Oh well, cheers.
    That is only for thundering, i need to get storming...
     
  4. Offline

    Darkllama23

    raining, storming, snowing, thundering should be under isThundering() == true;
    and sunny should be under isThundering() == false;
    if I am wrong, please correct me, thanks
     
Thread Status:
Not open for further replies.

Share This Page