Rename "reportPlayer" to "createReport" for method name consistency
This commit is contained in:
parent
f75806d2dd
commit
209ca20959
@ -86,7 +86,7 @@ public class ReportManager
|
||||
* @param reason the reason this player reported the other
|
||||
* @return a future which when completed contains a {@link Report} instance of the report just created or added to
|
||||
*/
|
||||
public CompletableFuture<Report> reportPlayer(Player reporter, Player suspect, ReportCategory category, String reason)
|
||||
public CompletableFuture<Report> createReport(Player reporter, Player suspect, ReportCategory category, String reason)
|
||||
{
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
int reporterId = _clientManager.Get(reporter).getAccountId();
|
||||
|
@ -58,7 +58,7 @@ public class ReportCategoryPage extends SimpleGui
|
||||
_reporter.closeInventory();
|
||||
unregisterListener();
|
||||
|
||||
_reportPlugin.getReportManager().reportPlayer(_reporter, _offender, category, _reason)
|
||||
_reportPlugin.getReportManager().createReport(_reporter, _offender, category, _reason)
|
||||
.thenAccept(report -> {
|
||||
boolean error = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user