mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +01:00
Fixed onPlayerLeaveEvent on kick
This commit is contained in:
parent
20f1d2845b
commit
2e2c849be4
@ -63,7 +63,7 @@ public class PartiesListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerLeaveEvent(BukkitPartiesPlayerPostLeaveEvent event) {
|
||||
if (event.isKicked()) {
|
||||
if (event.isKicked() && event.getKicker() != null) {
|
||||
Player k = Bukkit.getServer().getPlayer(event.getKicker().getPlayerUUID());
|
||||
if (k != null) {
|
||||
k.sendMessage(ChatColor.RED + Lang.get(k, "questPartiesKicked").replace("<player>", k.getName()));
|
||||
|
Loading…
Reference in New Issue
Block a user