Skip to content

Commit

Permalink
#531 Fix /team setowner
Browse files Browse the repository at this point in the history
Fixes bug with /team setowner
  • Loading branch information
booksaw authored Jan 27, 2024
2 parents 7e507ff + a600005 commit 3608f9f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public CommandResponse onCommand(TeamPlayer teamPlayer, String label, String[] a

team.promotePlayer(promotePlayer);
team.demotePlayer(teamPlayer);
MessageManager.sendMessage((CommandSender) promotePlayer.getPlayer(), "setowner.notify");
if (promotePlayer.getPlayer().isOnline()) {
MessageManager.sendMessage((CommandSender) promotePlayer.getPlayer(), "setowner.notify");
}

return new CommandResponse(true, "setowner.success");
}
Expand Down

0 comments on commit 3608f9f

Please sign in to comment.