From 6dcda0f5094c4d50ec73527f1e6ce39c127aed51 Mon Sep 17 00:00:00 2001 From: YoyoSource Date: Thu, 10 Dec 2020 21:30:31 +0100 Subject: [PATCH] Add Comments to scripts --- .../src/de/steamwar/bausystem/world/ScriptListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java index 69d0b09..ff3986f 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java @@ -47,6 +47,7 @@ public class ScriptListener implements Listener { BookMeta meta = (BookMeta) item.getItemMeta(); for(String page : meta.getPages()){ for(String command : page.split("\n")){ + if (command.startsWith("#")) continue; Bukkit.getLogger().log(Level.INFO, player.getName() + " dispatched command: " + command); Bukkit.getServer().dispatchCommand(player, command); }