mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 21:43:54 +00:00
More stuff for discord and mb changes
This commit is contained in:
@ -113,7 +113,7 @@ public class Command_mbconfig extends FreedomCommand
|
||||
if (masterBuilder == null) // New entry
|
||||
{
|
||||
checkRank(Rank.SENIOR_ADMIN);
|
||||
if (!FUtil.isExecutive(sender.getName()))
|
||||
if (!FUtil.canManageMasterBuilders(sender.getName()))
|
||||
{
|
||||
noPerms();
|
||||
}
|
||||
@ -179,7 +179,7 @@ public class Command_mbconfig extends FreedomCommand
|
||||
|
||||
checkConsole();
|
||||
checkRank(Rank.SENIOR_ADMIN);
|
||||
if (!FUtil.isExecutive(sender.getName()))
|
||||
if (!FUtil.canManageMasterBuilders(sender.getName()))
|
||||
{
|
||||
noPerms();
|
||||
}
|
||||
|
@ -47,12 +47,15 @@ public class Command_report extends FreedomCommand
|
||||
String report = StringUtils.join(ArrayUtils.subarray(args, 1, args.length), " ");
|
||||
plugin.cm.reportAction(playerSender, player, report);
|
||||
|
||||
boolean logged = false;
|
||||
|
||||
if (plugin.dc.enabled)
|
||||
{
|
||||
plugin.dc.sendReport(playerSender, player, report);
|
||||
logged = plugin.dc.sendReport(playerSender, player, report);
|
||||
}
|
||||
|
||||
msg(ChatColor.GREEN + "Thank you, your report has been successfully logged.");
|
||||
msg(ChatColor.GREEN + "Thank you, your report has been successfully logged."
|
||||
+ (logged ? ChatColor.RED + "\nNote: This report has been logged to a discord channel, as with any report system, spamming reports can lead to you getting banned." : ""));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user