Plugin Help

Status
This thread has been locked.
ReliableSite: Dedicated Servers

Lethal

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

Blowns

Premium
Reputation
1
Posts
1,146
Reactions
517
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

Member
Reputation
0
Posts
24
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
Reputation
0
Posts
256
Reactions
139
Resources
5
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

Member
Reputation
0
Posts
24
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
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.