Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Add message on quiet ban/kick
Browse files Browse the repository at this point in the history
  • Loading branch information
dualspiral committed Oct 14, 2015
1 parent b118049 commit 0468f28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public final boolean executeCommand(WrappedCommandSource source, ArgumentMap arg
server.sendMessageToServer(t);
}
} else {
server.sendMessageToPermissionGroup(
new HammerTextBuilder().add("[Hammer] This ban is quiet. Only those with notify permissions will see this.", HammerTextColours.RED).build(),
HammerPermissions.notify);
for (HammerText t : msg) {
server.sendMessageToPermissionGroup(t, HammerPermissions.notify);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ protected boolean executeCommand(WrappedCommandSource source, ArgumentMap argume
core.getWrappedServer().sendMessageToServer(m);
}
} else {
core.getWrappedServer().sendMessageToPermissionGroup(
new HammerTextBuilder().add("[Hammer] This kick is quiet. Only those with notify permissions will see this.", HammerTextColours.RED).build(),
HammerPermissions.notify);
for (HammerText m : msg) {
core.getWrappedServer().sendMessageToPermissionGroup(m, HammerPermissions.notify);
}
Expand Down

0 comments on commit 0468f28

Please sign in to comment.