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)
|
if (reportedPlayer != null)
|
||||||
{
|
{
|
||||||
new ReportPage(Plugin, player, reportedPlayer, reason);
|
new ReportPage(Plugin, player, reportedPlayer, reason).openInventory();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,6 @@ public class ReportPage extends SimpleGui
|
|||||||
this._reason = reason;
|
this._reason = reason;
|
||||||
|
|
||||||
buildPage();
|
buildPage();
|
||||||
openInventory();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buildPage()
|
private void buildPage()
|
||||||
|
Loading…
Reference in New Issue
Block a user