mirror of
https://github.com/songoda/EpicVouchers.git
synced 2024-11-14 22:25:29 +01:00
Made the classes (ForceRedeem, VoucherReceive, VoucherRedeem) follow the contract provided by Event properly
This commit is contained in:
parent
f27a76a583
commit
c1b57454b9
@ -52,4 +52,8 @@ public class ForceRedeemEvent extends Event implements Cancellable {
|
|||||||
return handlers;
|
return handlers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static HandlerList getHandlerList() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -59,4 +59,8 @@ public class VoucherReceiveEvent extends Event implements Cancellable {
|
|||||||
return handlers;
|
return handlers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static HandlerList getHandlerList() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -52,4 +52,8 @@ public class VoucherRedeemEvent extends Event implements Cancellable {
|
|||||||
return handlers;
|
return handlers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static HandlerList getHandlerList() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -141,7 +141,6 @@ public class Voucher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void give(CommandSender sender, List<Player> players, int amount) {
|
public void give(CommandSender sender, List<Player> players, int amount) {
|
||||||
|
|
||||||
String giveMessage = instance.getLocale().getMessage("command.give.send")
|
String giveMessage = instance.getLocale().getMessage("command.give.send")
|
||||||
.processPlaceholder("player", players.size() == 1 ? players.get(0).getName() : "everyone")
|
.processPlaceholder("player", players.size() == 1 ? players.get(0).getName() : "everyone")
|
||||||
.processPlaceholder("voucher", Matcher.quoteReplacement(getName(true)))
|
.processPlaceholder("voucher", Matcher.quoteReplacement(getName(true)))
|
||||||
|
Loading…
Reference in New Issue
Block a user