First plugin help

Discussion in 'Plugin Development' started by dadus33, Aug 15, 2014.

Thread Status:
Not open for further replies.
  1. Acctually, I didn't fix it. I only though I fixed it. This still occurs when you interact with chests. Do you have skype so we can talk there?
     
  2. Guys, I just started up eclipse (didn't edit anythig) and got red underlines on things like:
    Code:java
    1. public void onDisable(){
    2. getLogger().info("AwesomeDIRT has been disabled!");
    3. }

    The } at the end is underlined. Eclipse says "Syntax error on token "}", { expected after this token"

    And yes, I tried restarting eclipse. Even tried to compile the plugin the way it is, but didn't work...

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

    MasterDoctor

    Code:java
    1. if(map.get(i.getName())==true){ //the if doesn't work! Why?
    2. i.sendMessage(ChatColor.GREEN+"Seed chest selected!");
    3. getConfig().getList("players").add(i.getName());
    4. }
    5.  


    TIP: Put the IF statement in a loop, that repeats 5 times, one every second.

    Oh

    Did you move the bukkit jar file at any point?

    And does the plugin still extend JavaPlugin?

    Code:java
    1. public class Main extends JavaPlugin {
    2.  
    3. }
    4.  


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  4. MasterDoctor
    First, I resolved all my problems except the last one. Second, what do you mean "moving the bukkit jar file" ?

    Yes, it extends JavaPlugin.

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

    MasterDoctor

    Do you have Skype?

    And, Is it a Maven Java Project or a Java Project?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  6. Java Project
    Also, my skype is dadus2000. By the way, you can add me, but I will go offline. I'll be back in tomorrow.
     
  7. Offline

    MasterDoctor

    In Java Projects after you setup the Java Build Path, you have to keep the Bukkit Jar in the same place.
     
  8. It's still there.

    Oh, I solved it with the help of Datdenkikniet! I created a for outside any method.

    Also, how can I check whether my config is empty?

    Eh, I solved that too. However, I need a method to ADD to a MemorySection string.

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

    mythbusterma

    Don't ask to add people on Skype on this forum, it is counter-productive and not very much the point of a forum.
     
Thread Status:
Not open for further replies.

Share This Page