1

Bukkit Development Help

SnapsCraft 4/17/14 3:54 am
555
4/18/2014 4:28 am
Hello there! I have wonderer a while now how to make strings in bukkit. What i mean by that is if i type (Example: /setmessage 1 Hello There Everyone!

And it says that message when someone does /message show?



I mean i wonder how to set things without configs!


Hope you understand!

Thanks for a reply!

~Garneift~
Posted by
SnapsCraft
Level 4 : Apprentice Mage
0

  Have something to say?

JoinSign in

19

yewtree8_
04/18/2014 4:28 am
Level 27 : Expert Pokémon
omg guys i went through this and n one gave any help whatsoever

public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
Player player = (Player) sender; {
if(cmd.getName().equalsIgnoreCase("setmessage") {
if(args.length == 3) {
if(args[0].equalsIgnoreCase("hello") {
if(args.[1].equalsIgnoreCase("there") {
if(args.[2].equalsIgnoreCase("Everyone") {

//THEN PUT YOUR CODE HERE

}

}

}


}



}



}

}
1
SomeonePrivate
04/18/2014 4:22 am
Level 9 : Apprentice Explorer
1
SomeonePrivate
04/18/2014 4:19 am
Level 9 : Apprentice Explorer
"if(Args.length == something)"
1
SnapsCraft
04/18/2014 3:57 am
Level 4 : Apprentice Mage
I never knew how to decompile a jar in eclipse just how to add it to the build path troll!
1
superpeanut911
04/17/2014 1:11 pm
Level 54 : Grandmaster Network
I wrote some Bukkit tutorials ages ago, click my profile and try those.
1
some1epic123
04/17/2014 1:14 pm
Level 23 : Expert Modder
Not trying to be rude, but OP really isn't ready to make Bukkit plugins if he/she
doesn't know how to save Strings in a text file and thinks that you can save
Strings without one. Programming knowledge is required to make anything
original or decent.
1
weakwizardsucks2
04/17/2014 5:24 am
Level 3 : Apprentice Network
Taking a lot longer than I thought. May be a while longer yet.
1
weakwizardsucks2
04/17/2014 5:04 am
Level 3 : Apprentice Network
Ok
1
SnapsCraft
04/17/2014 4:47 am
Level 4 : Apprentice Mage
Also,,, Thanks
1
SnapsCraft
04/17/2014 4:46 am
Level 4 : Apprentice Mage
Or something like that
1
SnapsCraft
04/17/2014 4:46 am
Level 4 : Apprentice Mage
Just TestMessage
1
weakwizardsucks2
04/17/2014 4:43 am
Level 3 : Apprentice Network
What do you want the plugin folder to be called? I will have a file to store messages. You can edit it the file.
1
weakwizardsucks2
04/17/2014 4:16 am
Level 3 : Apprentice Network
So, my files got corrupted and I lost the source code. Got to rewrite it. *FACEDESK*
1
some1epic123
04/17/2014 1:04 pm
Level 23 : Expert Modder
If you have the JAR, decompile it?

@OP All you have to do is make
a String and save it into a text file,
then when the plugin stops/starts you save/load the data.
You say you want to do it without a file, but if you had any programming
experience you would know that this is not possible. How will the server
know about your variable after it stops/reloads and wipes all the variables
unless you save it somewhere?
1
weakwizardsucks2
04/17/2014 4:11 am
Level 3 : Apprentice Network
Ok finding it now coz my old pc is slow as hell
1
SnapsCraft
04/17/2014 4:09 am
Level 4 : Apprentice Mage
weakwizardsucks2
SnapsCraftHello there! I have wonderer a while now how to make strings in bukkit. What i mean by that is if i type (Example: /setmessage 1 Hello There Everyone!

And it says that message when someone does /message show?



I mean i wonder how to set things without configs!


Hope you understand!

Thanks for a reply!

~Garneift~

Also, by /message show, do you mean /showmessage 1?



Yeah i did. Thanks
1
Banme125
04/17/2014 4:07 am
Level 1 : New Miner
You could save it in the plugin.yml
1
weakwizardsucks2
04/17/2014 4:02 am
Level 3 : Apprentice Network
SnapsCraftHello there! I have wonderer a while now how to make strings in bukkit. What i mean by that is if i type (Example: /setmessage 1 Hello There Everyone!

And it says that message when someone does /message show?



I mean i wonder how to set things without configs!


Hope you understand!

Thanks for a reply!

~Garneift~

Also, by /message show, do you mean /showmessage 1?
1
weakwizardsucks2
04/17/2014 3:59 am
Level 3 : Apprentice Network
I did this in one of my plugins on my old pc. Will pm you with code

EDIT: Code is in Java BTW
1

Welcome