Skip to content

Commit

Permalink
Update supported message & recommend NoChatReports plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Refrac committed Aug 13, 2024
1 parent d4cd2ec commit d1d7eac
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import me.refracdevelopment.simplestaffchat.manager.config.cache.Discord;
import me.refracdevelopment.simplestaffchat.utilities.chat.RyMessageUtils;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

Expand Down Expand Up @@ -47,7 +48,7 @@ public void onEnable() {
foliaLib = new FoliaLib(this);

if (!XReflection.supports(18) || getFoliaLib().isSpigot()) {
getLogger().info("This version and or software (Spigot) is no longer supported.");
getLogger().info("This version and or software (" + Bukkit.getName() + ") is not supported.");
getLogger().info("Please update to at least Paper 1.18.x or above.");
getServer().getPluginManager().disablePlugin(this);
return;
Expand Down Expand Up @@ -101,9 +102,9 @@ private void loadModules() {
private void loadHooks() {
PluginManager pluginManager = getServer().getPluginManager();

if (!pluginManager.isPluginEnabled("AntiPopup")) {
if (!pluginManager.isPluginEnabled("NoChatReports")) {
RyMessageUtils.sendConsole(true, "&cIf you get kicked out in 1.19+ while typing in a staffchat on Spigot",
"&cconsider downloading AntiPopup: https://www.spigotmc.org/resources/103782/");
"&cconsider downloading NoChatReports: https://www.spigotmc.org/resources/102931/");
}

if (pluginManager.isPluginEnabled("PlaceholderAPI")) {
Expand Down

0 comments on commit d1d7eac

Please sign in to comment.