RonanPlugins / BetterRTP

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

MinRadius not working as it should. (IT ONLY SENDS PLAYERS TO THE OUTER CORNERS OF THE MAP) #210

Closed ZepsiZola closed 2 months ago

ZepsiZola commented 2 months ago

Plugin Version:

BetterRTP 3.6.10 BetterRTPAddons 1.8.8

Describe The Bug: I want my /wild command to teleport players to anywhere that is 16,000 or more blocks from the center. I have sort of implemented this, but the problem is that I have implemented it so that the MinRadius is 16000 which causes players to only be teleported to the corners of the map where both x and z are above 16000. I want it to be so that it will teleport the player to any random place where either the x or z coordinate is above 16000.

How To Reproduce:

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: 20000
  MinRadius: 16000
  # # If "UseWorldBorder" is set to true above, Center X and Z will be ignored! #
  CenterX: 0
  CenterZ: 0
  Shape: square
  MaxY: 320
  MinY: 0

Expected Behavior: The plugin should send the player to an area where either x or z is above MinRadius, not exclusively to an area only in which x AND z are above MinRadius. This will allow players to be teleported to the outskirts of the map and not just the outer corners of the map.

Screenshots/Error Log:

As you can see in the picture (player location heatmap), players on my map are only sent to the corners of the world while the outskirt edges of the world remain unexplored. (Where both x and z are outside 16k.) image