-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/java/com/mengcraft/playersql/event/PlayerDataLockedEvent.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,30 @@ | ||
package com.mengcraft.playersql.event; | ||
|
||
import lombok.Data; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.HandlerList; | ||
import org.bukkit.event.player.PlayerEvent; | ||
|
||
import java.sql.Timestamp; | ||
|
||
@Data | ||
public class PlayerDataLockedEvent extends PlayerEvent { | ||
|
||
public static final HandlerList HANDLER_LIST = new HandlerList(); | ||
private final Timestamp lastUpdate; | ||
private Result result = Result.DEFAULT; | ||
|
||
public PlayerDataLockedEvent(Player who, Timestamp lastUpdate) { | ||
super(who); | ||
this.lastUpdate = lastUpdate; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return null; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return HANDLER_LIST; | ||
} | ||
} |
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