From c90f82701e73c876fe241ffef99064012d0f5d5f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 7 Feb 2020 15:57:50 +0100 Subject: [PATCH] Hotfix 1.15 worldName support Signed-off-by: Lixfel --- .../de/steamwar/schematicsystem/commands/CheckCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/CheckCommand.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/CheckCommand.java index 6eb3dda..5b0fa0e 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/CheckCommand.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/CheckCommand.java @@ -51,7 +51,9 @@ public class CheckCommand implements CommandExecutor { } break; case "schematic": - if(!player.getWorld().getName().equals(player.getUniqueId().toString())) { + SteamwarUser checker = SteamwarUser.get(player.getUniqueId()); + String worldName = player.getWorld().getName(); + if(!worldName.equals(player.getUniqueId().toString()) && !worldName.equals(Integer.toString(checker.getId()))) { player.sendMessage(SchematicSystem.PREFIX + "§cZum Prüfen musst du dich auf deinem Bauserver befinden!"); return false; }else if(args.length < 3){