Make it multi-instance - add constructor and in it pass player. (and remove static from functions)
Yes, I think so it's it. Thanks again! :)
@Lolmewn I know, it's a fast writed exmaple :p @WinX64 Thanks, didn't know about it. :) @Edit Can I call event only in my plugin? Ex....
@Lolmewn yea, I know, in my actual class I have done it already. Thanks! :)
For example package ....; import ....; public final class MyCustomEvent extends Event implements Cancellable { private boolean cancelled;...
Where is that error? (class, line, and stacktrace up to 5 lines would be good)
timtower Thanks!
hjquarter Can you reupload it ? It says that follwing file isnt existing or was moved
getConfig().getString("muteall.off") == null
Add private variable private <Your main class name goes here> plugin; and in your constructor add somewhere this.plugin = p; and change in your...
Where and what error ?
Don't know why it doesn't work
secs is null
You are trying to make a chicken be a player (final Player p = (Player) event.getEntity())
Try removing registerEvents method in class Menu and add it to MenuInv: public void onEnable() { menu = new Menu(this);...
Is your package names com.sniperzciineamMain ? I actually don't see the Main ending
I'm not sure, does registering events not in onEnable method (in main class) works BTW. add some debug messages for example after if statement...
if (commandLabel.equalsIgnoreCase(command 1 name) { //CODE } else if (commandLabel.equalsIgnoreCase(command 2 name) { //CODE } else if...
(From bukkit wiki) Asynchronous tasks should never access any API in Bukkit
1. Do you have any errors ? 2. Does registering events in not onEnable method actually works ?
Separate names with a comma.