From e901568a07893a2a5cef3be499122b203ab67d70 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 11 Dec 2020 15:19:15 +0100 Subject: [PATCH] Hotfix WE security issue --- .../src/de/steamwar/bausystem/world/ScriptListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java index 14dd914..0d2eddb 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java @@ -48,7 +48,7 @@ public class ScriptListener implements Listener { BookMeta meta = (BookMeta) item.getItemMeta(); for(String page : meta.getPages()){ for(String command : page.split("\n")){ - PlayerCommandPreprocessEvent preprocessEvent = new PlayerCommandPreprocessEvent(player, command); + PlayerCommandPreprocessEvent preprocessEvent = new PlayerCommandPreprocessEvent(player, "/" + command); Bukkit.getServer().getPluginManager().callEvent(preprocessEvent); if(preprocessEvent.isCancelled()) continue;