Skip to content

Commit

Permalink
Version 3.0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Oct 23, 2017
1 parent 260cb71 commit cf0ae06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@
<url>http://maven.sk89q.com/repo/</url>
</repository>
</repositories>
<version>3.0.8</version>
<version>3.0.8.1</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>
5 changes: 2 additions & 3 deletions src/com/wasteofplastic/askyblock/ASkyBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ public void onDisable() {
public void onEnable() {
// instance of this plugin
plugin = this;
// Initialize the API
new ASkyBlockAPI(this);
// Check server version - check for a class that only 1.8 has
Class<?> clazz;
try {
Expand Down Expand Up @@ -464,9 +466,6 @@ public void run() {
// Give temp permissions
playerEvents.giveAllTempPerms();

// Initialize the API
ASkyBlockAPI.setInstance(new ASkyBlockAPI(plugin));

getLogger().info("All files loaded. Ready to play...");

registerCustomCharts();
Expand Down
10 changes: 4 additions & 6 deletions src/com/wasteofplastic/askyblock/ASkyBlockAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,20 @@ public class ASkyBlockAPI {
public static ASkyBlockAPI getInstance() {
if (DEBUG)
Bukkit.getLogger().info("DEBUG: ASkyBlock API, getInstance()");
if (instance == null)
// Initialize the API
new ASkyBlockAPI(ASkyBlock.getPlugin());
return instance;
}

/**
* @param instance the instance to set
*/
public static void setInstance(ASkyBlockAPI instance) {
ASkyBlockAPI.instance = instance;
}

private ASkyBlock plugin;

protected ASkyBlockAPI(ASkyBlock plugin) {
this.plugin = plugin;
if (DEBUG)
Bukkit.getLogger().info("DEBUG: API constructed");
instance = this;
}

/**
Expand Down

0 comments on commit cf0ae06

Please sign in to comment.