mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-23 00:05:52 +01:00
Use MMOCore PlayerDataEvent
This commit is contained in:
parent
6088c8b343
commit
839ccd4942
@ -1,19 +1,19 @@
|
||||
package net.Indyuce.mmocore.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.player.PlayerEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@Getter
|
||||
public class PlayerEnterCastingModeEvent extends PlayerEvent implements Cancellable {
|
||||
private static HandlerList handlerList = new HandlerList();
|
||||
public class PlayerEnterCastingModeEvent extends PlayerDataEvent implements Cancellable {
|
||||
private static final HandlerList handlerList = new HandlerList();
|
||||
private boolean cancelled = false;
|
||||
|
||||
public PlayerEnterCastingModeEvent(@NotNull Player who) {
|
||||
super(who);
|
||||
super(PlayerData.get(who.getUniqueId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,19 +1,19 @@
|
||||
package net.Indyuce.mmocore.api.event;
|
||||
|
||||
import lombok.Getter;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.player.PlayerEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@Getter
|
||||
public class PlayerExitCastingModeEvent extends PlayerEvent implements Cancellable {
|
||||
public class PlayerExitCastingModeEvent extends PlayerDataEvent implements Cancellable {
|
||||
private static final HandlerList handlerList = new HandlerList();
|
||||
private boolean cancelled = false;
|
||||
|
||||
public PlayerExitCastingModeEvent(@NotNull Player who) {
|
||||
super(who);
|
||||
super(PlayerData.get(who.getUniqueId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user