...
 
Commits (2)
......@@ -51,6 +51,7 @@ public class Menus {
items.add(new MenuEntry(backItem, ctx->displayMainMenu(ctx.player)));
items.addAll(BanList.INSTANCE.bans.stream().map(e->new MenuEntry(e.toItem(), ctx->displayBan(ctx.player, e))).collect(Collectors.toList()));
items.add(new MenuEntry(new DisplayStackGen(Items.water_bucket).name("New ban entry").gen(), ctx->{BanEntry e=new BanEntry(); displayBan(ctx.player, e); BanList.INSTANCE.addBan(e);}));
items.add(new MenuEntry(new DisplayStackGen(Items.chest).name("Save ban list").gen(), ctx->{BanList.INSTANCE.save();}));
new InventoryMenu("Banned Items", player, items).display();
}
......@@ -120,4 +121,4 @@ public class Menus {
}
})).collect(Collectors.toList())).display();
}
}
\ No newline at end of file
}