Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
413b08bdac
Commit
148811b827
@ -52,6 +52,10 @@ public class Kit {
|
|||||||
|
|
||||||
protected static final Map<Player, Kit> activeKits = new HashMap<>();
|
protected static final Map<Player, Kit> activeKits = new HashMap<>();
|
||||||
|
|
||||||
|
public static Kit getActiveKit(Player player) {
|
||||||
|
return activeKits.get(player);
|
||||||
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
if(!kits.exists()) {
|
if(!kits.exists()) {
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "Kitconfig fehlend!" + kits.getAbsolutePath());
|
Bukkit.getLogger().log(Level.SEVERE, "Kitconfig fehlend!" + kits.getAbsolutePath());
|
||||||
|
@ -134,7 +134,7 @@ public class PersonalKitCreator implements Listener {
|
|||||||
private InventoryBackup(Player player, PersonalKit kit){
|
private InventoryBackup(Player player, PersonalKit kit){
|
||||||
openKitCreators.put(player, this);
|
openKitCreators.put(player, this);
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.backup = new Kit("backup", player);
|
this.backup = Kit.getActiveKit(player);
|
||||||
this.kit = kit;
|
this.kit = kit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren