23 lines
680 B
Java
23 lines
680 B
Java
/*
|
|
* Copyright (C) 2024 Minecon724
|
|
* Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
|
|
* in the project root for the full license text.
|
|
*/
|
|
|
|
package eu.m724.tweaks.compass;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class CompassPlayerPreferences {
|
|
static Map<Player, CompassPlayerPreferences> playerMap = new HashMap<>();
|
|
|
|
boolean visible = false;
|
|
Map<Integer, String> customPoints = new HashMap<>();
|
|
|
|
static CompassPlayerPreferences get(Player player) {
|
|
return CompassPlayerPreferences.playerMap.computeIfAbsent(player, (k) -> new CompassPlayerPreferences());
|
|
}
|
|
}
|