Redline in registerEvents

Discussion in 'Plugin Development' started by Kolia1_1, May 17, 2018.

  1. Offline

    Kolia1_1

  2. Online

    timtower Ninja on the waves Moderator

    @Kolia1_1 It needs the IntManager variable to be constructed, it can't pull that out of thin air.
     
  3. Offline

    Kolia1_1

    send code
     
  4. Online

    timtower Ninja on the waves Moderator

    I don't know what that IntManager is. It is a constructor.
     
  5. Offline

    Kolia1_1

    Screenshot_88.png
     
  6. Online

    timtower Ninja on the waves Moderator

    @Kolia1_1 You can't have multiple classes that extend JavaPlugin.
    And a normal constructor as IntManager() will do.
    You might want to follow some tutorials though.
    Your Java is lacking the basics of object oriented programming.
    Your Bukkit is lacking in command handling.
     
  7. Offline

    Kolia1_1

    help =( I adk how fix redline =)
     
  8. Online

    timtower Ninja on the waves Moderator

    Won't help with this. This is basic Java, you should know that in my opinion when working with Bukkit.
    Certainly when you want to make a minigame like you are doing now.
     
    MightyOne likes this.
  9. Offline

    RcExtract

    You need to pass an IntManager through the PlayerManager constructor. Also, the command string does not come with "/" from PlayerCommandPreproccessEvent. Also, you should use a CommandExecutor instead.
    We don't spoonfeed developers.

    You should explain how ur library works so we can give an advice. No one knows it.
     

Share This Page