mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 03:27:37 +01:00
Fixed NoSuchMethodErrors related to PluginBridge #555
This commit is contained in:
parent
6c5b6d13a0
commit
b0d19134d2
@ -7,7 +7,7 @@ package com.djrapitops.pluginbridge.plan.aac;
|
||||
|
||||
import com.djrapitops.plan.system.database.databases.Database;
|
||||
import com.djrapitops.plan.system.database.databases.sql.SQLDB;
|
||||
import com.djrapitops.plan.system.processing.Processor;
|
||||
import com.djrapitops.plan.system.processing.Processing;
|
||||
import com.djrapitops.plan.utilities.MiscUtils;
|
||||
import com.djrapitops.plugin.api.utility.log.Log;
|
||||
import me.konsolas.aac.api.AACAPIProvider;
|
||||
@ -43,7 +43,7 @@ public class PlayerHackKickListener implements Listener {
|
||||
|
||||
HackObject hackObject = new HackObject(uuid, time, hackType, violations);
|
||||
|
||||
Processor.queue(() -> {
|
||||
Processing.submitNonCritical(() -> {
|
||||
try {
|
||||
new HackerTable((SQLDB) Database.getActive()).insertHackRow(hackObject);
|
||||
} catch (SQLException e) {
|
||||
|
@ -55,7 +55,7 @@ public class FactionAccordionCreator {
|
||||
}
|
||||
}
|
||||
|
||||
List<PlayerProfile> memberProfiles = players.stream().filter(p -> members.contains(p.getUniqueId())).collect(Collectors.toList());
|
||||
List<PlayerProfile> memberProfiles = players.stream().filter(p -> members.contains(p.getUuid())).collect(Collectors.toList());
|
||||
|
||||
List<Session> sessions = memberProfiles.stream()
|
||||
.map(PlayerProfile::getSessions)
|
||||
|
@ -41,7 +41,7 @@ public class KingdomAccordionCreator {
|
||||
int residentsNum = members.size();
|
||||
|
||||
List<PlayerProfile> memberProfiles = players.stream()
|
||||
.filter(p -> members.contains(p.getUniqueId()))
|
||||
.filter(p -> members.contains(p.getUuid()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
List<Session> sessions = memberProfiles.stream()
|
||||
|
@ -8,7 +8,7 @@ package com.djrapitops.pluginbridge.plan.protocolsupport;
|
||||
import com.djrapitops.plan.Plan;
|
||||
import com.djrapitops.plan.system.database.databases.Database;
|
||||
import com.djrapitops.plan.system.database.databases.sql.SQLDB;
|
||||
import com.djrapitops.plan.system.processing.Processor;
|
||||
import com.djrapitops.plan.system.processing.Processing;
|
||||
import com.djrapitops.plugin.api.utility.log.Log;
|
||||
import com.djrapitops.pluginbridge.plan.viaversion.ProtocolTable;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -40,7 +40,7 @@ public class PlayerVersionListener implements Listener {
|
||||
ProtocolVersion protocolVersion = ProtocolSupportAPI.getProtocolVersion(player);
|
||||
int playerVersion = protocolVersion.getId();
|
||||
Plan plan = Plan.getInstance();
|
||||
Processor.queue(() -> {
|
||||
Processing.submitNonCritical(() -> {
|
||||
try {
|
||||
new ProtocolTable((SQLDB) Database.getActive()).saveProtocolVersion(uuid, playerVersion);
|
||||
} catch (SQLException e) {
|
||||
|
@ -55,7 +55,7 @@ public class TownAccordionCreator {
|
||||
}
|
||||
}
|
||||
|
||||
List<PlayerProfile> memberProfiles = players.stream().filter(p -> members.contains(p.getUniqueId())).collect(Collectors.toList());
|
||||
List<PlayerProfile> memberProfiles = players.stream().filter(p -> members.contains(p.getUuid())).collect(Collectors.toList());
|
||||
|
||||
List<Session> sessions = memberProfiles.stream()
|
||||
.map(PlayerProfile::getSessions)
|
||||
|
@ -7,7 +7,7 @@ package com.djrapitops.pluginbridge.plan.viaversion;
|
||||
|
||||
import com.djrapitops.plan.system.database.databases.Database;
|
||||
import com.djrapitops.plan.system.database.databases.sql.SQLDB;
|
||||
import com.djrapitops.plan.system.processing.Processor;
|
||||
import com.djrapitops.plan.system.processing.Processing;
|
||||
import com.djrapitops.plugin.api.utility.log.Log;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
@ -36,7 +36,7 @@ public class PlayerVersionListener implements Listener {
|
||||
public void onJoin(PlayerJoinEvent event) {
|
||||
UUID uuid = event.getPlayer().getUniqueId();
|
||||
int playerVersion = viaAPI.getPlayerVersion(uuid);
|
||||
Processor.queue(() -> {
|
||||
Processing.submitNonCritical(() -> {
|
||||
try {
|
||||
new ProtocolTable((SQLDB) Database.getActive()).saveProtocolVersion(uuid, playerVersion);
|
||||
} catch (SQLException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user