public void open() {
opened = true;
switch (VanillaPlugin.getInstance().getEngine().getPlatform()) {
case PROXY:
case SERVER:
getPlayer().getNetwork().callProtocolEvent(new WindowOpenEvent(this), getPlayer());
reload();
break;
case CLIENT:
((Client) VanillaPlugin.getInstance().getEngine()).getScreenStack().openScreen(popup);
break;