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){