String flag = null;
String player = null;
ClaimedResidence res = null;
String group = null;
boolean resadmin = (Boolean)popup.getMetaData().get("admin");
Button button = event.getButton();
if (button.getText().equalsIgnoreCase("Close")) {
event.getPlayer().getMainScreen().removeWidget(screen);
return;
} else if (button.getText().equalsIgnoreCase("RemoveAll")) {
flagval = "removeall";
} else if (button.getText().equalsIgnoreCase("SetTrue")) {
flagval = "true";
} else if (button.getText().equalsIgnoreCase("SetFalse")) {
flagval = "false";
} else if (button.getText().equalsIgnoreCase("Remove")) {
flagval = "remove";
}
player = ((GenericTextField) popup.getWidget("PlayerName")).getText();
group = ((GenericTextField)popup.getWidget("GroupName")).getText();
flag = ((GenericTextField) popup.getWidget("FlagName")).getText();