{"action":"created","issue":{"url":"https://api.github.com/repos/xXKeyleXx/MyPet/issues/612","labels_url":"https://api.github.com/repos/xXKeyleXx/MyPet/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/xXKeyleXx/MyPet/issues/612/comments","events_url":"https://api.github.com/repos/xXKeyleXx/MyPet/issues/612/events","html_url":"https://github.com/xXKeyleXx/MyPet/issues/612","id":129686489,"number":612,"title":"Can you change the MyPetPlayer class?","user":{"login":"FabioZumbi12","id":5833818,"avatar_url":"https://avatars.githubusercontent.com/u/5833818?v=3","gravatar_id":"","url":"https://api.github.com/users/FabioZumbi12","html_url":"https://github.com/FabioZumbi12","followers_url":"https://api.github.com/users/FabioZumbi12/followers","following_url":"https://api.github.com/users/FabioZumbi12/following{/other_user}","gists_url":"https://api.github.com/users/FabioZumbi12/gists{/gist_id}","starred_url":"https://api.github.com/users/FabioZumbi12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabioZumbi12/subscriptions","organizations_url":"https://api.github.com/users/FabioZumbi12/orgs","repos_url":"https://api.github.com/users/FabioZumbi12/repos","events_url":"https://api.github.com/users/FabioZumbi12/events{/privacy}","received_events_url":"https://api.github.com/users/FabioZumbi12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-29T07:15:41Z","updated_at":"2016-01-31T12:52:28Z","closed_at":"2016-01-31T12:52:28Z","body":"My plugin supports all versions of minecraft, including 1.7.10. With the change of way we get the MyPetPlayer, i cant import \"de.Keyle.MyPet.util.player.MyPetPlayer\" for both versions to check and the property methos to get the player.\r\n\r\nThis is my code:\r\n\r\n```\r\nMyPetPlayer mpp = null;\r\n            \tif (Bukkit.getPluginManager().getPlugin(\"MyPet\").getDescription().getVersion().contains(\"1.2.4\")){\r\n            \t\tmpp = PlayerList.getMyPetPlayer(p.getName());  \r\n            \t} else {\r\n            \t\tmpp = MyPetPlayer.getMyPetPlayer(p.getName()); \r\n            \t}\r\n```\r\nBut i cant compile because the new \"MyPetPlayer\" dont have \"getMyPetPlayer(player)\". I cant import both versions too because the class \"MyPetPlayer\" dont changed.\r\n\r\n...or add this method again on MyPetPlayer only for compatibility access.\r\n\r\nIs this possible? Thanks."},"comment":{"url":"https://api.github.com/repos/xXKeyleXx/MyPet/issues/comments/177491457","html_url":"https://github.com/xXKeyleXx/MyPet/issues/612#issuecomment-177491457","issue_url":"https://api.github.com/repos/xXKeyleXx/MyPet/issues/612","id":177491457,"user":{"login":"FabioZumbi12","id":5833818,"avatar_url":"https://avatars.githubusercontent.com/u/5833818?v=3","gravatar_id":"","url":"https://api.github.com/users/FabioZumbi12","html_url":"https://github.com/FabioZumbi12","followers_url":"https://api.github.com/users/FabioZumbi12/followers","following_url":"https://api.github.com/users/FabioZumbi12/following{/other_user}","gists_url":"https://api.github.com/users/FabioZumbi12/gists{/gist_id}","starred_url":"https://api.github.com/users/FabioZumbi12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabioZumbi12/subscriptions","organizations_url":"https://api.github.com/users/FabioZumbi12/orgs","repos_url":"https://api.github.com/users/FabioZumbi12/repos","events_url":"https://api.github.com/users/FabioZumbi12/events{/privacy}","received_events_url":"https://api.github.com/users/FabioZumbi12/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T12:52:28Z","updated_at":"2016-01-31T12:52:28Z","body":"Thank you for the help! ^^"}}