mirror of
https://github.com/plexusorg/Medina.git
synced 2024-11-24 22:45:01 +00:00
oops
This commit is contained in:
parent
a60338e316
commit
49b1a18d43
@ -31,6 +31,12 @@ public class ReportCommand extends MedinaCommand
|
||||
|
||||
Player player = getNonNullPlayer(args[0]);
|
||||
|
||||
if (player.getName().equalsIgnoreCase(sender.getName()))
|
||||
{
|
||||
send(sender, messageComponent("cantReportYourself"));
|
||||
return null;
|
||||
}
|
||||
|
||||
String reason = StringUtils.join(args, " ", 1, args.length);
|
||||
|
||||
Report report = new Report(
|
||||
|
@ -75,8 +75,11 @@ public class ReportsCommand extends MedinaCommand
|
||||
|
||||
return null;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return usage();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private void readReports(@NotNull CommandSender sender, OfflinePlayer player, List<Report> reports)
|
||||
|
@ -43,3 +43,5 @@ reportDoesntExist: "<red>There is no report with this ID belonging to that playe
|
||||
# 1 - The person being reported
|
||||
# 2 - The reason for the report
|
||||
notifyReport: "<dark_gray>[<yellow>REPORT<dark_gray>] <gold>{0} reported {1} for {2}"
|
||||
|
||||
cantReportYourself: "<red>You cannot report yourself."
|
Loading…
Reference in New Issue
Block a user