Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Commit c94ad22

Browse files
committed
Removed 1.13 support
1 parent 1170f0f commit c94ad22

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>net.badlion</groupId>
88
<artifactId>timer-api</artifactId>
9-
<version>1.0.0</version>
9+
<version>1.0.1</version>
1010

1111
<packaging>jar</packaging>
1212

src/main/java/net/badlion/timers/TimerPlugin.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.bukkit.plugin.java.JavaPlugin;
77

88
import java.nio.charset.Charset;
9+
import java.util.logging.Level;
910

1011
public class TimerPlugin extends JavaPlugin {
1112

@@ -16,6 +17,13 @@ public class TimerPlugin extends JavaPlugin {
1617

1718
@Override
1819
public void onEnable() {
20+
// Only support <= 1.12.2 at the moment, we will add 1.13 support when BLC 1.13 is ready
21+
if (this.getServer().getBukkitVersion().startsWith("1.13")) {
22+
this.getLogger().log(Level.SEVERE, "BLC Timer API is not currently compatible with 1.13 Minecraft. Check back later for updates.");
23+
this.getPluginLoader().disablePlugin(this);
24+
return;
25+
}
26+
1927
NmsManager.init(this);
2028

2129
this.timerApi = new TimerApiImpl(this);

0 commit comments

Comments
 (0)