Skip to content

Commit

Permalink
feat: PlayerInitializedEvent, PlayerLocallyInitializedEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
CodePwn2021 committed Feb 3, 2024
1 parent b5a72d4 commit 32b665c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/cn/nukkit/event/player/PlayerInitializedEvent.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package cn.nukkit.event.player;

import cn.nukkit.Player;
import cn.nukkit.event.HandlerList;

public class PlayerInitializedEvent extends PlayerEvent {

private static final HandlerList handlers = new HandlerList();

public static HandlerList getHandlers() {
return handlers;
}

public PlayerInitializedEvent(Player player) {
this.player = player;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package cn.nukkit.event.player;

import cn.nukkit.Player;
import cn.nukkit.event.HandlerList;

/**
* @author Extollite
* Nukkit Project
*/
public class PlayerLocallyInitializedEvent extends PlayerEvent {

private static final HandlerList handlers = new HandlerList();

public static HandlerList getHandlers() {
return handlers;
}

public PlayerLocallyInitializedEvent(Player player) {
this.player = player;
}
}

0 comments on commit 32b665c

Please sign in to comment.