Add developer mode, other small fixes

This commit is contained in:
h31ix committed 2013-03-28 22:21:21 -04:00
1 parent cb1959d2c0
commit 8d13e964ae
6 files changed
+39 -17

No files matched your search

@@ -52,14 +52,7 @@ public class PastebinReport {
}
public PastebinReport(CommandSender cs, Player tp) {
Player player = null;
if (tp == null) {
cs.sendMessage(ChatColor.RED + "We were unable to detect the target player when making this report. Skipping permstester");
} else {
player = tp;
}
createReport(player);
createReport(tp);
try {
writeReport();
} catch (IOException e) {}
@@ -71,9 +64,10 @@ public class PastebinReport {
}
private void appendPermissionsTester(Player player) {
if (player == null) { return; }
// alrighty then noobs.
if (player == null) {
return;
}
for (Permission node : Permission.values()) {
report.append(player.getName() + ": " + node.toString() + " " + node.get(player));
if(node.get(player) && !node.whichPermission(player).equals(node.toString())) {