tweaks724/src/main/java/eu/m724/tweaks/compass/CompassPlayerPreferences.java
Minecon724 740fab869e
Some checks failed
/ deploy (push) Failing after 1m5s
add license
2024-11-27 20:46:13 +01:00

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());
}
}