mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
shorter code alternative
This commit is contained in:
1 parent
b2d4af1c79
commit
fcb5fd8fad
1 file changed
+1
-6
@@ -49,12 +49,7 @@ public class BukkitEventListener implements Listener {
|
||||
if (Shared.disabled) return;
|
||||
TabPlayer disconnectedPlayer = Shared.getPlayer(e.getPlayer().getUniqueId());
|
||||
if (disconnectedPlayer == null) return;
|
||||
Shared.cpu.runTask("processing PlayerQuitEvent", new Runnable() {
|
||||
|
||||
public void run() {
|
||||
Shared.featureManager.onQuit(disconnectedPlayer);
|
||||
}
|
||||
});
|
||||
Shared.cpu.runTask("processing PlayerQuitEvent", () -> Shared.featureManager.onQuit(disconnectedPlayer));
|
||||
Shared.data.remove(e.getPlayer().getUniqueId());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user