Rename /reportstats command to /reporthistory
This commit is contained in:
parent
b0ac3cac8c
commit
5f755add78
@ -10,7 +10,7 @@ import mineplex.core.report.command.ReportCloseCommand;
|
||||
import mineplex.core.report.command.ReportCommand;
|
||||
import mineplex.core.report.command.ReportHandleCommand;
|
||||
import mineplex.core.report.command.ReportInfoCommand;
|
||||
import mineplex.core.report.command.ReportStatsCommand;
|
||||
import mineplex.core.report.command.ReportHistoryCommand;
|
||||
|
||||
/**
|
||||
* Main class for this module, handles initialization and disabling of the module.
|
||||
@ -36,7 +36,7 @@ public class ReportPlugin extends MiniPlugin
|
||||
addCommand(new ReportCommand(this));
|
||||
addCommand(new ReportHandleCommand(this));
|
||||
addCommand(new ReportCloseCommand(this));
|
||||
addCommand(new ReportStatsCommand(this));
|
||||
addCommand(new ReportHistoryCommand(this));
|
||||
addCommand(new ReportInfoCommand(this));
|
||||
}
|
||||
|
||||
|
@ -18,11 +18,11 @@ import mineplex.core.report.ReportRole;
|
||||
/**
|
||||
* A staff command for viewing report related statistics of a player.
|
||||
*/
|
||||
public class ReportStatsCommand extends CommandBase<ReportPlugin>
|
||||
public class ReportHistoryCommand extends CommandBase<ReportPlugin>
|
||||
{
|
||||
public ReportStatsCommand(ReportPlugin reportPlugin)
|
||||
public ReportHistoryCommand(ReportPlugin reportPlugin)
|
||||
{
|
||||
super(reportPlugin, Rank.MODERATOR, "reportstats", "rs");
|
||||
super(reportPlugin, Rank.MODERATOR, "reporthistory", "rhis");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -40,7 +40,7 @@ public class ReportStatsCommand extends CommandBase<ReportPlugin>
|
||||
|
||||
Plugin.getReportManager().getReportRepository().getAccountStatistics(accountId).thenCompose(BukkitFuture.accept(stats ->
|
||||
{
|
||||
UtilPlayer.message(player, F.main(Plugin.getName(), "Report Statistics for " + F.elem(playerName)));
|
||||
UtilPlayer.message(player, F.main(Plugin.getName(), "Report History for " + F.elem(playerName)));
|
||||
|
||||
for (ReportRole role : ReportRole.values())
|
||||
{
|
Loading…
Reference in New Issue
Block a user