Class LobbySettings

java.lang.Object
ua.mcchickenstudio.opencreative.settings.LobbySettings

public final class LobbySettings extends Object

LobbySettings

This class represents settings of lobby world, where players will be teleported on server join, or by using /spawn command.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether explosions in lobby world should be cancelled without bypass permission.
    boolean
    Checks whether damaging mobs in lobby world should be cancelled without bypass permission.
    boolean
    Checks whether destroying blocks in lobby world should be cancelled without bypass permission.
    boolean
    Checks whether placing blocks in lobby world should be cancelled without bypass permission.
    boolean
    Checks whether spawning mobs in lobby world should be cancelled without bypass permission.
    boolean
    Checks whether using WorldEdit in lobby world should be cancelled without bypass permission.
    void
    Loads settings of lobby from configuration.
    boolean
    shouldClearInventory(@NotNull org.bukkit.World world)
    Checks whether player's inventory should be cleared after teleporting between worlds.
    boolean
    shouldResetGameMode(@NotNull org.bukkit.World world)
    Checks whether player's inventory should be cleared after teleporting between worlds.
    boolean
    Checks whether resource pack will be reset on entering lobby or changing worlds.
    boolean
    Checks whether view and simulation distances will be reset on entering lobby or changing worlds.
    boolean
    Checks whether player will be teleported to lobby when he connects to server.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LobbySettings

      public LobbySettings()
  • Method Details

    • load

      public void load()
      Loads settings of lobby from configuration.
    • shouldClearInventory

      public boolean shouldClearInventory(@NotNull @NotNull org.bukkit.World world)
      Checks whether player's inventory should be cleared after teleporting between worlds.
      Parameters:
      world - , where player currently is in.
      Returns:
      true - will be cleared, false - not.
    • shouldResetGameMode

      public boolean shouldResetGameMode(@NotNull @NotNull org.bukkit.World world)
      Checks whether player's inventory should be cleared after teleporting between worlds.
      Parameters:
      world - , where player currently is in.
      Returns:
      true - will be reset, false - not.
    • areExplosionsDisabled

      public boolean areExplosionsDisabled()
      Checks whether explosions in lobby world should be cancelled without bypass permission.
      Returns:
      true - disable explosions, false - allow them.
    • isDamagingMobsDisallowed

      public boolean isDamagingMobsDisallowed()
      Checks whether damaging mobs in lobby world should be cancelled without bypass permission.
      Returns:
      true - disable damaging mobs, false - allow it.
    • isDestroyingBlocksDisallowed

      public boolean isDestroyingBlocksDisallowed()
      Checks whether destroying blocks in lobby world should be cancelled without bypass permission.
      Returns:
      true - disable destroying blocks, false - allow it.
    • isPlacingBlocksDisallowed

      public boolean isPlacingBlocksDisallowed()
      Checks whether placing blocks in lobby world should be cancelled without bypass permission.
      Returns:
      true - disable placing blocks, false - allow it.
    • isSpawningMobsDisallowed

      public boolean isSpawningMobsDisallowed()
      Checks whether spawning mobs in lobby world should be cancelled without bypass permission.
      Returns:
      true - disable spawning mobs, false - allow it.
    • isWorldEditDisallowed

      public boolean isWorldEditDisallowed()
      Checks whether using WorldEdit in lobby world should be cancelled without bypass permission.
      Returns:
      true - disable spawning mobs, false - allow it.
    • shouldResetViewDistance

      public boolean shouldResetViewDistance()
      Checks whether view and simulation distances will be reset on entering lobby or changing worlds.
      Returns:
      true - reset view and simulation distances, false - don't reset, but disable "Set View Distance" and "Set Simulation Distance" player actions.
    • shouldResetResourcePack

      public boolean shouldResetResourcePack()
      Checks whether resource pack will be reset on entering lobby or changing worlds.
      Returns:
      true - reset resource pack, false - don't reset, but disable "Set Resource Pack" player action.
    • shouldTeleportOnJoin

      public boolean shouldTeleportOnJoin()
      Checks whether player will be teleported to lobby when he connects to server.
      Returns:
      true - teleport to lobby on join, false - not.