Skip to content

Commit

Permalink
Added 1.18 Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
teakivy committed Dec 1, 2021
1 parent 3842a48 commit ce99d35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/me/teakivy/teakstweaks/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import me.teakivy.teakstweaks.Utils.Logger.Log;
import me.teakivy.teakstweaks.Utils.Logger.Logger;
import me.teakivy.teakstweaks.Utils.Metrics.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
Expand All @@ -16,6 +17,7 @@
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.logging.Level;

import static me.teakivy.teakstweaks.Utils.Metrics.CustomMetrics.registerCustomMetrics;

Expand All @@ -33,6 +35,11 @@ public final class Main extends JavaPlugin implements Listener {
@Override
public void onEnable() {

// 1.18 Warning
if (Bukkit.getServer().getVersion().contains("1.18")) {
getServer().getLogger().log(Level.WARNING, "This plugin has not been fully tested with 1.18, please report any bugs to the GitHub, or on our support Discord.\nhttps://github.com/teakivy/teaks-tweaks\nhttps://discord.io/teakivy");
}

// Data Manager
this.data = new DataManager(this);
data.saveDefaultConfig();
Expand Down

0 comments on commit ce99d35

Please sign in to comment.