Script Turing Completeness #152
@ -63,7 +63,7 @@ public class CommandScript implements CommandExecutor {
|
|||||||
ItemStack itemStack = new ItemStack(Material.WRITTEN_BOOK, 1);
|
ItemStack itemStack = new ItemStack(Material.WRITTEN_BOOK, 1);
|
||||||
|
|||||||
BookMeta bookMeta = (BookMeta) itemStack.getItemMeta();
|
BookMeta bookMeta = (BookMeta) itemStack.getItemMeta();
|
||||||
bookMeta.setGeneration(BookMeta.Generation.ORIGINAL);
|
bookMeta.setGeneration(BookMeta.Generation.ORIGINAL);
|
||||||
bookMeta.setAuthor("§6Steam§8war");
|
bookMeta.setAuthor("§eSteam§8war");
|
||||||
bookMeta.setTitle("§8Script Buch");
|
bookMeta.setTitle("§8Script Buch");
|
||||||
bookMeta.setDisplayName("§8Script Buch");
|
bookMeta.setDisplayName("§8Script Buch");
|
||||||
bookMeta.setPages(PAGES);
|
bookMeta.setPages(PAGES);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Kann man den Itemstack nicht in einer private static final Variable haben?