Solved Changing world time?

Discussion in 'Rust Development' started by [fr]iazlur, Jun 4, 2018.

  1. Hi, I don't have found the class to change the current hour of the world.
    I've tryed to automatic send a env.time but didn't founded the class too.

    Anyone know how to change it ?

    Code:
    void Init()
        {
          Puts("Le plugin météor a bien démarré !");
          this.d = new Dictionary<string, bool>();
          timer.Repeat(1f, 0, () => {
            RunConsoleCommand a = new RunConsoleCommand();
            a.ClientRun("env.time 24");
          });
        }
     
  2. Wulf

    Wulf Community Admin

    I'd recommend looking at the existing AngryTime, SkipNightVote, or TimeOfDay plugins.

    For examples of running commands, look at the StartupCommands, TimedExecute, ConnectionCommands, or other similar plugins.
     
  3. Thank you sir, I founded in the plugin TimeOfDay
    Code:
    ConVar.Env.time = theNewHour;