mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 12:49:32 +00:00
commit
d8936f8ba8
|
@ -740,7 +740,7 @@ public class PKListener implements Listener {
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(ability.getElement().getColor());
|
sb.append(ability.getElement().getColor());
|
||||||
sb.append(event.getAbility());
|
sb.append(event.getAbility().getName());
|
||||||
BENDING_PLAYER_DEATH.put((Player) event.getEntity(), sb.toString());
|
BENDING_PLAYER_DEATH.put((Player) event.getEntity(), sb.toString());
|
||||||
final Player player = (Player) event.getEntity();
|
final Player player = (Player) event.getEntity();
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,10 @@ public class BendingReloadEvent extends Event implements Cancellable {
|
||||||
|
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
private boolean cancelled = false;
|
private boolean cancelled = false;
|
||||||
|
private CommandSender sender;
|
||||||
|
|
||||||
public BendingReloadEvent(CommandSender sender) {
|
public BendingReloadEvent(CommandSender sender) {
|
||||||
|
this.sender = sender;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
|
@ -25,6 +26,13 @@ public class BendingReloadEvent extends Event implements Cancellable {
|
||||||
return handlers;
|
return handlers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Who called the reload
|
||||||
|
*/
|
||||||
|
public CommandSender getSender() {
|
||||||
|
return sender;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Whether the event is cancelled
|
* @return Whether the event is cancelled
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue