mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-27 14:13:05 +02:00
0b65a7cc92
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
22 lines
552 B
Java
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);
|
|
}
|
|
}
|
|
|
|
}
|