Class WorldEmptyCondition

java.lang.Object
com.hypixel.hytale.builtin.instances.removal.WorldEmptyCondition
All Implemented Interfaces:
RemovalCondition

public class WorldEmptyCondition extends Object implements RemovalCondition
Removes the world once all players have left.

Only triggers after at least one player has joined.

  • Field Details

  • Constructor Details

    • WorldEmptyCondition

      public WorldEmptyCondition()
    • WorldEmptyCondition

      public WorldEmptyCondition(double timeoutSeconds)
  • Method Details

    • shouldRemoveWorld

      public boolean shouldRemoveWorld(@Nonnull Store<ChunkStore> store)
      Description copied from interface: RemovalCondition
      Tests the world to see whether it should be removed or not.
      Specified by:
      shouldRemoveWorld in interface RemovalCondition
      Parameters:
      store - The world to test.
      Returns:
      Whether to remove the world.