G-Lauz/PlayerJoinGroup

Admin with `essentials.silentjoin` and `essentials.silentquit` broadcast the exit message on leaving

Closed this issue · 0 comments

G-Lauz commented

if (canDisplayMessage(packet, "essentials.silentquit")) {
String message = Utils.getPlayerLeaveMessage(packet.getParams().get("PLAYER_NAME"));
getServer().broadcastMessage(message);
}

Possible solution:

  • Use a channel only for the admin
  • Add a flag with ParamsKey and only those with the permission will receive the message
  • Find a way to check permission on offline player or move the check elsewhere