Page 1 of 2

Teaching myself code, need plugin suggestions.

Posted: 24 Nov 2011, 17:59
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!

Re: Teaching myself code, need plugin suggestions.

Posted: 25 Nov 2011, 10:50
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.

Re: Teaching myself code, need plugin suggestions.

Posted: 25 Nov 2011, 14:46
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

Re: Teaching myself code, need plugin suggestions.

Posted: 25 Nov 2011, 19:54
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?

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 00:36
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. :)

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 02:59
by oozy
As i say its in development so heinz can test out the plugin see if he likes it.

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 03:43
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?

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 05:02
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.

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 05:10
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?

Re: Teaching myself code, need plugin suggestions.

Posted: 26 Nov 2011, 05:13
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.