RonanPlugins / BetterRTP

Official wiki of the BetterRTP plugin!
https://www.spigotmc.org/resources/36081/
MIT License
111 stars 86 forks source link

Using BetterRTP in nether can spend a great deal of time #103

Closed jiajiaxd closed 2 years ago

jiajiaxd commented 2 years ago

Plugin Version:3.4.3 Minecraft Version:1.18.2

Describe The Bug: Using BetterRTP in nether can spend a great deal of time It often fails to find a safe place even after 50 attempts.

config.yml:

Language-File: chs.yml

Settings:
  Respect:
    # # Respect WorldGuard areas (https://dev.bukkit.org/projects/worldguard)
    WorldGuard: false
    # # Respect GriefPrevention areas (https://www.spigotmc.org/resources/griefprevention.1884/)
    GriefPrevention: false
    # # Respect Towny areas (https://www.spigotmc.org/resources/towny.72694/)
    Towny: false
    # # Respect RedProtect areas (https://www.spigotmc.org/resources/redprotect.15841/)
    RedProtect: false
    # # Respect FactionsUUID areas (https://www.spigotmc.org/resources/factionsuuid.1035/)
    FactionsUUID: false
    # # Respect Lands areas (https://www.spigotmc.org/resources/lands.53313/)
    Lands: false
    # # Respect Residence areas (https://www.spigotmc.org/resources/residence.11480/)
    Residence: false
    # # Respect KingdomsX areas (https://www.spigotmc.org/resources/kingdomsx.77670/)
    KingdomsX: false
    # # Respect hClaims areas (https://www.spigotmc.org/resources/hclaims.90540/)
    hClaims: false
    # # Respect GriefDefender areas (https://www.spigotmc.org/resources/griefdefender.68900/)
    GriefDefender: false
    # # Respect UltimateClaims areas (https://songoda.com/marketplace/product/ultimateclaims-the-ultimate-claiming-plugin.65)
    UltimateClaims: false

  # # Output to console some debugging info
  Debugger: false
  # # Amount of chunks to preload around a safe location
  PreloadRadius: 5
  # # Maximum amount of tries before BetterRTP gives up and sends a NotSafeMessage #
  MaxAttempts: 30
  RtpOnFirstJoin: # Will execute as console to override delays
    Enabled: false # Make the player rtp when joining the server for the first time
    World: world # World to first rtp in
    SetAsRespawn: false # Save this first rtp as players new spawn point
  Cooldown:
    Enabled: true # Enabled or disabled cooldown timer
    LockAfter: 0 # Lock the player in an infinite cooldown after # rtp's (0 to disable)
    Time: 600 # in SECONDS
    PerWorld: false # Cooldowns handled for each world? If disabled, player cannot rtp in another world until original cooldown has passed
  # # Time between command and actually rtp'ing, time is in SECONDS. Set to "0" to disable delay timer #
  Delay:
    Enabled: true
    Time: 5
    CancelOnMove: true
  Queue:
    Enabled: true # Allows betterrtp to automatically queue up safe rtp locations prior to players executing `/rtp`
  DisableUpdater: false

Default:
  UseWorldBorder: false
  # # "Biomes: []" means all biomes are allowed! #
  # # Biomes are optional, more biomes at https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Biome.html #
  Biomes: []
  MaxRadius: 3000
  MinRadius: 100
  # # If "UseWorldBorder" is set to true above, Center X and Z will be ignored! #
  CenterX: 0
  CenterZ: 0
  Shape: square
  MaxY: 320
  MinY: 0

# # Blocks BetterRTP will NOT teleport onto. More Blocks at: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html #
BlacklistedBlocks:
- stationary_water
- stationary_lava
- water
- flowing_water
- lava
- flowing_lava
- cactus
- leaves
- leaves_2
- air
- void_air
- bedrock
- oak_leaves
- jungle_leaves
- kelp

# # Worlds to NOT allow /rtp in, unless there is an override to another enabled world #
DisabledWorlds:
- prison
- creative

# # Worlds you want to have a custom min/max and spawn center in #
# # [MaxRadius] and [MinRadius] MUST be positive! These cannot be equal to each other!
CustomWorlds:
- custom_world_1:
    UseWorldBorder: false
    MaxRadius: 20000
    MinRadius: 100
    CenterX: 0
    CenterZ: 0
    Price: 50
    Shape: square
    MaxY: 320
    MinY: 0
    Cooldown: 60
- other_custom_world:
    MaxRadius: 20000
    MinRadius: 150
    CenterX: 123
    CenterZ: -123
    Price: 0
    Biomes:
    - desert
    - forest
    Shape: circle

# # Override a world and rtp a player executing the command in one world, to another
Overrides:
- master_world: world
- creative_world: world

WorldType: # Available types are NORMAL, NETHER
  - world: NORMAL
  - world_nether: NETHER
  - world_the_end: NORMAL

PermissionGroup: # Player requires "betterrtp.group.<world_name>" to trigger these configs
  Enabled: false
  Groups:
  - vip:
    - Build_World:
        Priority: 0
        MaxRadius: 10000
        MinRadius: 1000
        Price: 100
        Cooldown: 500
    - Survival_World:
        Priority: 10
        UseWorldBorder: false
        MaxRadius: 5000
        MinRadius: 1000
        CenterX: 10
        CenterZ: 10
        Price: 10
        MaxY: 320
        MinY: 0
  - vip2:
    - Build_World:
        MaxRadius: 25000
        MinRadius: 10000
        Price: 15
        Cooldown: 1500
SuperRonanCraft commented 2 years ago

Hey so, I see you got a default config, most likely your Nether world is not called world_nether please make sure you specify that you nether world is placed under the WorldType section as NETHER so that is will try to find the lowest safest spot instead of the highest safest spot to get around the bedrock ceiling

jiajiaxd commented 2 years ago

It works.Thanks for helping!

---Original--- From: @.> Date: Thu, Jun 16, 2022 04:24 AM To: @.>; Cc: @.**@.>; Subject: Re: [SuperRonanCraft/BetterRTP] Using BetterRTP in nether can spend a great deal of time (Issue #103)

Hey so, I see you got a default config, most likely your Nether world is not called world_nether please make sure you specify that you nether world is placed under the WorldType section as NETHER so that is will try to find the lowest safest spot instead of the highest safest spot to get around the bedrock ceiling

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>