Skip to content

Commit

Permalink
Update to 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownSilicon committed Jul 2, 2022
1 parent 120f9ad commit 887d50c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.eclipsekingdom</groupId>
<artifactId>FractalForest</artifactId>
<version>1.13</version>
<version>1.14</version>
<packaging>jar</packaging>

<name>FractalForest</name>
Expand Down Expand Up @@ -69,7 +69,7 @@
</repository>
<repository>
<id>coreprotect-repo</id>
<url>http://maven.playpro.com/</url>
<url>https://maven.playpro.com/</url>
</repository>
<repository>
<id>jitpack.io</id>
Expand All @@ -85,19 +85,19 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.18-R0.1-SNAPSHOT</version>
<version>1.19-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-bukkit</artifactId>
<version>7.0.6</version>
<version>7.0.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.coreprotect</groupId>
<artifactId>coreprotect</artifactId>
<version>20.1</version>
<version>21.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public final class FractalForest extends JavaPlugin {
public void onEnable() {
plugin = this;

System.out.println(Version.current.value);

ConfigLoader.load();
new PluginConfig();
PluginBase pluginBase = new PluginBase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.bukkit.Bukkit;

public enum Version {
V1_19(119),
V1_18(118),
V1_17(117),
V1_16(116),
Expand All @@ -28,7 +29,9 @@ public enum Version {

private static Version getVersion() {
String versionString = Bukkit.getVersion();
if (versionString.contains("1.18")) {
if (versionString.contains("1.19")) {
return V1_19;
} else if (versionString.contains("1.18")) {
return V1_18;
} else if (versionString.contains("1.17")) {
return V1_17;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: FractalForest
version: 1.12
version: 1.14
main: com.eclipsekingdom.fractalforest.FractalForest
api-version: 1.17
api-version: 1.19
authors: [sword7]
maintainer: Diamondback88
maintainer: Diamondback88, UnknownSilicon
description: A spigot plugin that adds procedurally generated trees to Minecraft
website: eclipsekingdom.com
softdepend: [PlayerPlot, WorldGuard, RedProtect, Towny, CoreProtect, GriefPrevention, Residence, Civs, LandsAPI]
Expand Down

0 comments on commit 887d50c

Please sign in to comment.