Skip to content

Commit

Permalink
3.0.8.8
Browse files Browse the repository at this point in the history
Fuller copy of Island for API.
  • Loading branch information
tastybento committed May 7, 2018
1 parent e37a662 commit 389f0b1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -233,6 +233,6 @@
<url>http://maven.sk89q.com/repo/</url>
</repository>
</repositories>
<version>3.0.8.7</version>
<version>3.0.8.8</version>
<description>This pom contains reference to a lot of servers that are not included in the GitHub repository because they are binary objects and maybe subject to copyright. These are used so that the NMS code that is used especially for pasting of islands can operate. Before you can build successfully, you need to put zero or more server binaries into the lib directory on your build machine. This version will match the version of the server you will use, for example 1.12. Then delete all the unneeded packages in com.wasteofplastic.askyblock.nms that you do not need or do not have. This will allow you to build. If you have no server binaries and delete all the packages, the Bukkit API will be used instead of NMS, which is slow and not recommended. Good luck!</description>
</project>
43 changes: 22 additions & 21 deletions src/com/wasteofplastic/askyblock/Island.java
Expand Up @@ -23,6 +23,7 @@
import java.util.List;
import java.util.UUID;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
Expand Down Expand Up @@ -468,28 +469,28 @@ public Island(ASkyBlock plugin, int x, int z, UUID owner) {
*/
public Island(Island island) {
this.plugin = island.plugin;
this.biome = island.biome;
this.center = island.center;
this.createdDate = island.createdDate;
this.igs = island.igs;
this.islandDistance = island.islandDistance;
this.isSpawn = island.isSpawn;
this.locked = island.locked;
this.levelHandicap = island.levelHandicap;
this.minProtectedX = island.minProtectedX;
this.minProtectedZ = island.minProtectedZ;
this.minX = island.minX;
this.minZ = island.minZ;
this.owner = island.owner;
this.biome = Biome.valueOf(island.biome.name());
this.center = island.center != null ? island.center.clone() : null;
this.createdDate = Long.valueOf(island.createdDate);
island.igs.forEach((k,v) -> this.igs.put(k, v));
this.islandDistance = Integer.valueOf(island.islandDistance);
this.isSpawn = Boolean.valueOf(island.isSpawn);
this.locked = Boolean.valueOf(island.locked);
this.levelHandicap = Integer.valueOf(island.levelHandicap);
this.minProtectedX = Integer.valueOf(island.minProtectedX);
this.minProtectedZ = Integer.valueOf(island.minProtectedZ);
this.minX = Integer.valueOf(island.minX);
this.minZ = Integer.valueOf(island.minZ);
this.owner = UUID.fromString(island.owner.toString());
this.password = island.password;
this.protectionRange = island.protectionRange;
this.purgeProtected = island.purgeProtected;
this.spawnPoint = island.spawnPoint;
this.tileEntityCount = island.tileEntityCount;
this.updatedDate = island.updatedDate;
this.votes = island.votes;
this.world = island.world;
this.y = island.y;
this.protectionRange = Integer.valueOf(island.protectionRange);
this.purgeProtected = Boolean.valueOf(island.purgeProtected);
this.spawnPoint = island.spawnPoint == null ? null : island.spawnPoint.clone();
this.tileEntityCount.addAll(island.tileEntityCount);
this.updatedDate = Long.valueOf(island.updatedDate);
this.votes = Integer.valueOf(island.votes);
this.world = Bukkit.getWorld(island.world.getUID());
this.y = Integer.valueOf(island.y);
}

/**
Expand Down

0 comments on commit 389f0b1

Please sign in to comment.