Improve KitCreatorClosement
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
e4a56a56cf
Commit
f8769d83a9
@ -79,6 +79,7 @@ public class PersonalKitCreator extends BasicListener {
|
||||
|
||||
player.updateInventory();
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
toActionbar(player, TextComponent.fromLegacyText("§eInventar zum Anpassen des Kits öffnen§8!"));
|
||||
}
|
||||
|
||||
public static boolean notInKitCreator(HumanEntity player){
|
||||
@ -108,11 +109,11 @@ public class PersonalKitCreator extends BasicListener {
|
||||
|
||||
@EventHandler
|
||||
public void onMoveEvent(PlayerMoveEvent e){
|
||||
if(!openKitCreators.containsKey(e.getPlayer()))
|
||||
InventoryBackup backup = openKitCreators.get(e.getPlayer());
|
||||
if(backup == null)
|
||||
return;
|
||||
|
||||
e.setCancelled(true);
|
||||
toActionbar(e.getPlayer(), TextComponent.fromLegacyText("§eInventar zum Anpassen des Kits öffnen§8!"));
|
||||
backup.close();
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren