Teaching myself code, need plugin suggestions.

Talk about that, this and about these golden apples here.
oozy
World Member!
World Member!
Posts: 203
Joined: 17 Dec 2010, 13:29
Nickname: FelixMoogster
Nation: HP-EMPiRE
Hometown: None

Teaching myself code, need plugin suggestions.

Post by oozy »

Hello everyone

Recently ive been teaching myself along with aid of videos on how to code bukkit plugins, this means we can have plugins that are for Hp-Minecraft ONLY[/b, which is a big leap in our development.

So, now when i get round to coding plugins for the server, i will need a batch of ideas and suggestions on what the plugin will do .etc.


Hopefully getting some guidence from heinz on what he wants on his server ill be able to develop a set of plugins called (ironically :geek:)

Image



So, if you have any plugin ideas please post them below!
Check out my new youtube channel:
http://www.youtube.com/felixmoog" onclick="window.open(this.href);return false;
kyborek
World Guide!
World Guide!
Posts: 443
Joined: 01 Feb 2011, 22:55
Nickname: kyborek
Nation: HP-EMPiRE
Hometown: The Skytown
Location: Prague
Contact:

Re: Teaching myself code, need plugin suggestions.

Post by kyborek »

Heinz already made his very own core plugin that we are using and he is keeping clean code for easy development and good server performance. I dont think videos can teach you what is clean code.
Dumb people say what they know, wise people know what they say.
Image
Image
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 »

I understand what clean code is, its keeping all the sections of the code together but separate if you see what i mean =D.

Anyways lots of videos are giving me a basic understanding, and im thinking about taking some actual java classes.

The code im making now is in attempts to make the server more roleplay like, where for placing a certain block (acting as a becon) will give the server a chat message saying "Player placed a becon at x:-46 z:156"

Meaning that people can easily find each other.

However this is not 100% perfect as it needs to have some kind of world input in it such as "player placed a becon in Freebuild at x:-46 z:156"

Soo....we should start to think about putting a plugin team together mabye somthing like this:

Basic code writers:

Advanced code and basic code checkers:

Plugin and code checkers:

Testers:


somthing like that =D
Check out my new youtube channel:
http://www.youtube.com/felixmoog" onclick="window.open(this.href);return false;
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 »

To do this "becon" thing you would need a block listener then using the onBlockPlace event you can easily get the player that places it and their location, world , etc. Then you would assemble the string of info you want, ie. player name, world coords, then broadcast it. What tutorial are you using?
I do things the only way i know how
Difficulty
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 »

Well, i have to update the rank/command list.
But for now - use /pd (player distance) or /coords for searching or finding players. :)
Enjoy your stay. HPM! GMAP! STATS!
Save the forests! WWF
Our empty YouTube Channel.
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 »

As i say its in development so heinz can test out the plugin see if he likes it.
Check out my new youtube channel:
http://www.youtube.com/felixmoog" onclick="window.open(this.href);return false;
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 »

Im using torrent's tutorial from woopagaming, its taught me how to make the player receive a message when placing a block in this instance the beacon.

However i dont know the code for server broadcast, any examples?
Check out my new youtube channel:
http://www.youtube.com/felixmoog" onclick="window.open(this.href);return false;
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 »

Code: Select all

event.getPlayer().getServer().broadcastMessage("string here");
I think that may work, although i haven't really played around with it enough to know for sure. event is the BlockPlaceEvent event that you are using. Hope you get it.
You're doing the torch place tutorial? Thats where i started, i had no idea what i was copying down as i was doing it. Make sure you fully understand everything from it because it is all applicable in other plugin ideas.
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 »

yea im slowly picking it up.
What would we put for the string as in what codes for example
%p is player and thats all i know =D

Perhaps you and me want to make a plugin team?
Check out my new youtube channel:
http://www.youtube.com/felixmoog" onclick="window.open(this.href);return false;
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 »

Ah, i tried that once, school kinda screwed it up for me tho so nty. Also, ask questions on the Bukkit Forums if your stuck too, they are very helpful there if its a sensible question and a lot of the people are proficient in Java and the Bukkit API.
I do things the only way i know how
Difficulty
Post Reply