Initial commit

This commit is contained in:
Scifi9902
2026-10-12 13:57:05 -03:00
commit 4bde3b176a
2576 changed files with 212659 additions and 0 deletions
@@ -0,0 +1,37 @@
package net.crankedpvp.staff.managers;
import com.google.common.collect.Maps;
import lombok.Getter;
import net.crankedpvp.staff.StaffPlugin;
import net.crankedpvp.staff.struct.StaffMode;
import org.bukkit.entity.Player;
import java.util.Map;
public class StaffManager {
private final StaffPlugin plugin;
public StaffManager(StaffPlugin plugin) {
this.plugin = plugin;
this.playersInStaffMode = Maps.newConcurrentMap();
}
@Getter
private final Map<Player, StaffMode> playersInStaffMode;
public StaffMode getStaffModeFromPlayer(Player player) {
return this.playersInStaffMode.get(player);
}
public boolean isPlayerInStaffMode(Player player) {
return playersInStaffMode.containsKey(player);
}
public void removePlayerFromStaffMode(Player player) {
this.playersInStaffMode.remove(player);
}
public void putPlayerInStaffMode(Player player, StaffMode staffMode) {
this.playersInStaffMode.put(player, staffMode);
}
}