???

Discussion in 'Plugin Development' started by BearstudioMC, Jul 21, 2014.

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

    BearstudioMC

    Pastebin


    On line 41 the }







    Syntax error, insert "}" to complete ClassBody.
     
  2. Offline

    hintss

    learn java.
     
    Goblom, Zupsub, teej107 and 1 other person like this.
  3. Offline

    daavko

    BearstudioMC Umm...just insert } to the end of your class.
     
  4. Offline

    Gnat008

    BearstudioMC
    You're missing a '}' in your file. Double check to make sure all are properly closed.
     
  5. Offline

    BearstudioMC

    Gnat008 Its not coming up with unreachable code?
     
    hintss likes this.
  6. Offline

    Gnat008

    BearstudioMC
    Did you add a '}'? If so, where did you place it?
     
  7. if (!(sender instanceof Player)) { is not closed
     
  8. Offline

    BearstudioMC

  9. Offline

    stormneo7

    Read your comments.
     
  10. Offline

    61352151511

    Tabbing really comes in handy to know if you're missing }'s or not. You've got sender.sendMessage tabbed and then below that everything is missing a tab, you are still missing a } at the end of your file. If using eclipse CTRL + A then CTRL + SHIFT + F will format it and you will see where you're missing it. I don't know the keybinds for any other IDE
     
    hintss likes this.
  11. Offline

    AngryCupcake274

    I would suggest learning Java and looking around before asking about something as simple as that. Based on what error you're getting, you're using Eclipse, and Eclipse tells you what to do. :p
     
  12. Okey, look at my 3th line! Maby that will help.
    1. if (!(sender instanceof Player)) {
    2. sender.sendMessage(ChatColor.RED + "The console can not use Chatzy");
    3. This thing >>>>> } <<<<<
    Okey?
     
  13. Offline

    Gnat008

    BearstudioMC
    You are still missing multiple '}'s. At least two. Take a close look, and find out where. In most IDE's (even Notepad ++), if you put the cursor next to a '{', it will highlight both it, and its matching closing bracket.
     
Thread Status:
Not open for further replies.

Share This Page