Command Preprocces

Discussion in 'Plugin Development' started by Ridan, May 20, 2014.

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

    Ridan

    Dear, Ive been looking around on the internet to find how commandpreprocces works
    but i cant find anything.
    I found this:
    @EventHandler
    public void PlayerCommand((PlayerCommandPreprocessEvent event) {
    - Do someting
    }
    Only, this just returns:
    void is an invalid type for the variable PlayerCommand
    in eclipse
     
  2. Offline

    L33m4n123

    "void is an invalid type for the variable PlayerCommand"

    PlayerCommand should not be a variable but rather a method name. So check the context of your class
     
  3. Offline

    DxDy

    "PlayerCommand((" that's one ( too much ;)
     
  4. Offline

    Ridan

    There arent any variables called PlayerCommand in my class, But even if i change it to "rvbdfbvdfjb" it just stays saying the same thing

    OH! Seems i just put the event in my onCommand method, Thats why it didnt let me do it.
    Anyways, Thanks to the people that tried to help me :)

    Just a little question - How do i mark the thread as solved?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
Thread Status:
Not open for further replies.

Share This Page