Cuberite Forum
How to get Player coords ? - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: How to get Player coords ? (/thread-2232.html)



How to get Player coords ? - Dominent - 12-04-2015

Hey community. I am writing a plugin that teleports you to desired location(set by the user) but i am having some problems the first one is that i cannot find a way to get the players coords . Any Ideas ?

Thanks in advance
Dominent


RE: How to get Player coords ? - DrMasik - 12-04-2015

http://api-docs.cuberite.org/cPlayer.html
GetPosX
GetPosY
GetPosZ
GetPosition


RE: How to get Player coords ? - Dominent - 12-04-2015

Thanks for the reply i have another question how can i handle the name of the home the user enters and how can i store it ?

http://pastebin.com/qnwUFwbv


RE: How to get Player coords ? - DrMasik - 12-04-2015

The plugin exists Homes
Get it and read code