Send Console Command After Server Start?

Discussion in 'Plugin Development' started by Junrall, Feb 11, 2013.

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

    Junrall

    Lets say I wanted to set the time to "Day" as soon as the server finished starting up.
    What event would I do this in?
    And would I use something like: getServer().dispatchCommand(getServer().getConsoleSender(), "time set day");

    Thanks in advance!

    ~June~
     
  2. Offline

    mastermustard

    im not entierely certain but im pretty sure servers do start at day on startup (well atleast it is for mine)
     
  3. Offline

    Junrall

    Lol... that was just an example... this is for any command in general.:)
     
  4. Offline

    mastermustard

    ahh okay nevermind then
     
  5. Offline

    Junrall

    And can the same be done for commands of other plugins?
     
Thread Status:
Not open for further replies.

Share This Page