Ensure messages shown to players are consistent
This commit is contained in:
parent
4ed51b5747
commit
f75806d2dd
@ -43,10 +43,10 @@ public class ReportHandlerMessenger extends BukkitRunnable
|
|||||||
_reportManager.getReportRepository().getAccountName(_report.getSuspectId())
|
_reportManager.getReportRepository().getAccountName(_report.getSuspectId())
|
||||||
.thenAccept(suspectName ->
|
.thenAccept(suspectName ->
|
||||||
{
|
{
|
||||||
String prefix = F.main("Report", "");
|
String prefix = F.main(ReportManager.getReportPrefix(reportId), "");
|
||||||
|
|
||||||
ChildJsonMessage jsonMessage = new JsonMessage("\n")
|
ChildJsonMessage jsonMessage = new JsonMessage("\n")
|
||||||
.extra(prefix + C.cAqua + "Handling" + C.cGold + " #" + reportId)
|
.extra(prefix + C.cAqua + "Report Overview")
|
||||||
.add("\n")
|
.add("\n")
|
||||||
.add(prefix + C.cAqua + "Suspect - " + C.cGold + suspectName)
|
.add(prefix + C.cAqua + "Suspect - " + C.cGold + suspectName)
|
||||||
.add("\n")
|
.add("\n")
|
||||||
|
@ -9,8 +9,10 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
|
|
||||||
import mineplex.core.common.util.C;
|
import mineplex.core.common.util.C;
|
||||||
|
import mineplex.core.common.util.F;
|
||||||
import mineplex.core.gui.SimpleGui;
|
import mineplex.core.gui.SimpleGui;
|
||||||
import mineplex.core.report.ReportCategory;
|
import mineplex.core.report.ReportCategory;
|
||||||
|
import mineplex.core.report.ReportManager;
|
||||||
import mineplex.core.report.ReportPlugin;
|
import mineplex.core.report.ReportPlugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -66,7 +68,7 @@ public class ReportCategoryPage extends SimpleGui
|
|||||||
|
|
||||||
if (reportIdOptional.isPresent())
|
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;
|
error = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user