Skip to content

Commit 9aa88bd

Browse files
committed
Add a little more group based debugging.
1 parent f36f5ec commit 9aa88bd

File tree

1 file changed

+7
-2
lines changed
  • Essentials/src/com/earth2me/essentials

1 file changed

+7
-2
lines changed

Essentials/src/com/earth2me/essentials/User.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,12 @@ public boolean isGodModeEnabledRaw()
645645
@Override
646646
public String getGroup()
647647
{
648-
return ess.getPermissionsHandler().getGroup(base);
648+
final String result = ess.getPermissionsHandler().getGroup(base);
649+
if (ess.getSettings().isDebug())
650+
{
651+
ess.getLogger().log(Level.INFO, "looking up groupname of " + base.getName() + " - " + result);
652+
}
653+
return result;
649654
}
650655

651656
@Override
@@ -654,7 +659,7 @@ public boolean inGroup(final String group)
654659
final boolean result = ess.getPermissionsHandler().inGroup(base, group);
655660
if (ess.getSettings().isDebug())
656661
{
657-
ess.getLogger().log(Level.INFO, "checking if " + base.getName() + " is in " + group + " - " + result);
662+
ess.getLogger().log(Level.INFO, "checking if " + base.getName() + " is in group " + group + " - " + result);
658663
}
659664
return result;
660665
}

0 commit comments

Comments
 (0)