Hi @ Djohar1313! You can use listeners for that, and attach the listener to the global listener list.
You don't need to extend from playerListener on your main class, it's not neccesary.
This is an example:
Code:
@Override
public void onLoad () {
PlayerListenerList.addGlobal (new OnPlayerEnterListener () {
@Override
public void onPlayerEnter (Player player) {
}
});
} [/ CODE] [/ CODE]