mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-22 22:51:26 +01:00
Added option to define distance between islands
This commit is contained in:
parent
7fe0d4e72e
commit
058e9bd20d
@ -13,6 +13,7 @@ This fork contains bug fixes, features and improvements:
|
||||
- Added permission to bypass `/is kick`
|
||||
- Added water in Nether mechanics!
|
||||
- Added option to let slime splitting bypass limits.yml
|
||||
- Added option to define distance between islands
|
||||
- Fixed bugs in Challenges that didn't remove all the items
|
||||
- Fixed WorldBorder size not reflecting real island size
|
||||
- Now you can use `/is chat <message>` to send messages to island chat
|
||||
|
@ -52,7 +52,6 @@ public class Island {
|
||||
this.skyblock = SkyBlock.getInstance();
|
||||
|
||||
FileManager fileManager = skyblock.getFileManager();
|
||||
PermissionManager permissionManager = skyblock.getPermissionManager();
|
||||
|
||||
this.islandUUID = UUID.randomUUID();
|
||||
this.ownerUUID = player.getUniqueId();
|
||||
|
@ -61,7 +61,7 @@ public class IslandManager {
|
||||
private List<IslandPosition> islandPositions = new ArrayList<>();
|
||||
private Map<UUID, UUID> islandProxies = new HashMap<>();
|
||||
private Map<UUID, Island> islandStorage = new HashMap<>();
|
||||
private int offset = 1200;
|
||||
private int offset;
|
||||
|
||||
private HashMap<IslandWorld, Integer> oldSystemIslands;
|
||||
|
||||
@ -71,6 +71,9 @@ public class IslandManager {
|
||||
Config config = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "worlds.yml"));
|
||||
FileConfiguration configLoad = config.getFileConfiguration();
|
||||
|
||||
offset = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml"))
|
||||
.getFileConfiguration().getInt("Island.Creation.Distance", 1200);
|
||||
|
||||
for (IslandWorld worldList : IslandWorld.values()) {
|
||||
ConfigurationSection configSection = configLoad.getConfigurationSection("World." + worldList.name() + ".nextAvailableLocation");
|
||||
islandPositions.add(new IslandPosition(worldList, configSection.getDouble("x"), configSection.getDouble("z")));
|
||||
|
@ -36,6 +36,8 @@ Island:
|
||||
Time: 60
|
||||
# [!] How many seconds to wait before teleporting to a newly created island
|
||||
TeleportTimeout: 1
|
||||
# The distance between the islands
|
||||
Distance: 1200
|
||||
World:
|
||||
# Delete the Island world when changing the liquid option.
|
||||
# If lava disabled, the world will be a water world.
|
||||
|
Loading…
Reference in New Issue
Block a user