mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Use GameAdvancement instead of GameAchievement for MC 1.12 and 1.13. #32
This commit is contained in:
parent
1b3da8e0b9
commit
15a2a3cea0
4
pom.xml
4
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user