mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-17 21:51:25 +01:00
Fixed exception on Caller.updatePlayer (#1179)
* Caller.updatePlayer(null, null) now fails silently * Updated DKBans Extension Fixes update call with null UUID Affects issues: - Close #1176
This commit is contained in:
parent
0c38f6f8c6
commit
d05ece6106
@ -151,6 +151,9 @@ public class ExtensionServiceImplementation implements ExtensionService {
|
||||
if (!gatherer.canCallEvent(event)) {
|
||||
return;
|
||||
}
|
||||
if (playerUUID == null && playerName == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
logger.getDebugLogger().logOn(DebugChannels.DATA_EXTENSIONS, "Gathering values for: " + playerName);
|
||||
|
||||
|
@ -21,7 +21,6 @@ import com.djrapitops.plan.extension.Caller;
|
||||
import com.djrapitops.plan.extension.ExtensionServiceImplementation;
|
||||
import com.djrapitops.plan.extension.implementation.providers.gathering.ProviderValueGatherer;
|
||||
import com.djrapitops.plan.processing.Processing;
|
||||
import com.djrapitops.plugin.utilities.Verify;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@ -48,8 +47,6 @@ public class CallerImplementation implements Caller {
|
||||
|
||||
@Override
|
||||
public void updatePlayerData(UUID playerUUID, String playerName) {
|
||||
Verify.nullCheck(playerUUID, () -> new IllegalArgumentException("'playerUUID' can not be null!"));
|
||||
Verify.nullCheck(playerName, () -> new IllegalArgumentException("'playerName' can not be null!"));
|
||||
processing.submitNonCritical(() -> extensionServiceImplementation.updatePlayerValues(gatherer, playerUUID, playerName, CallEvents.MANUAL));
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ dependencies {
|
||||
compile 'com.djrapitops:Extension-BanManager:5.15.0-R0.5'
|
||||
compile 'com.djrapitops:Extension-CoreProtect:2.16.0-R0.4'
|
||||
compile 'com.djrapitops:Extension-DiscordSRV:1.16.6-R0.4'
|
||||
compile 'com.djrapitops:Extension-DKBans:2.1.2-R0.1'
|
||||
compile 'com.djrapitops:Extension-DKBans:2.1.2-R0.2'
|
||||
compile 'com.djrapitops:Extension-DKCoins:3.0.5-R0.1'
|
||||
compile 'com.djrapitops:Extension-EssentialsX:2.15.0-R0.3'
|
||||
compile 'com.djrapitops:Extension-Factions:2.14.0-R0.1'
|
||||
|
Loading…
Reference in New Issue
Block a user