Advanced Spigot Coding | MySQL Part 1 | (Ep. 3) Spigot 1.15

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

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

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

    You are the only one who managed to do everything perfectly.
    Beginners should start with your videos. It sucks how in other videos, people manage to make worst of mistakes which gives wrong information to the beginner.
    Anyways, wonderful video

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

    i love these videos so much, i'm extremely pleased to see that your channel has grown exponentially! thanks for everything man.

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

    Keep up please! Dont stop uploading like everyone else. I really enjoi watching these tutorials

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

    Hey codedred! Love ur vids they have helped me a lot with my coding. thanks heaps

  • @jeyzer5126
    @jeyzer5126 4 года назад +18

    Just saying, at 9:53, you could've just used "return connection != null;" for the return instead of using a conditional operator.

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

    I have to use db for school but didn't know how to do it in mc. But now I do can't wait on the next video

  • @FilipeeX
    @FilipeeX 2 года назад +2

    Thanks, really helped me to figure out what's wrong with my code.

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

    After many hours of searching this was the one thanks

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

    What a coincidence! I'm building a plugin for a client that requires MYSQL data storage. Thank you!

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

    I got kinda confused at some parts but it was mostly my fault, the tutorial was top tier though and really was easy for me to follow.

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

    Thank you so much for making these videos!

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

    I love your videos, keep up the great work! Any chance you could do a video that goes more in depth to path finding and possibly even custom path finder goals? Stay safe man

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

    Also you can use return (connection != null); on isOnline method

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

    Thank you so much, this really helped me :)

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

    If anyone is interested, instead of a ternary expression (connection == null ? false : true) you can alternatively just do "return connection != null". These are logically equivalent.

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

    could u make tutorial on custom items? or toggle commands? say when i type /jump i get big jump effect and i can disable it with same command. love ur vids keep it up

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

      We already have all instruments for that. Just use vectors when you jump. Jumping is a player movement event btw.

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

      As for custom items, you can't make a completely custom item with a custom ID because the client will not be able to see it. Custom items based on other items are in episodes 5 and 6 of CodedRed's spigot beginner series.

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

    9:30 you could just have "return connection == null;" instead of the ternary thingy right?

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

    Here before insprill

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

    help me, what data did you use to create the playerdata table? if I don't understand that I won't understand anything about the video anymore

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

    Why is your game looking so nicer than mine?? Is it caused that I am still stuck on 1.8 or is it all improvements by tools like shaders and resource packs? If yes, could you tell me your secrets, what you are actually using? :) btw that was already in mind since I watched your videos for first time. And I really enjoy the style of your videos and I think they could be very informative and useful for the people who are not that experienced yet. I think the key is, that you talk/explain about what you are coding and not doing boring copy&paste stuff. If I would imagine that I am new in that programming world, you would be a big help to understand. Soo keep going on!
    oups... just went a bit offtopic from my origin question :d

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

      he's using shaders. Also, what do you mean "stuck on 1.8"? Just change versions in the Minecraft launcher

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

      He is using shaders, as well as a Minecraft version greater than 1.14, where Mojang basically changed all the textures.

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

    hey little General Java Question, at 11:02 couldn’t we just do return connection != null Wouldn’t that method return true if it was connected and return false if it wasn’t ? Thanks 😊

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

      Time stamp is a lil bit of oops but I’m talking about the Boolean method

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

      RaworaDesign Yes, we could of wrote that return statement in many ways :)

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

      @@CodedRed It's probably a good idea too also check if the connection is still open as the database may have closed it. In conclusion, the current implementation of isConnected may return a false positive.

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

    I'm curious how you know so much about Java and plugin development, besides the plugins on your spigot page, what do you do? Have you worked with servers?

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

      I have had servers in the past as well as been a developer for a few. My plugins on SpigotMC don’t reflect all that I’ve done before :) I have 100s of plugins that I’ve coded just for fun lol

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

    why not just make the methods in the sql class static?

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

    Awesome Tutorial! Do you mind sharing what shader you use?

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

    Hi I'm probably a bit late but is it possible to change this to SQLite and what should be changed? I know that this may seem complicated to explain in a comment but if you have any documentation it would be a great help.

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

    When does part 2 come out cuz I can’t wait.

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

    You forgot to disconnect on the onDisable (reload) now you have 3 separate connections open

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

    9:01 I don't have a java.sql.connection import. It shows me sun.rmi.transport.Connection as an option.
    I posted more details here:
    www.spigotmc.org/threads/setting-up-sql-no-java-sql-connection-with-intellij.476183/
    No solution yet.

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

    you should make a series on making a minigame plugin.

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

    I also see that you have the bot marina. I have it too :/

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

    Nice video! But at 9:24 you could have just used return connection != null;

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

    it says "No suitable driver found for jdbc:mysql://localhost:3306/discordbotdata?useSSL=false
    " for the data base i plan to use for my economy discord bot. Can someone help?

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

    How to fix the ClassNotFound error?

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

    You should set "useSSL" to true by default, (if not specified it assumes true) and make it a config option. Most server hosts have SSL certificates on their databases, but not all do. And establishing an SSL connection to a database without a certificate will spam the shit of out console. And establishing a non-SSL connection to a database that has a certificate, just defeats the purpose of it.

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

      Definitely should make it a config option like i said :) when set to true it breaks my database.

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

    Can you make tutorial how to make custom potion effect?

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

      You can't make a completely custom potion effect. You can only give another name and functionality to an existing effect.

  • @0x31r
    @0x31r 4 года назад

    this very nice video

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

    Helpful

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

    You could also just say: return (connection != null);

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

    It doesn't work for me :(

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

    Not working to me F

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

    this does not work

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

    Not that it really matters but SQL is said "sequel" out loud, not "ess queue ell"

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

      The pronounciation discussion is still going... It’s just like the tab vs space discussion: you just have to choose for yourself