Ensure messages shown to players are consistent

This commit is contained in:
Keir Nellyer 2016-07-14 21:11:43 +01:00
parent 4ed51b5747
commit f75806d2dd
2 changed files with 5 additions and 3 deletions

View File

@ -43,10 +43,10 @@ public class ReportHandlerMessenger extends BukkitRunnable
_reportManager.getReportRepository().getAccountName(_report.getSuspectId())
.thenAccept(suspectName ->
{
String prefix = F.main("Report", "");
String prefix = F.main(ReportManager.getReportPrefix(reportId), "");
ChildJsonMessage jsonMessage = new JsonMessage("\n")
.extra(prefix + C.cAqua + "Handling" + C.cGold + " #" + reportId)
.extra(prefix + C.cAqua + "Report Overview")
.add("\n")
.add(prefix + C.cAqua + "Suspect - " + C.cGold + suspectName)
.add("\n")

View File

@ -9,8 +9,10 @@ import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
import mineplex.core.gui.SimpleGui;
import mineplex.core.report.ReportCategory;
import mineplex.core.report.ReportManager;
import mineplex.core.report.ReportPlugin;
/**
@ -66,7 +68,7 @@ public class ReportCategoryPage extends SimpleGui
if (reportIdOptional.isPresent())
{
_reporter.sendMessage(C.cGreen + "Report sent successfully (" + C.cGold + "#" + reportIdOptional.get() + C.cGreen + ").");
_reporter.sendMessage(F.main(ReportManager.getReportPrefix(reportIdOptional.get()), C.cGreen + "Successfully created report."));
error = false;
}
}