Can u help me guys?

Discussion in 'Plugin Development' started by Gonmarte, Aug 30, 2015.

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

    Gonmarte

    It is possible to get the player sender of the onCommand method in another class?
    Thank you!
     
  2. Offline

    Zombie_Striker

    @Gonmarte
    You seem to be asking a basic Java Question. Please look at my signature.
     
  3. Offline

    Kyorax

    Do you want the onCommand method in a different class than your main class or do you need the player who sent a command?
    Also, please use more descriptive thread titles.
    "Can u help me guys?" is exactly the type of title that should NOT be used.
     
  4. Offline

    Zombie_Striker

    @Kyorax @Gonmarte
    If it's the first one, you just need to set the CommandExecutor to the new class. If it's the second one, you forgot how to use constructors.
     
    Kyorax likes this.
  5. Offline

    Gonmarte

    @Zombie_Striker Its the second one and i tried to make a constructor and i couldnt get the player sender. Second thing i have no teacher to teach me java, so i learn in youtube how to code in bukkit in eclipse.

    @Kyorax

    @Zombie_Striker I just learn how to use the bukkit API and i didnt learn java. If u could tell me where did u learn java it could be very helpful!

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

    Kyorax

    @Gonmarte Check his signature. You don't need a teacher.
     
  7. Offline

    Gonmarte

    @Kyorax Did u learn in that website?
     
  8. Offline

    Kyorax

    @Gonmarte No, but that is irrelevant to whether or not you should learn there.
     
  9. Offline

    Gonmarte

Thread Status:
Not open for further replies.

Share This Page