Add scheduler report only if it is not Folia;

(cherry picked from commit a9d6cf0ac2)
This commit is contained in:
HarvelsX 2023-06-08 23:57:08 +03:00
parent 4ad4abb806
commit 9157100bdb
No known key found for this signature in database
GPG Key ID: 7A2A1DF1370CA403
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import com.sk89q.worldedit.world.gamemode.GameMode;
import com.sk89q.worldedit.world.gamemode.GameModes;
import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.bukkit.scheduler.FoliaSchedulerAdapter;
import com.sk89q.worldguard.protection.regions.ProtectedCuboidRegion;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import com.sk89q.worldguard.util.profile.resolver.PaperPlayerService;
@ -235,7 +236,7 @@ public class BukkitWorldGuardPlatform implements WorldGuardPlatform {
public void addPlatformReports(ReportList report) {
report.add(new ServerReport());
report.add(new PluginReport());
report.add(new SchedulerReport());
if (!FoliaSchedulerAdapter.isSupported()) report.add(new SchedulerReport());
report.add(new ServicesReport());
report.add(new WorldReport());
report.add(new PerformanceReport());