Page 1 of 1

Bukkit Plugins

Posted: Mon Apr 30, 2012 7:33 pm
by Samuel98
Content Deleted

Re: Bukkit Plugins

Posted: Tue May 01, 2012 7:14 pm
by Samuel98
Content Deleted

Re: Bukkit Plugins

Posted: Thu May 03, 2012 12:17 am
by jacek
You need to join all of the arguments together, the easy way is this
String message = args[0];

for (int i = 1; i < args.length; ++i){
    message += " " + args;
}

Then the variable message will contain all of the arguments with spaces between them.

Re: Bukkit Plugins

Posted: Sun May 06, 2012 9:18 pm
by offluffy
jacek wrote:You need to join all of the arguments together, the easy way is this
String message = args[0];

for (int i = 1; i < args.length; ++i){
    message += " " + args;
}

Then the variable message will contain all of the arguments with spaces between them.


lmao, I remember some of your earlier vids used message = ""; and message += args + " ", which set a space after the string XD
Nice that you've started doing it this way O.o

Re: Bukkit Plugins

Posted: Mon May 07, 2012 3:36 pm
by jacek
offluffy wrote:lmao, I remember some of your earlier vids used message = ""; and message += args + " ", which set a space after the string XD

I did that for ease of explanation. And extras space does not really matter does it ?

Re: Bukkit Plugins

Posted: Tue May 08, 2012 3:27 am
by offluffy
Nah, bugged the hell outta meh when I saw it in the config, but it's all good XD I didn't even think about looping it like that, ended up doing a much more complicated loop @.@ But I think I like this better. Might steal it if I can find the spot I had it before.