mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
Remove redundant messaging. Fixes #276
When informing faction members, if the command sender is part of the faction, do not send another message to him because he has already been informed.
This commit is contained in:
parent
1d00a0aa54
commit
0aea7c6b9d
@ -38,10 +38,14 @@ public class CmdPermanentPower extends FCommand {
|
||||
change = TL.COMMAND_PERMANENTPOWER_GRANT.toString();
|
||||
}
|
||||
|
||||
// Inform sender
|
||||
msg(TL.COMMAND_PERMANENTPOWER_SUCCESS, change, targetFaction.describeTo(fme));
|
||||
|
||||
// Inform all players
|
||||
// Inform all other players
|
||||
for (FPlayer fplayer : targetFaction.getFPlayersWhereOnline(true)) {
|
||||
if(fplayer == fme) {
|
||||
continue;
|
||||
}
|
||||
String blame = (fme == null ? TL.GENERIC_SERVERADMIN.toString() : fme.describeTo(fplayer, true));
|
||||
fplayer.msg(TL.COMMAND_PERMANENTPOWER_FACTION, blame, change);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user