}
public static void showResidenceFlagGUI(SpoutPlayer p, Residence plug, String resname, boolean resadmin)
{
ClaimedResidence res = Residence.getResidenceManager().getByName(resname);
if (res.getPermissions().hasResidencePermission(p, false)) {
Color fieldcolor = new Color(0F,0F,0.3F,1F);
Color textPrimaryColor = new Color(1F,1F,1F,1F);
Color textSecondaryColor = new Color(1F,1F,0,1F);
Color hoverColor = new Color(1F,0,0,1F);
ResidencePopup popup = new ResidencePopup(PopupType.FLAG_GUI);
popup.getMetaData().put("admin", resadmin);
popup.gridAttachWidget(plug, new GenericLabel("Admin: ").setTextColor(textPrimaryColor), 3, 1);
popup.gridAttachWidget(plug, new GenericLabel(Boolean.toString(resadmin)).setTextColor(textSecondaryColor), 4, 1);
popup.gridAttachWidget(plug, new GenericLabel("Residence: ").setTextColor(textPrimaryColor), 0, 0);
popup.gridAttachWidget(plug, new GenericLabel("Flag: ").setTextColor(textPrimaryColor), 0, 1);
popup.gridAttachWidget(plug, new GenericLabel("Player: ").setTextColor(textPrimaryColor), 0, 2);
popup.gridAttachWidget(plug, new GenericLabel("Group: ").setTextColor(textPrimaryColor), 0, 3);
popup.gridAttachWidget("ResidenceName",plug, new GenericLabel(resname).setTextColor(textSecondaryColor), 1, 0);
popup.gridAttachWidget(plug, new GenericLabel("Owner: ").setTextColor(textPrimaryColor), 0, 4);
popup.gridAttachWidget(plug, new GenericLabel("World: ").setTextColor(textPrimaryColor), 0, 5);
popup.gridAttachWidget(plug, new GenericLabel(res.getOwner()).setTextColor(textSecondaryColor), 1, 4);
popup.gridAttachWidget(plug, new GenericLabel(res.getWorld()).setTextColor(textSecondaryColor), 1, 5);
GenericTextField flag = new GenericTextField();
flag.setTooltip("The name of the flag...");
flag.setColor(textSecondaryColor);
flag.setFieldColor(fieldcolor);