{"action":"created","issue":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/892","labels_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/892/labels{/name}","comments_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/892/comments","events_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/892/events","html_url":"https://github.com/MightyPirates/OpenComputers/issues/892","id":56840084,"number":892,"title":"Debug Cards' runCommand doesn't work with WorldEdit","user":{"login":"fnuecke","id":514903,"avatar_url":"https://avatars.githubusercontent.com/u/514903?v=3","gravatar_id":"","url":"https://api.github.com/users/fnuecke","html_url":"https://github.com/fnuecke","followers_url":"https://api.github.com/users/fnuecke/followers","following_url":"https://api.github.com/users/fnuecke/following{/other_user}","gists_url":"https://api.github.com/users/fnuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/fnuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnuecke/subscriptions","organizations_url":"https://api.github.com/users/fnuecke/orgs","repos_url":"https://api.github.com/users/fnuecke/repos","events_url":"https://api.github.com/users/fnuecke/events{/privacy}","received_events_url":"https://api.github.com/users/fnuecke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/labels/incompatibility","name":"incompatibility","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-06T17:16:23Z","updated_at":"2015-02-16T22:23:23Z","closed_at":null,"body":"Currently the debug card's `runCommand` method doesn't work with WorldEdit - at least the Forge variant, didn't test the other. This is because WE requires an actual player to issue the command; it'll just silently ignore commands from `ICommandSender`s, which is what the debug card implements, to easily capture text output generated by commands.\r\n\r\nThere are two workarounds I tried, but both were unsatisfactory:\r\n- Implement a full fake player for the debug card that is used to capture output.\r\n  - WE complains that the fake player lacks permissions - even if it uses a real player's profile and so on. Not sure what's going on there.\r\n- Use the actual player entity of a player bound to the card for issuing the commands.\r\n  - While this does indeed work, text output cannot be captured, and general usefulness for the originally intended purpose is lost (which was for adventure maps; this way a command enabled player would have to be in the game for commands to work).\r\n\r\nIf anyone has an idea how to solve this, I'm all ears."},"comment":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/comments/74581719","html_url":"https://github.com/MightyPirates/OpenComputers/issues/892#issuecomment-74581719","issue_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/892","id":74581719,"user":{"login":"fnuecke","id":514903,"avatar_url":"https://avatars.githubusercontent.com/u/514903?v=3","gravatar_id":"","url":"https://api.github.com/users/fnuecke","html_url":"https://github.com/fnuecke","followers_url":"https://api.github.com/users/fnuecke/followers","following_url":"https://api.github.com/users/fnuecke/following{/other_user}","gists_url":"https://api.github.com/users/fnuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/fnuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnuecke/subscriptions","organizations_url":"https://api.github.com/users/fnuecke/orgs","repos_url":"https://api.github.com/users/fnuecke/repos","events_url":"https://api.github.com/users/fnuecke/events{/privacy}","received_events_url":"https://api.github.com/users/fnuecke/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T22:23:23Z","updated_at":"2015-02-16T22:23:23Z","body":"Aaaand it appears I screwed up last time I tested it, because now it seems to work, at least partially.\r\nSo I feel like an idiot \\o/"}}