My playerjoinevent does not start:
@EventHandler
public void PlayerJoin (PlayerLoginEvent event) {
Player e = event.getPlayer ();
[…]
No error message, nothing
I'm currently programming for version 1.10
Event registered?
And is not it "PlayerJoinEvent"? Do not program with Java / MC for a long time
How do I register the event? ^^
There's missing on the one hand an "on".
Has the event been registered?
How do I register the event? ^^
In onEnable:
getServer (). GetPluginManager (). RegisterEvents (new classname (), this);
And in class name then "PlayerJoin"?
No. The name of the class the event is in.
I have it all in the same class: main.java ^^
Where is an "on" missing?
Did that change from: PlayerJoin (PlayerLoginEvent event) {
on PlayerJoin (PlayerJoinEvent event)
Then it would be this / new main class instead of the class
I can write too
@EventHandler
public void I PurchaseBook (PlayerJoinEvent e) {}
That's a basic element.