Page 2 of 2

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 05:23
by Laserhog
For the string you would put the stuff you need in it, ie, for the player name you use

Code: Select all

event.getPlayer().getName();
To get the x, y and z to a double use

Code: Select all

event.getPlayer().getLocation().getX();
event.getPlayer().getLocation().getY();
event.getPlayer().getLocation().getZ();
You could make all these different variables like

Code: Select all

double playerX = event.getPlayer().getLocation().getX();
What IDE are you using? Eclipse?

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 05:37
by oozy
Yup.

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 09:30
by HeinzPeter
Hey oozy,
i dont know about java very much, but i know other languages.
But if it helps, you can check out the HPMCore plugin for examples.
Remember: this is my first java project
http://hpcraft.de:404/websvn/listing.ph ... =%2Fsrc%2F" onclick="window.open(this.href);return false;

We are already having a dev-team (small but mighty!)
Using eclipse with a svn connector - so everybody can upload code,
as you can see in the svn log. Have fun - and maybe you help us soon! :-)