mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02:00
Removed debug messages from sponge kill processor
This commit is contained in:
parent
2b6564bb32
commit
41cce35f9a
@ -29,7 +29,7 @@ public class SpongeKillProcessor implements CriticalRunnable {
|
|||||||
*
|
*
|
||||||
* @param uuid UUID of the killer.
|
* @param uuid UUID of the killer.
|
||||||
* @param time Epoch ms the event occurred.
|
* @param time Epoch ms the event occurred.
|
||||||
* @param deadUUID Dead entity (Mob or Player)
|
* @param deadUUID Dead entity (Mob or Player)
|
||||||
* @param weaponName Weapon used.
|
* @param weaponName Weapon used.
|
||||||
*/
|
*/
|
||||||
public SpongeKillProcessor(UUID uuid, long time, UUID deadUUID, String weaponName) {
|
public SpongeKillProcessor(UUID uuid, long time, UUID deadUUID, String weaponName) {
|
||||||
@ -42,24 +42,15 @@ public class SpongeKillProcessor implements CriticalRunnable {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
Optional<Session> cachedSession = SessionCache.getCachedSession(uuid);
|
Optional<Session> cachedSession = SessionCache.getCachedSession(uuid);
|
||||||
System.out.println("*");
|
|
||||||
if (!cachedSession.isPresent()) {
|
if (!cachedSession.isPresent()) {
|
||||||
System.out.println("No session");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
System.out.println("**");
|
|
||||||
Session session = cachedSession.get();
|
Session session = cachedSession.get();
|
||||||
System.out.println("***");
|
|
||||||
|
|
||||||
if (deadUUID != null) {
|
if (deadUUID != null) {
|
||||||
System.out.println("Dead player");
|
|
||||||
|
|
||||||
session.playerKilled(new PlayerKill(deadUUID, weaponName, time));
|
session.playerKilled(new PlayerKill(deadUUID, weaponName, time));
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Dead mob");
|
|
||||||
|
|
||||||
session.mobKilled();
|
session.mobKilled();
|
||||||
}
|
}
|
||||||
System.out.println("****");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user