Bukkit Plugin Tutorial #4 'Adding commands' - WoopaGaming

preview_player
Показать описание

WoopaExtra:

Facebook:

Twitter:

Website:

Steam Group:
Рекомендации по теме
Комментарии
Автор

Hi me again, your're probably sick to hell of me now xD
Thought I'd just keep going:
Again really nice video

1. in the onCommand the label arg is there so you don't have to do cmd.getName() you can just do if { etc... }
2. after if(target== null) you don't need an else statement as your returning in it. So if it's true it will never reach the code after.
3. Again I'm nitpicking you should probably make it List<Player> = arraylist just plainly because it detaches you from specific use of a certain interface of list. That is a tiny thing and don't worry about it just thought I'd mention it.

Very few errors and the one that I'm picking up on are not depremental and do not matter in one single bit. I guess I just have java OCD. Awesome videos!

ThecoolComputergeek
Автор

What do you do when the long line of code automatically goes into 2 short lines of code (you did it on line 30)

Unknown-vkbh
Автор

How do I remove the feature of right clicking to enable? I tried to remove the event handler and it disabled the rightclick but the command wouldn't work. What would I put if i only want players to do /superheat to toggle instead of them right clicking to toggle it?

extremegamer
visit shbcf.ru