Add faction exemption to /f show
This commit is contained in:
@@ -54,6 +54,12 @@ public class CmdShow extends FCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!fme.getPlayer().hasPermission("factions.show.bypassexempt")
|
||||
&& P.p.getConfig().getStringList("show-exempt").contains(faction.getTag())) {
|
||||
msg(TL.COMMAND_SHOW_EXEMPT);
|
||||
return;
|
||||
}
|
||||
|
||||
// if economy is enabled, they're not on the bypass list, and this command has a cost set, make 'em pay
|
||||
if (!payForCommand(Conf.econCostShow, TL.COMMAND_SHOW_TOSHOW, TL.COMMAND_SHOW_FORSHOW)) {
|
||||
return;
|
||||
|
||||
@@ -463,6 +463,7 @@ public enum TL {
|
||||
COMMAND_SHOW_MEMBERSOFFLINE("Members offline: "),
|
||||
COMMAND_SHOW_COMMANDDESCRIPTION("Show faction information"),
|
||||
COMMAND_SHOW_DEATHS_TIL_RAIDABLE("<i>DTR: %1$d"),
|
||||
COMMAND_SHOW_EXEMPT("<b>This faction is exempt and cannot be seen."),
|
||||
|
||||
COMMAND_SHOWINVITES_PENDING("Players with pending invites: "),
|
||||
COMMAND_SHOWINVITES_CLICKTOREVOKE("Click to revoke invite for %1$s"),
|
||||
|
||||
Reference in New Issue
Block a user