-
Notifications
You must be signed in to change notification settings - Fork 4
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
38 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
src/main/java/net/azisaba/lgw/core/events/PlayerKillEvent.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,35 @@ | ||
package net.azisaba.lgw.core.events; | ||
|
||
import lombok.Getter; | ||
import net.azisaba.lgw.core.LeonGunWar; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
public class PlayerKillEvent extends Event { | ||
|
||
@Getter | ||
private final Player player; | ||
@Getter | ||
private final String weaponTitle; | ||
@Getter | ||
private final int killStreaks; | ||
|
||
private static final HandlerList HANDLERS_LIST = new HandlerList(); | ||
|
||
public PlayerKillEvent(Player player, String weaponTitle){ | ||
this.player = player; | ||
this.weaponTitle = weaponTitle; | ||
this.killStreaks = LeonGunWar.getPlugin().getKillStreaks().get(player).get(); | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return HANDLERS_LIST; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return HANDLERS_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