{"action":"created","issue":{"url":"https://api.github.com/repos/benbaptist/minecraft-wrapper/issues/65","labels_url":"https://api.github.com/repos/benbaptist/minecraft-wrapper/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/benbaptist/minecraft-wrapper/issues/65/comments","events_url":"https://api.github.com/repos/benbaptist/minecraft-wrapper/issues/65/events","html_url":"https://github.com/benbaptist/minecraft-wrapper/issues/65","id":54264460,"number":65,"title":"minecraft.getplayer() not working","user":{"login":"suresttexas00","id":10001762,"avatar_url":"https://avatars.githubusercontent.com/u/10001762?v=3","gravatar_id":"","url":"https://api.github.com/users/suresttexas00","html_url":"https://github.com/suresttexas00","followers_url":"https://api.github.com/users/suresttexas00/followers","following_url":"https://api.github.com/users/suresttexas00/following{/other_user}","gists_url":"https://api.github.com/users/suresttexas00/gists{/gist_id}","starred_url":"https://api.github.com/users/suresttexas00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suresttexas00/subscriptions","organizations_url":"https://api.github.com/users/suresttexas00/orgs","repos_url":"https://api.github.com/users/suresttexas00/repos","events_url":"https://api.github.com/users/suresttexas00/events{/privacy}","received_events_url":"https://api.github.com/users/suresttexas00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-13T23:34:57Z","updated_at":"2015-01-14T00:05:30Z","closed_at":"2015-01-14T00:05:30Z","body":"\r\n```\r\n[18:25:28] [Wrapper.py/INFO] Server started\r\n[18:25:34] [Wrapper.py/INFO] Minecraftboy2019 logged in (UUID: 54880482-2b03-47e\r\n5-a268-8290fd1e0b46 | IP: 184.18.6.142)\r\n[18:25:34] [Wrapper.py/INFO] SurestTexas00 logged in (UUID: 4f953255-6775-4dc6-a\r\n612-fb4230588eff | IP: 184.18.6.142)\r\n[18:25:34] [Server thread/INFO]: Minecraftboy2019[/127.0.0.1:50589] logged in wi\r\nth entity id 86 at (-5.929453122828301, 67.5, 59.2162825799223)\r\n[18:25:34] [Server thread/INFO]: Minecraftboy2019 joined the game\r\n[18:25:34] [Server thread/INFO]: SurestTexas00[/127.0.0.1:50590] logged in with\r\nentity id 203 at (-4.662569043032987, 64.0, 56.53559989959318)\r\n[18:25:34] [Server thread/INFO]: SurestTexas00 joined the game\r\n[18:25:57] [Wrapper.py/INFO] SurestTexas00 executed: /tell Minecraftboy2019 yo mayn\r\n[18:25:57] [Wrapper.py/ERROR] Plugin 'com.suresttexas00.plugins.simple' errored\r\nout when executing command: '<SurestTexas00> /{'callback': <bound method Main._t\r\nell of <simple.Main instance at 0x02F39E18>>, 'permission': None}':\r\n[18:25:57] [Wrapper.py/ERROR] Traceback (most recent call last):\r\n[18:25:57] [Wrapper.py/ERROR]   File \"C:\\Users\\JRUSSELL\\Desktop\\vanilla\\Wrapper\\\r\n__main__.py\", line 420, in playerCommand\r\n[18:25:57] [Wrapper.py/ERROR]     command[\"callback\"](payload[\"player\"], payload\r\n[\"args\"])\r\n[18:25:57] [Wrapper.py/ERROR]   File \"wrapper-plugins\\simple.py\", line 247, in _\r\ntell\r\n[18:25:57] [Wrapper.py/ERROR]     if self.minecraft.getPlayer(targetname) == oth\r\nerplayer:\r\n[18:25:57] [Wrapper.py/ERROR] AttributeError: Main instance has no attribute 'mi\r\nnecraft'\r\n[18:25:57] [Wrapper.py/ERROR]\r\n```\r\n\r\nHere is the plugin code:\r\n\r\n\r\n\tdef _tell(self, player, args):\r\n\t\t# check to make sure there are arguments\r\n\t\tif len(args) <= 1:\r\n\t\t\tplayer.message({\"text\": \"Usage: /tell <player> <private message ...>\", \"color\": \"red\"})\r\n\t\t\treturn\r\n\t\t#set some variables\r\n\t\totherplayer = args[0]\r\n\t\tmess = \"\"\r\n\t\tfor index in range(len(args)-1):\r\n\t\t\tmess = mess + args[index+1] + \" \"\r\n\t\tmess = mess.replace(\"\\\"\",\"'\")\r\n\t\t#Error checking for not self\r\n\t\tif otherplayer == player.username:\r\n\t\t\tplayer.message({\"text\": \"You can't send a private message to yourself!\", \"color\": \"red\"})\r\n\t\t\treturn\r\n\t\t#Error checking for valid otherplayer\r\n\t\tplayeron = False\r\n\t\ttargetisOp = False\r\n\r\nLine 247 --->\t\t**for targetname in self.api.minecraft.getPlayers():**\r\n\r\n\t\t\tif self.minecraft.getPlayer(targetname) == otherplayer:\r\n\t\t\t\tplayeron = True\r\n\t\t\t\tif self.minecraft.getPlayer(targetname).isOp():\r\n\t\t\t\t\ttargetisOp = True\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/benbaptist/minecraft-wrapper/issues/comments/69846750","html_url":"https://github.com/benbaptist/minecraft-wrapper/issues/65#issuecomment-69846750","issue_url":"https://api.github.com/repos/benbaptist/minecraft-wrapper/issues/65","id":69846750,"user":{"login":"suresttexas00","id":10001762,"avatar_url":"https://avatars.githubusercontent.com/u/10001762?v=3","gravatar_id":"","url":"https://api.github.com/users/suresttexas00","html_url":"https://github.com/suresttexas00","followers_url":"https://api.github.com/users/suresttexas00/followers","following_url":"https://api.github.com/users/suresttexas00/following{/other_user}","gists_url":"https://api.github.com/users/suresttexas00/gists{/gist_id}","starred_url":"https://api.github.com/users/suresttexas00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suresttexas00/subscriptions","organizations_url":"https://api.github.com/users/suresttexas00/orgs","repos_url":"https://api.github.com/users/suresttexas00/repos","events_url":"https://api.github.com/users/suresttexas00/events{/privacy}","received_events_url":"https://api.github.com/users/suresttexas00/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T00:05:30Z","updated_at":"2015-01-14T00:05:30Z","body":"I think this is related to \r\nhttps://github.com/benbaptist/minecraft-wrapper/issues/61"}}