Use GameAdvancement instead of GameAchievement for MC 1.12 and 1.13. #32

This commit is contained in:
cnaude 2018-11-18 16:30:49 -07:00
parent 1b3da8e0b9
commit 15a2a3cea0
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Bukkit API Version, change if out dated -->
<bukkit.version>1.13.1</bukkit.version>
<bukkit.version>1.13.2</bukkit.version>
<build.number>SNAPSHOT</build.number>
</properties>
@ -143,7 +143,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>spigot-113</artifactId>
<version>1.13.1</version>
<version>1.13.2</version>
<type>jar</type>
<scope>provided</scope>
</dependency>

View File

@ -318,7 +318,7 @@ public class PurpleIRC extends JavaPlugin {
}
}
getServer().getPluginManager().registerEvents(new IRCMessageListener(this), this);
if (getServer().getVersion().contains("MC: 1.12")) {
if (getServer().getVersion().contains("MC: 1.12") || getServer().getVersion().contains("MC: 1.13")) {
getServer().getPluginManager().registerEvents(new GamePlayerPlayerAdvancementDoneListener(this), this);
} else {
getServer().getPluginManager().registerEvents(new GamePlayerPlayerAchievementAwardedListener(this), this);