Getting World Times

Discussion in 'Plugin Development' started by Dexeron, Mar 29, 2012.

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

    Dexeron

    Basically, I want the end result would be this:

    Code:
    //changeTime1 is 12000
    //changeTime2 is 0 
    if(worldTime = (changeTime1) {
        this.methods.changePlayerInto;
    }
    if(worldTime = (chaneTime2) {
        this.methods.changePlayerBack;
    }
    }
    Please, If anyone would be so kind to show some samples as to how I would go around doing this.

    Much Appreciated as Always :)
     
  2. Offline

    imjake9

    I'm a bit confused as to what you're trying to accomplish here. Perhaps you could give some more (and clearer) information?
     
  3. Offline

    Dexeron

    Ok. Thank you for the Reply.

    At Dusk I want (certain) players to turn into Werewolves so:
    At 12000 Ticks, I wish to execute the method "changePlayerInto"

    At Dawn At Dusk I want (certain) players to turn into Players so:
    At 0 Ticks, I wish to execute the method "changePlayerBack"

    Am I being clear enough, Apologies if I am not. :)
     
  4. Offline

    Sayshal

    That is sick if you can pull this off :O
     
  5. Offline

    imjake9

    Seems to me you were sufficiently answered here. Please don't create another thread simply because you felt like the original one didn't help. Consider reading the wiki link given to you.
     
  6. Offline

    Dexeron

    imjake9 - Just giving you a Bump
    Sayshal - I have actually created a method that turns players into actual evilwolves, I just have to make it so that they can turn into Wolves at Dusk, hence why I am posting :)

    yes, but that does not help me at all, I am really looking more at the Time API. Can anyone give an example?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  7. Offline

    imjake9

    There simply is no Time API. It doesn't exist. There is no way to register for anything to happen at a specific time in Minecraft. Without this, you'll simply have to poll the time using scheduled events. That's the only way to do it. There is no other way. At all. None. Read the provided wiki article.
     
Thread Status:
Not open for further replies.

Share This Page