Solved Um help!

Discussion in 'Plugin Development' started by quack123456, Feb 9, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    quack123456

  2. Offline

    Skionz

  3. Offline

    SuperOriginal

    • Casting CommandSender to Player before checking = bad
    • Unless you didn't paste the entire class, you're missing a closing bracket at the end.
    • Don't use Minecraft's logger, use your own.
    • Make sure your command is registered in plugin.yml
     
  4. Offline

    quack123456

  5. Offline

    SuperOriginal

    @quack123456 Are you getting an exception in your console on startup?
     
  6. Offline

    Skionz

  7. Offline

    quack123456

  8. Offline

    Gater12

  9. Offline

    Skionz

  10. Offline

    quack123456

    @Skionz it still doesnt work?
    Name: BukkitPlugin
    Description: First Project!
    main: me.kyle.BukkitPlugin
    Version: 1.0
    author: Kyle
    commands:
    hi:
    description: Type hi for a hello!
     
  11. Offline

    Irantwomiles

    @quack123456 I would go on youtube and look up bukkit plugin tutorials. Almost all of them have a plugin YML file in the description, or download a simple plugin and take its plugin YML and rename it to match your plugin.
     
  12. Offline

    Konato_K

  13. Offline

    quack123456

    well thats how i made this plugin from a youtube tutorial so probaly why im doing so bad
     
  14. Offline

    Aephout14

    I dunno why that isn't working for oyu, Wish you luck.
     
  15. Offline

    quack123456

    @Konato_K this isnt working still i got an error message when i was exporting it. it said the yml file was out of sync or something

    Name: bukkitplugin
    Version: 1.0
    main: me.kyle.bukkitplugin
     
  16. Offline

    Konato_K

  17. Offline

    mythbusterma

    @quack123456

    If your plugin is indeed not loading, there should be a stack trace ("error message") in your server's console, that should point to the error you're having.
     
  18. Offline

    quack123456

  19. Offline

    Ambamore2000

    @quack123456 name, main, and version (The word "main", "name", and "version")
     
  20. Offline

    quack123456

  21. Offline

    Gater12

    @quack123456
    What is your current problem? Is it not loading up and throws an error in the console when trying to run plugin on the server, or you cannot export it (as mentioned by you above)?
     
  22. Offline

    quack123456

    um once i do my command /hi it just says unknown command
    @Gater12
     
  23. Offline

    Gater12

    @quack123456
    Have you included declared hi as a command in your current plugin.yml?
     
  24. Offline

    quack123456

    name: bukkitplugin
    version: 1.0
    main: me.kyle.bukkitplugin


    @Gater12 thats my yaml but once i put a command in an online Yaml Parser it says null

    @Gater12 okay i figured out what i did wrong with commands but it still doesnt work
    here is it

    name: bukkitplugin
    version: 1.0
    main: me.kyle.bukkitplugin
    commands:
    hi

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  25. Offline

    Ambamore2000

    commands:
    hi:
    description: Blah
    otherstuff
     
  26. Offline

    quack123456

    @Ambamore2000 so I only need description? Like this?

    name: bukkitplugin
    version: 1.0
    main: me.kyle.bukkitplugin
    commands:
    hi:
    description: Blah

    Do i need at stuff under the description?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  27. Offline

    mythbusterma

    @quack123456

    It's not required, however I believe if you have one it cannot be empty. Make sure to indent properly with SPACES.
     
  28. Offline

    quack123456

    @mythbusterma i did 2 spaces for the command and 4 spaces for the description and what do i need to put under description
     
  29. Offline

    mythbusterma

    @quack123456

    It's quite irrelevant what you put there, although it should ideally describe what the command does.
     
  30. Offline

    quack123456

    @mythbusterma I really dont care what i write i just and to see if this works since this is my first plugin. Im not actually going to use this.
     
Thread Status:
Not open for further replies.

Share This Page