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
"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
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.