Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ru.bk.oharass.freedomchat;

import io.papermc.paper.util.MappingEnvironment;
import net.kyori.adventure.key.Key;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.event.Listener;
Expand All @@ -20,6 +21,12 @@ public void onEnable() {
this.getServer().getPluginManager().disablePlugin(this);
return;
}
if (!Boolean.getBoolean("im.evan.freedomchat.bypassmappingscheck") && MappingEnvironment.reobf()) {
getLogger().warning("This version of FreedomChat only supports Mojang-mapped servers. Please use the Mojang-mapped server JAR");
getLogger().warning("If you know what you are doing, set the im.evan.freedomchat.bypassmappingscheck system property to true to bypass this check");
this.getServer().getPluginManager().disablePlugin(this);
return;
}

this.saveDefaultConfig();
final FileConfiguration config = this.getConfig();
Expand Down