Ep4. Commands & Tab Complete - Minecraft Plugin Development

  Рет қаралды 12,819

Matej (kangarko)

Matej (kangarko)

Күн бұрын

Пікірлер: 34
@coucoul38
@coucoul38 7 ай бұрын
Tab completion and arguments seem easier than I thought, thanks for showing how they work
@MikeyAL-rd4gp
@MikeyAL-rd4gp Жыл бұрын
That's cool, I'm getting more and more fond of your tutorial!
@RubenMeow
@RubenMeow Ай бұрын
Great video, how is this not more popular???
@name_choose
@name_choose Жыл бұрын
thank you!!!! I love this video!
@Adam-ny5gp
@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
@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
@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
@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
@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.
@tiri2. Жыл бұрын
Cool video. I would probably make the ide dark instead of white :D
@kangarko
@kangarko Жыл бұрын
Will think about it!
@LeJun-rj9yf
@LeJun-rj9yf 10 ай бұрын
Thanks!!!❤
@YTMaloeax
@YTMaloeax 7 ай бұрын
this can also be a commandBlock (the command sender)
@Wxjtxqk
@Wxjtxqk Жыл бұрын
thanks you so much
@kangarko
@kangarko Жыл бұрын
You are most welcome
@Random_MCrafter
@Random_MCrafter 6 ай бұрын
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
@kangarko
@kangarko 6 ай бұрын
Mind sharing how you fixed that? For others who might be running into the same issue.
@Random_MCrafter
@Random_MCrafter 6 ай бұрын
@@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
@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
@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
@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
@kangarko Жыл бұрын
@@agwoo-music Yes, I made a video about crafting recipes, it's on the playlist :)
@agwoo-music
@agwoo-music Жыл бұрын
that works for any amount of items not a sertan amount@@kangarko
@detonario
@detonario 8 ай бұрын
the command "cow" is not showing up in-game. It's missing. Why?
@kangarko
@kangarko 7 ай бұрын
Check that you registered in in onEnable and plugin.yml properly and that your plugin shows up green in /plugins
@detonario
@detonario 6 ай бұрын
@@kangarko i'm back from 12 hour Java video 😅 now i'll start with plugins
@rottingfoddergames2629
@rottingfoddergames2629 Жыл бұрын
I am using minecraft 1.20.4 and the plugin don't it did on previous videos
@kangarko
@kangarko 11 ай бұрын
It works on 1.20.4, you must have done something wrong in your code, post it.
@rottingfoddergames2629
@rottingfoddergames2629 11 ай бұрын
@@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"
@detonario
@detonario 6 ай бұрын
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
@kangarko
@kangarko 5 ай бұрын
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
@detonario
@detonario 5 ай бұрын
@@kangarko 👍
@ShadowKivi
@ShadowKivi Жыл бұрын
Jesus is Amazing And He Loves You
@kangarko
@kangarko Жыл бұрын
Of course
Ep5. Permissions - Minecraft Plugin Development
17:58
Matej (kangarko)
Рет қаралды 5 М.
Commands - Minecraft Plugin Development Ep. 4 (2022)
6:02
Worn Off Keys
Рет қаралды 15 М.
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
Create Custom Minecraft Commands Using MyCommand (Tutorial)
11:45
Create Interactive Events in Minecraft with Typewriter
19:01
KasaiSora
Рет қаралды 8 М.
Minecraft Clone in C++ // Code Review
40:29
The Cherno
Рет қаралды 356 М.
I Made a Working Computer with just Redstone!
15:37
mattbatwings
Рет қаралды 896 М.
How To Make a Minecraft Plugin - Ep. 2 Custom Commands
18:44
Ominous Dev
Рет қаралды 10 М.
Why I Made My OWN Minecraft Server Fork
13:24
Legitimoose
Рет қаралды 47 М.
Spigot Plugin Development - 5 - Commands Part 1
14:39
Kody Simpson
Рет қаралды 46 М.
Ep23. Understanding NMS (Full Guide) - Minecraft Plugin Development
27:53
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН