public void removeAllThieves() { for (ThievesPlayer thief : stealingPlayers.keySet()) { Player splayer = thief.getPlayer(); // SpoutManager.getPlayer(thief); splayer.closeInventory(); plugin.getMoveChecker().removeThief(thief, getTarget(thief)); } stealingPlayers.clear(); }
public void addThief(ThievesPlayer thief, ThievesPlayer target) { stealingPlayers.put(thief, target); plugin.getMoveChecker().addThief(thief.getPlayer(), target.getPlayer()); }