forked from CloudburstMC/Nukkit
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PlayerInitializedEvent, PlayerLocallyInitializedEvent
- Loading branch information
1 parent
b5a72d4
commit 32b665c
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/cn/nukkit/event/player/PlayerInitializedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/cn/nukkit/event/player/PlayerLocallyInitializedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |