Instantiating a page shouldn't cause it to automatically open.
This commit is contained in:
parent
bd6ce21cf7
commit
72b650086d
@ -34,7 +34,7 @@ public class ReportCommand extends CommandBase<ReportPlugin>
|
||||
|
||||
if (reportedPlayer != null)
|
||||
{
|
||||
new ReportPage(Plugin, player, reportedPlayer, reason);
|
||||
new ReportPage(Plugin, player, reportedPlayer, reason).openInventory();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -40,7 +40,6 @@ public class ReportPage extends SimpleGui
|
||||
this._reason = reason;
|
||||
|
||||
buildPage();
|
||||
openInventory();
|
||||
}
|
||||
|
||||
private void buildPage()
|
||||
|
Loading…
Reference in New Issue
Block a user