@EventHandler(priority = EventPriority.HIGHEST)
 public void handleClick(ButtonClickEvent event) {
   Button b = event.getButton();
   SpoutPlayer player = event.getPlayer();
   if (event.isCancelled() || event == null || event.getPlayer() == null) return;
   if (b.equals(loginBtn)) {
     plugin.management.performLogin(player, passBox.getText(), false);
   } else if (b.equals(exitBtn)) {
     event.getPlayer().kickPlayer(exitMsg);
   }
 }
  @Override
  public void onButtonClick(Button button) {

    if (button.equals(button1)) {
      spoutp.getMainScreen().getActivePopup().close();
      spoutp.getMainScreen().attachPopupScreen(new PrimClassesGUI(plugin, spoutp));
    } else if (button.equals(button2)) {
      spoutp.getMainScreen().getActivePopup().close();
      spoutp.getMainScreen().attachPopupScreen(new ProfClassesGUI(plugin, spoutp));
    }
  }