mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-07 03:10:56 +01:00
Fixes NoSuchMethod on Spigot (#514)
This commit is contained in:
parent
922562989a
commit
3df0d4f88d
@ -11,7 +11,6 @@ import com.djrapitops.plan.system.settings.locale.Msg;
|
|||||||
import com.djrapitops.plan.system.tasks.bukkit.*;
|
import com.djrapitops.plan.system.tasks.bukkit.*;
|
||||||
import com.djrapitops.plan.utilities.file.export.HtmlExport;
|
import com.djrapitops.plan.utilities.file.export.HtmlExport;
|
||||||
import com.djrapitops.plugin.api.Benchmark;
|
import com.djrapitops.plugin.api.Benchmark;
|
||||||
import com.djrapitops.plugin.api.Check;
|
|
||||||
import com.djrapitops.plugin.api.TimeAmount;
|
import com.djrapitops.plugin.api.TimeAmount;
|
||||||
import com.djrapitops.plugin.api.utility.log.Log;
|
import com.djrapitops.plugin.api.utility.log.Log;
|
||||||
import com.djrapitops.plugin.task.ITask;
|
import com.djrapitops.plugin.task.ITask;
|
||||||
@ -29,7 +28,9 @@ public class BukkitTaskSystem extends TaskSystem {
|
|||||||
private final Plan plugin;
|
private final Plan plugin;
|
||||||
|
|
||||||
public BukkitTaskSystem(Plan plugin) {
|
public BukkitTaskSystem(Plan plugin) {
|
||||||
tpsCountTimer = Check.isPaperAvailable()
|
String serverName = plugin.getServer().getServerName();
|
||||||
|
boolean isPaper = serverName.equals("Paper") || serverName.equals("TacoSpigot");
|
||||||
|
tpsCountTimer = isPaper
|
||||||
? new PaperTPSCountTimer(plugin)
|
? new PaperTPSCountTimer(plugin)
|
||||||
: new BukkitTPSCountTimer(plugin);
|
: new BukkitTPSCountTimer(plugin);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user