Spigot: Custom Plugin Tutorial - Commands (#4)

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 82

  • @MancoBlanco
    @MancoBlanco 4 года назад +17

    Thanks so much for giving me something to do in quarantine, your channel deserves credit for how much detail you add to help people that have no idea what they are doing, like me

  • @calebrosenquist
    @calebrosenquist 4 года назад +9

    Just want to say that I love your work and don't give up on making your tutorial videos. I personally see an awesome youtube future for you and look forward to all your videos!

    • @TechnoVisionTV
      @TechnoVisionTV  4 года назад +4

      Thank you, that means so much to me. I really appreciate you watching : )

  • @mr_black_hat999
    @mr_black_hat999 4 года назад +15

    When you are expecting 1.15 modding tutorial part 7?
    P.S those plugin tutorials helped me A LOT. THX

  • @Hexanilix
    @Hexanilix 2 года назад

    Bro I'm watching this waaaaaay later in the end of 2022 but you saved my ass from googling for 4 hours to understand how this works. Bless you sould 🙏

  • @jacksonjones6281
    @jacksonjones6281 3 года назад

    Even after all this time, your tutorials are still helpful and appreciated by many people. One of which is myself. Thanks for a simple tutorial to do some cool things.

  • @Us3rn4mee
    @Us3rn4mee 4 года назад

    I've been looking for tutorials because I wanted to get into coding plugins, and yours is by far the most helpful! Keep it up!

  • @peegion4742
    @peegion4742 2 года назад

    Wow! This quality is amazing! Thanks so much!

  • @ptux_
    @ptux_ 4 года назад +9

    11:05 The character is called a “section”

    • @shateq
      @shateq 4 года назад

      It is called more like Paragraph

  • @jacobmobin978
    @jacobmobin978 4 года назад

    these tutorials help so much, i got bored cuz i was off school (credit recovery that i didnt have to take) so i learnt how to do this! thank you so so much!!!

  • @Zaary
    @Zaary 4 года назад

    bro your tutorials are best of youtube.. ive tried every tutorial but it was giving me errors and you showed everything to prevent them thx so much :)

  • @binreaper54
    @binreaper54 4 года назад +6

    Techno you are appreciated ❤️

  • @quickscopesheep5994
    @quickscopesheep5994 4 года назад

    i literally was making a plugin and had to look up how to do commands.i wnet to youtube and found this on my homepage thank you kind stranger

  • @longlostbrah
    @longlostbrah 3 года назад +1

    For people coding on earlier versions before heath was changed to attribute you'll need to do something like this:
    // This is the /heal command
    if (cmd.getName().equalsIgnoreCase("heal")) {
    double maxHealth = player.getMaxHealth();
    double currentHealth = player.getHealth();
    double healAmount = maxHealth - currentHealth;
    player.setHealth(player.getHealth() + healAmount);
    }

  • @hridaymeka5838
    @hridaymeka5838 4 года назад +4

    How many parts will there be to this series? I would love some more touch up on changing things like how much damage zombies do, their reach, the armor they start with, the radius they can track you in, etc... Or for things like ghasts/blazes, an increased fire rate. Thanks for all you do!

    • @TechnoVisionTV
      @TechnoVisionTV  4 года назад +1

      Thankfully the Spigot API stays relatively the same through Minecraft versions, so this will be a permanent series for hopefully years to come. I can't say for certain if I will get into all of those specifics, but I will most definitely try to cover more advanced events and custom entities which should more/or/less cover what you're looking for :D

    • @hridaymeka5838
      @hridaymeka5838 4 года назад

      @@TechnoVisionTV hey thanks!

  • @livelyeko
    @livelyeko 2 года назад

    For anyone using Windows and is wondering about the § symbol for chat colors, you can search Character Map on the windows search bar. There you will be able to select the character and copy and paste it. Hope it helps.

  • @AndroAnimates
    @AndroAnimates 2 года назад

    Thank you so much for these videos Im learning a lot. Greetings from méxico dude

  • @sixshooter0074
    @sixshooter0074 4 года назад +1

    Dude yes i love you vids your so helpful cant wait for the next 1.15.2 modding!

  • @dapl3b
    @dapl3b 3 года назад

    thanks techno, i dont have too much coding experience, and all of it is in c#, but its rly easy to follow ur vids :D

  • @longy5080
    @longy5080 2 года назад

    how do i teleport a player, i cannot specify to teleport the player so it runs the command (teleport) without teleporting anything

  • @SoupDealer
    @SoupDealer 2 года назад

    Hey, amazing tutorial but, i do got a question, the "setExecutor" function is causing me an error nullPointerException

  • @TheFinalformsora
    @TheFinalformsora 4 года назад

    how would i check if im above a block ignoring the height? i just want to know if theres a block anywhere below me

  • @ocnarf6997
    @ocnarf6997 3 года назад

    What if I wanna start a plugin using a custom command? How will I do that?

  • @tijnvanbekhoven1736
    @tijnvanbekhoven1736 4 года назад +1

    What do I need to do when I wan't to add arguments behind the base command? Does someone have a clue?

  • @jonathankiener1493
    @jonathankiener1493 4 года назад +1

    Is there a way for me to create a command like /warp that all, deop players can use?

  • @samjtdrew
    @samjtdrew 4 года назад +6

    Nooooo, i need a 1.15 mod tutorial

    • @samjtdrew
      @samjtdrew 4 года назад +3

      Please say it’s coming soon

    • @hridaymeka5838
      @hridaymeka5838 4 года назад +1

      @@samjtdrew This is good too!

    • @TechnoVisionTV
      @TechnoVisionTV  4 года назад +7

      Should be out either tonight or tomorrow

    • @samjtdrew
      @samjtdrew 4 года назад +3

      TechnoVision you have no idea how much i rely on your videos, please don’t ever stop they are soo helpful and have let me develop my own Harry Potter mod, I can’t wait to learn new skills, thankyou again so so much!!!

  • @luckmc2874
    @luckmc2874 4 года назад

    1. the /feed or /feedme command does not come up
    2. whenever I try to do /healme or /heal it says there was an international error while attempting to perform this command
    3. whenever i do it in the console it says [15:19:55 ERROR]: null
    org.bukkit.command.CommandException: Cannot execute command 'heal' in plugin Tutorial v1.0 - plugin is disabled.
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[patched_1.16.4.jar:git-Paper-407]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.4.jar:git-Paper-407]
    at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:807) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2021) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:1832) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1785) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1128) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1121) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1082) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:996) ~[patched_1.16.4.jar:git-Paper-407]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:173) ~[patched_1.16.4.jar:git-Paper-407]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_271]

    • @TechnoVisionTV
      @TechnoVisionTV  4 года назад +2

      The plug-in is clearly being disabled at startup. Do some debugging with the java debugger and print statements to figure out ur bug

    • @unusualfrog779
      @unusualfrog779 3 года назад

      @@TechnoVisionTV this is such a useless answer

    • @TechnoVisionTV
      @TechnoVisionTV  3 года назад +2

      @@unusualfrog779 how is that useless? The console is telling you that your plugin is being disabled at startup. That is why the command doesn’t work, thus you need to use the IntelliJ debugger and figure out what is causing the plugin to disable. I obviously can’t tell you what the issue is because I have no idea what ur code looks like.
      It’s not my fault if you don’t know how to code in Java or have never used the IntelliJ debugger before.

    • @luckmc2874
      @luckmc2874 3 года назад

      @Bioxle ok

    • @luckmc2874
      @luckmc2874 3 года назад

      @@TechnoVisionTV Thanks

  • @kingcodingg
    @kingcodingg 4 года назад +1

    How do I fix nullpointexeptions

  • @leepicfortnitefunniesxdfun4655
    @leepicfortnitefunniesxdfun4655 4 года назад +4

    very cool. i am obama

  • @supercheesygamerboy7035
    @supercheesygamerboy7035 4 года назад

    When I made my command, I think it autofilled aliases so I have 4 commands, How to fix it?

  • @killer_game_real6805
    @killer_game_real6805 3 года назад

    I Code It Correctly But When I Import Plugin Into Server, And Runing Server . After It In the Game I'll Type /heal Its Says Unknown Command Type /help

  • @ToSemIdeia841
    @ToSemIdeia841 4 года назад

    I tried to play a little bit with this and now I keep getting nullpointer exceptions, I think it's because the setExecutor on the onEnable method. How should I deal with it?

    • @unusualfrog779
      @unusualfrog779 3 года назад +1

      me too any ideas?

    • @ToSemIdeia841
      @ToSemIdeia841 3 года назад

      @@unusualfrog779 It's been 6 months already, I just remember that I restarted everything and it worked, maybe it was just a dumb mistake

    • @tohostudiosofficial
      @tohostudiosofficial 3 года назад

      @@unusualfrog779 in yml line up the heal: and Feed like so
      heal:
      description: Heals player to max health.
      usage: /
      aliases: [healing, healme, healmax, h]
      feed:
      description: Feeds player to max saturation.
      usage: /
      aliases: [ feedme, f]
      then save all and build artifact and restart your server et voila!

  • @gameri1380
    @gameri1380 4 года назад

    Help me please!
    I am making a plugin with your tutorial and I don't know why but after I added the commands the plugin just stopped working!
    Its not even sending the message in the command prompt!
    I deleted the plugin from the server's plugins folder and rebuilt it twice and it still didn't work!
    I don't know what I did wrong and I checked you video 3 times to see if I did something wrong but I didn't.
    Please help me out here.

    • @Issvor
      @Issvor 4 года назад

      Any luck? I'm having an issue where my plug in crashes whenever I have the feed command in. If I comment it out, it works fine. Trying to figure this out
      e: i'm a dumbass. I copied/pasted the heal attributes in the .yml file to make the feed attributes and forgot to rename the command from "heal" to "feed"

    • @xf-8347
      @xf-8347 4 года назад

      maybe u didn't import the directory from buildertools or ur other classes,
      OR u might forget to build the artifact and re-built it accidentally?

  • @prajwal4196
    @prajwal4196 4 года назад

    I learn so much thing. Thankyoy

  • @sirgor1814
    @sirgor1814 3 года назад

    Will this work for Bedrock?

  • @Siegeisok67
    @Siegeisok67 2 года назад

    @TechnoVision It still works on 1.19

  • @redcrafter18
    @redcrafter18 2 года назад

    The letter is called paragraph

  • @v.k_
    @v.k_ 4 года назад

    can you Make tutorial how make sword in mod

  • @Aeroport_
    @Aeroport_ 4 года назад +1

    how the hell do I get that weird character??

  • @illegalcoding
    @illegalcoding 3 года назад

    these vids are great!!!!

  • @Cinarbayramic
    @Cinarbayramic 2 года назад

    you are the best!

  • @Peter-wg5pm
    @Peter-wg5pm 4 года назад +1

    Nice

  • @nicholashollister1067
    @nicholashollister1067 4 года назад +1

    Curry Pie

  • @snkyplays4296
    @snkyplays4296 4 года назад

    11:05 In law I only know of that symbol being section.

  • @shateq
    @shateq 4 года назад

    Symbol copy: