From 8421360f53773fa540a08475c647839a809ae3ab Mon Sep 17 00:00:00 2001 From: MrWeez Date: Sat, 21 Sep 2024 17:31:14 +0300 Subject: [PATCH] fix: :rewind: Returned "private static SpigotAddon instance;" class I admit it. I'm an idiot who made a revert commit and immediately merged it back xD --- .../io/github/siebrenvde/staffchat/discord/BungeeAddon.java | 3 +++ .../io/github/siebrenvde/staffchat/discord/SpigotAddon.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/io/github/siebrenvde/staffchat/discord/BungeeAddon.java b/src/main/java/io/github/siebrenvde/staffchat/discord/BungeeAddon.java index 999a234..077b235 100644 --- a/src/main/java/io/github/siebrenvde/staffchat/discord/BungeeAddon.java +++ b/src/main/java/io/github/siebrenvde/staffchat/discord/BungeeAddon.java @@ -13,11 +13,14 @@ public class BungeeAddon extends SimpleAddon { private Bungee plugin; + @SuppressWarnings("unused") + private static BungeeAddon instance; private DiscordBot bot; public String prefix; public BungeeAddon(Bungee pl) { super("StaffChat","staffchat","Siebrenvde"); + instance = this; plugin = pl; } diff --git a/src/main/java/io/github/siebrenvde/staffchat/discord/SpigotAddon.java b/src/main/java/io/github/siebrenvde/staffchat/discord/SpigotAddon.java index 41ad883..9e3d628 100644 --- a/src/main/java/io/github/siebrenvde/staffchat/discord/SpigotAddon.java +++ b/src/main/java/io/github/siebrenvde/staffchat/discord/SpigotAddon.java @@ -13,11 +13,14 @@ public class SpigotAddon extends SimpleAddon { private Spigot plugin; + @SuppressWarnings("unused") + private static SpigotAddon instance; private DiscordBot bot; public String prefix; public SpigotAddon(Spigot pl) { super("StaffChat","staffchat","Siebrenvde"); + instance = this; plugin = pl; }