Tab completion and arguments seem easier than I thought, thanks for showing how they work
@MikeyAL-rd4gp Жыл бұрын
That's cool, I'm getting more and more fond of your tutorial!
@RubenMeowАй бұрын
Great video, how is this not more popular???
@name_choose Жыл бұрын
thank you!!!! I love this video!
@Adam-ny5gp Жыл бұрын
Something I noticed is that when clicking out the cow to make it explode, you can get two or three clicks in before the cow despawns which retriggers the explosions. Would would be a good way to stop this? I can see giving the cow metadata after it has been first clicked might work. Is there a more elogant way?
@kangarko Жыл бұрын
Make sure not to fire the event for secondary hand by checking "event.getHand()" that it's not OFF_HAND. If that still is a problem, metadata should fix it. They are removed from the memory after cow dies so it's pretty clean.
@StyxwastakenАй бұрын
Hey idk if youll see this but i keep having this error java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "org.Styx.randomPlugin.RandomPlugin.getCommand(String)" is null
@Adam-ny5gp Жыл бұрын
Slight bug I spotted here for the cow command... There's a condition to check if the args.length > 1 then return false. Then it continues on to check if args[0] = "baby", but if the player enters just "/cow" it will throw and error trying to check the first argument.
@kangarko Жыл бұрын
Good catch! Feel free to submit a pull request at github.com/kangarko/cowcannon. It's an easy "if" condition fix and I believe most people can just do it on their own.
@tiri2. Жыл бұрын
Cool video. I would probably make the ide dark instead of white :D
@kangarko Жыл бұрын
Will think about it!
@LeJun-rj9yf10 ай бұрын
Thanks!!!❤
@YTMaloeax7 ай бұрын
this can also be a commandBlock (the command sender)
@Wxjtxqk Жыл бұрын
thanks you so much
@kangarko Жыл бұрын
You are most welcome
@Random_MCrafter6 ай бұрын
Everything worked up until episode 4(this one), it compiles with no errors but the command doesn't show up and the plugin is coloured red when running /plugins Edit: I fixed it by replacing the deprecated methods with new ones but next to the plugin name when running /plugins it says legacy plugin, why is that and how to fix it? Edit 2: I also fixed that
@kangarko6 ай бұрын
Mind sharing how you fixed that? For others who might be running into the same issue.
@Random_MCrafter6 ай бұрын
@@kangarko For some reason, it didn't specify the api version, so I had to do that manually. It's probably a bug in the Minecraft development plugin Edit: But if that's the case, I don't know why it worked until episode 4
@agwoo-music Жыл бұрын
i am so confused on how the plugin.yml file knows that we are talking about CowCommand file please explain this to meeee
@kangarko Жыл бұрын
Bukkit scans all jars in plugins/ folder then opens each and locates the plugin.yml file that contains information about the jar plugin itself
@agwoo-music Жыл бұрын
@@kangarko I also need a bit more help with custom crafting were I want it so there has to be 8 logs in one slot is that possible?
@kangarko Жыл бұрын
@@agwoo-music Yes, I made a video about crafting recipes, it's on the playlist :)
@agwoo-music Жыл бұрын
that works for any amount of items not a sertan amount@@kangarko
@detonario8 ай бұрын
the command "cow" is not showing up in-game. It's missing. Why?
@kangarko7 ай бұрын
Check that you registered in in onEnable and plugin.yml properly and that your plugin shows up green in /plugins
@detonario6 ай бұрын
@@kangarko i'm back from 12 hour Java video 😅 now i'll start with plugins
@rottingfoddergames2629 Жыл бұрын
I am using minecraft 1.20.4 and the plugin don't it did on previous videos
@kangarko11 ай бұрын
It works on 1.20.4, you must have done something wrong in your code, post it.
@rottingfoddergames262911 ай бұрын
@@kangarko I dont know exactly what i missed but i watched the video again and it worked thank you "i think it was a bad return statment"
@detonario6 ай бұрын
the whole thing with "return true", "return false", "return" is a little confusing honestly... can you make a short video about it, or maybe include it in the next video? would be cool
@kangarko5 ай бұрын
Honestly bukkit is really bad at this so don't worry about it. Just return true all the time and if you need to send an error message to the player, just send it manually in the code. Afaik if you return false it should send the usage message from your plugin.yml