private void OnReceivedSchematic(IServerPlayer fromPlayer, SchematicJsonPacket networkMessage) { WorldEditWorkspace workspace = GetOrCreateWorkSpace(fromPlayer); if (workspace.ToolsEnabled && workspace.ToolInstance is ImportTool) { ImportTool impTool = workspace.ToolInstance as ImportTool; string error = null; BlockSchematic schematic = BlockSchematic.LoadFromString(networkMessage.JsonCode, ref error); if (error == null) { this.fromPlayer = fromPlayer; impTool.SetBlockDatas(this, new BlockSchematic[] { schematic }); fromPlayer.SendMessage(GlobalConstants.CurrentChatGroup, Lang.Get("Ok, schematic loaded into clipboard."), EnumChatType.CommandSuccess); } else { fromPlayer.SendMessage(GlobalConstants.CurrentChatGroup, Lang.Get("Error loading schematic: {0}", error), EnumChatType.CommandError); } } }