Plugin Help

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Lethal

♚ Masterpiece ♚
Restricted
Feedback score
0
Posts
2,346
Reactions
1,232
Resources
0
See your getting into coding now, eh? Nice!
 

Blowns

Premium
Feedback score
1
Posts
1,014
Reactions
526
Resources
0
For the most part.

1. Add "return true;" after you send these two message so it doesn't continue.

2. To check what they typed for that argument, you would put if(args[0].equalsIgnoreCase("0")) {

Before doing 2., check if the length of the args are == 1.

Also, post these type of questions here: http://bukkit.org/forums/plugin-development.5/
 

ComeAlive

Feedback score
0
Posts
23
Reactions
7
Resources
0
For the most part.

1. Add "return true;" after you send these two message so it doesn't continue.

2. To check what they typed for that argument, you would put if(args[0].equalsIgnoreCase("0")) {

Before doing 2., check if the length of the args are == 1.

Also, post these type of questions here: http://bukkit.org/forums/plugin-development.5/
Naw, I'm doing Spigot development, so I use the Spigot forum instead.
And yes, I've posted it there.

Thanks for the help.
 

TheFancyWhale

✵ Plugin Developer ✵
Premium
Feedback score
0
Posts
250
Reactions
142
Resources
0
For the most part.

1. Add "return true;" after you send these two message so it doesn't continue.

2. To check what they typed for that argument, you would put if(args[0].equalsIgnoreCase("0")) {

Before doing 2., check if the length of the args are == 1.

Also, post these type of questions here: http://bukkit.org/forums/plugin-development.5/
We need some more context. Also, .equalsIgnoreCase doesn't matter if he is checking for the number 0. I would suggest bukkit or spigot forums for this. Also, I would use pastebin/github rather than a screenshot in the future :p
 

ComeAlive

Feedback score
0
Posts
23
Reactions
7
Resources
0
We need some more context. Also, .equalsIgnoreCase doesn't matter if he is checking for the number 0. I would suggest bukkit or spigot forums for this. Also, I would use pastebin/github rather than a screenshot in the future :p
Easier to screenshot, but w/e.
 
Status
This thread has been locked.
Top