Need help with Title's

Discussion in 'Spigot Plugin Development' started by Hibba, May 28, 2017.

  1. First: This is not a resource
    Second: Remove the '//' in line 21 of your PlayerJoinListener class and you should be good to go
     
  2. Well first of all this is not a resource, so remove the tag.

    2nd, you need to learn to read stacktraces, it directly points you to the line which is returning null. When you create a variable and set it's string to whatever you are getting from the config on line 28, it's null and does not exist or is nothing. You may need to fix your config methods.

    3rd, learn to read stacktraces before asking here please.
     
  3. Oke thank you but now it says another error
    Error Message: https://pastebin.com/zs4PzrQc
     
  4. The JSON starts with a comma (,) which is something a JSON object simply doesn't.
     
  5. I'm still pretty new at coding but what i get from this is that i need to delete the comma's in the start of the line
     
  6. The JSON should simply start with a '{' and end with '}', without any commas outside of them, though inside you can keep it the same way it is.
     
  7. thank you so much i appreciate the help