Rename "reportPlayer" to "createReport" for method name consistency

This commit is contained in:
Keir Nellyer 2016-07-14 21:13:06 +01:00
parent f75806d2dd
commit 209ca20959
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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;