Teaching myself code, need plugin suggestions.

Talk about that, this and about these golden apples here.
Laserhog
Lord!
Lord!
Posts: 152
Joined: 13 Apr 2011, 03:58
Nickname: laserhog
Nation: Mercatorinos
Hometown: Indigo City
Location: Auckland, New Zealand

Re: Teaching myself code, need plugin suggestions.

Post 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?
I do things the only way i know how
Difficulty
oozy
World Member!
World Member!
Posts: 203
Joined: 17 Dec 2010, 13:29
Nickname: FelixMoogster
Nation: HP-EMPiRE
Hometown: None

Re: Teaching myself code, need plugin suggestions.

Post by oozy »

Yup.
Check out my new youtube channel:
http://www.youtube.com/felixmoog" onclick="window.open(this.href);return false;
User avatar
HeinzPeter
World Owner!
World Owner!
Posts: 1611
Joined: 14 Dec 2010, 23:00
Nickname: HeinzPeter
Nation: HP-EMPiRE
Location: NRW, Germany
Contact:

Re: Teaching myself code, need plugin suggestions.

Post 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! :-)
Enjoy your stay. HPM! GMAP! STATS!
Save the forests! WWF
Our empty YouTube Channel.
Post Reply