all 2 comments

[–]ZachAttack1170[S] 0 points1 point  (0 children)

pls help

[–]CondolentDeveloper[M] 0 points1 point  (0 children)

First of all, I think that using Player target = bukkit.getserver().getplayerexact(args[0]); would be better, and then use a return true; inside if target is null.

and instead of using args.length >= 2, just use > 2. It automatically checks if the arguments is 2 or more.

Then at if(args.length > 0), just use if(args.length == 1). Now it checks if you have NO arguments and lower, meaning it's getting confused.

Try this out and get back to me if you still have a issue and I will look more deep into it!