ChestShop-3/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerLeave.java
Phoenix616 0b65a7cc92 Rewrite (and document) the NameManager
This should fix issues with how name changes are handled and also prevent short names of different players from clashing. It also uses guava caches instead of maps now with a configurable cache size
2017-06-30 20:28:18 +01:00

22 lines
552 B
Java

package com.Acrobot.ChestShop.Listeners.Player;
import com.Acrobot.ChestShop.Commands.Toggle;
import com.Acrobot.ChestShop.UUIDs.NameManager;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
/**
* @author KingFaris10
*/
public class PlayerLeave implements Listener {
@EventHandler
public static void onPlayerLeave(PlayerQuitEvent event) {
if (Toggle.isIgnoring(event.getPlayer())) {
Toggle.setIgnoring(event.getPlayer(), false);
}
}
}