1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[TUTORIAL] Bukkit/Spigot tutorial series

Discussion in 'Plugins/Codes' started by A Christmas Hangar, Jul 16, 2016.

  1. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Hello people interesed in code:

    What is needed:
    • Eclipse
    • BuildTools decompiled (when you click the link, it's recommended to read everything)
    • Spigot/Bukkit jar imported into Eclipse(See below how)
    Not needed but helpful (you can learn a bit of Java using my tutorial series of bukkit/spigot)
    • Basic Java knowledge
    This is a simple tutorial on how to create a plugin: yup that's my voice. my microphone isn't actually the best, sorry for those weird things








    How to import spigot/bukkit .jar into eclipse
    1) Start Eclipse; you may change the workspace location if desired.
    2) Create a new Project

    • Set the project name to whatever you wish. Here, we chose SpigotBlankPlugin. Click next.
    • Select Add External JARs under the Libraries tab. In the JAR Selection dialogue box, select the spigot-api-shaded jar file. Select Finish
    3) Add a new package
    Right click on src and click on New > Package. You may use any namespace convention you wish, just be consistent. Here, I use reverse domain name notation





    I'm not a 10/10 coder or something like that, I'll "tryhard" to teach you everything I know along I'm learning.




    PS: @Minikloon add this to your post of ways to learn coding ;)
    jk this is crap



     
    Last edited: Jul 19, 2016
  2. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    You can now see the video and hear my sexy voice


    Also, sorry for Action watermark. Shadowplay didn't capture my voice + OBS eated my ram (still eating my ram, I can see a worm eating it, now it's eating the graphics card. HE'S HUNGRY!)


    @Minikloon ask @HackersDontWin why im using your skin
     
  3. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Video is fully rendirezed. Enjoy 1080P :p
     
  4. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    This is my plan-list for some people might be interesed:
    1. Sending messages to the player on command
    2. Sending mesages with colors on commands
    3. Simple kits
    4. Locations
    5. Teleports between player
    6. Warps
    7. Simple configs
    8. Broadcasting messages
    9. World protection
    10. Editing servers MOTD
    11. Advanced configs
    12. Chat Filter
    13. ---------------------
    14. Spanish version/Serie en español
    15. ---------------------
    16. Plugin simple
    17. Mandar mensajes al jugador
    18. Mandar mensajes al jugador con colores
    19. Kits simples
    20. Teleportaciones entre jugadores
    21. Localizaciones
    22. Config.YML basicos
    23. Mandar mensaje global
    24. Proteccion de mundo
    25. Cambiando MOTD del servidor
    26. CONFIG.YML avanzados
    27. Filtro del chat
     
    Last edited: Jul 19, 2016
  5. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Publicado el capitulo en español - Published the Spanish chapter:



    Wait a bit :p
     
  6. Dkamps18

    Dkamps18 Member

    Joined:
    Jul 3, 2015
    Messages:
    155
    Likes Received:
    37
    Trophy Points:
    28
    Gender:
    Male
    Location:
    The Netherlands
    Your tutorial fail
     
  7. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    ?? What do you mean?
     
  8. Dkamps18

    Dkamps18 Member

    Joined:
    Jul 3, 2015
    Messages:
    155
    Likes Received:
    37
    Trophy Points:
    28
    Gender:
    Male
    Location:
    The Netherlands
    If you wan't to learn java to people that didn't know java or what java means you go to fast
     
  9. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Oh, well this was my first tutorial. I'll change that ;)


    thanks
     
  10. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Second chapter will be published soon

    I will not be too fast @DkampsYT ;)
     
  11. Buuuddy

    Buuuddy Member

    Joined:
    Mar 31, 2016
    Messages:
    1,126
    Likes Received:
    1,456
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Belgium
    How good this tutorial may be, I will never understand how codes work... :(
     
  12. LowFat

    LowFat Member

    Joined:
    Dec 23, 2015
    Messages:
    387
    Likes Received:
    228
    Trophy Points:
    43
    Gender:
    Male
    Location:
    The Chunk Network
    Way too fast of a tutorial for people who don't understand java itself, and way too slow of a tutorial for people who do.
    I suggest you just assume the viewer already understands java and teach them Bukkit as if it were its own language.
     
  13. Armandy

    Armandy Member

    Joined:
    Jul 12, 2016
    Messages:
    285
    Likes Received:
    132
    Trophy Points:
    43
    Gender:
    Male
    Occupation:
    Student
    Location:
    Spain
    Spanish:
    Gracias, cuando tenga que crear un plugin en Bukit/Spigot ya sé a donde acudir :D (Creo que haré un server con mis amigos)
    English:
    Thank you, when I create one plugin in Bukit/Spigot I know where go :D (I think I will do a server with my friends)
     
  14. Dkamps18

    Dkamps18 Member

    Joined:
    Jul 3, 2015
    Messages:
    155
    Likes Received:
    37
    Trophy Points:
    28
    Gender:
    Male
    Location:
    The Netherlands
    Told you @Hangar555

     
  15. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Okay, I'll do that one the next chapters, thanks!
    Like English, but in weird formatting + impossible to pronunce a class + more weird things.
    thanks :D
     
    Buuuddy likes this.
  16. SantaClawz416

    SantaClawz416 Member

    Joined:
    Jul 21, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Gender:
    Male
    The tutorial is good for those who already know the basic functions and mentality of Java, but not so good for people that are just starting. You didn't explain what any of your methods do. onEnable() or onDisable() method. You simply just typed in the code and plugin.yml and hoped for people to know. If you're going to do that I suggest leaving a link of where people can learn the basics of Java.
     
    DanOF likes this.
  17. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    I said that? Anyways, next chapter will be verter
     
  18. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    *better

    Edit doesn't work
     
  19. Dkamps18

    Dkamps18 Member

    Joined:
    Jul 3, 2015
    Messages:
    155
    Likes Received:
    37
    Trophy Points:
    28
    Gender:
    Male
    Location:
    The Netherlands
    PS maybe can you make a tutorial how to install eclipse and don't forget the required java development kit
     
  20. A Christmas Hangar

    A Christmas Hangar Member

    Joined:
    Sep 15, 2015
    Messages:
    2,544
    Likes Received:
    1,491
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Kepler452B
    Home Page:
    Okay, thanks!