From 3231e15f366893be73497e29875db54b4416a956 Mon Sep 17 00:00:00 2001 From: ohAlee Date: Sat, 22 Apr 2023 15:28:59 +0200 Subject: [PATCH] Class name refactor --- .../minecraftgpt/handler/PlayerHandler.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/it/ohalee/minecraftgpt/handler/PlayerHandler.java diff --git a/src/main/java/it/ohalee/minecraftgpt/handler/PlayerHandler.java b/src/main/java/it/ohalee/minecraftgpt/handler/PlayerHandler.java new file mode 100644 index 0000000..fc119ee --- /dev/null +++ b/src/main/java/it/ohalee/minecraftgpt/handler/PlayerHandler.java @@ -0,0 +1,19 @@ +package it.ohalee.minecraftgpt.handler; + +import it.ohalee.minecraftgpt.Main; +import lombok.RequiredArgsConstructor; +import org.bukkit.event.EventHandler; +import org.bukkit.event.Listener; +import org.bukkit.event.player.PlayerQuitEvent; + +@RequiredArgsConstructor +public class PlayerHandler implements Listener { + + private final Main plugin; + + @EventHandler + public void onQuit(PlayerQuitEvent e) { + Main.CACHE.invalidate(e.getPlayer()); + } + +}