Add Vault chat debug messages
This commit is contained in:
parent
9fe05efb4e
commit
c5ce655cf6
@ -79,6 +79,8 @@ public class VaultChatHook extends Chat {
|
|||||||
if (holder == null) return;
|
if (holder == null) return;
|
||||||
if (node.equals("")) return;
|
if (node.equals("")) return;
|
||||||
|
|
||||||
|
perms.log("Setting meta: '" + node + "' for " + holder.getObjectName() + " on world " + world + ", server " + perms.getServer());
|
||||||
|
|
||||||
perms.scheduleTask(() -> {
|
perms.scheduleTask(() -> {
|
||||||
String k = escapeCharacters(node);
|
String k = escapeCharacters(node);
|
||||||
String v = escapeCharacters(value);
|
String v = escapeCharacters(value);
|
||||||
@ -114,6 +116,8 @@ public class VaultChatHook extends Chat {
|
|||||||
if (holder == null) return;
|
if (holder == null) return;
|
||||||
if (value.equals("")) return;
|
if (value.equals("")) return;
|
||||||
|
|
||||||
|
perms.log("Setting " + (prefix ? "prefix" : "suffix") + " for " + holder.getObjectName() + " on world " + world + ", server " + perms.getServer());
|
||||||
|
|
||||||
perms.scheduleTask(() -> {
|
perms.scheduleTask(() -> {
|
||||||
Node.Builder node = new me.lucko.luckperms.core.Node.Builder(prefix ? "prefix" : "suffix" + ".1000." + escapeCharacters(value));
|
Node.Builder node = new me.lucko.luckperms.core.Node.Builder(prefix ? "prefix" : "suffix" + ".1000." + escapeCharacters(value));
|
||||||
node.setValue(true);
|
node.setValue(true);
|
||||||
@ -138,6 +142,8 @@ public class VaultChatHook extends Chat {
|
|||||||
if (user == null) return defaultValue;
|
if (user == null) return defaultValue;
|
||||||
node = escapeCharacters(node);
|
node = escapeCharacters(node);
|
||||||
|
|
||||||
|
perms.log("Getting meta: '" + node + "' for user " + user.getName() + " on world " + world + ", server " + perms.getServer());
|
||||||
|
|
||||||
if (!perms.getVaultUserManager().containsUser(user.getUuid())) {
|
if (!perms.getVaultUserManager().containsUser(user.getUuid())) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
}
|
}
|
||||||
@ -157,6 +163,8 @@ public class VaultChatHook extends Chat {
|
|||||||
world = perms.isIgnoreWorld() ? null : world;
|
world = perms.isIgnoreWorld() ? null : world;
|
||||||
if (user == null) return "";
|
if (user == null) return "";
|
||||||
|
|
||||||
|
perms.log("Getting " + (prefix ? "prefix" : "suffix") + " for user " + user.getName() + " on world " + world + ", server " + perms.getServer());
|
||||||
|
|
||||||
if (!perms.getVaultUserManager().containsUser(user.getUuid())) {
|
if (!perms.getVaultUserManager().containsUser(user.getUuid())) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@ -178,6 +186,8 @@ public class VaultChatHook extends Chat {
|
|||||||
if (node.equals("")) return defaultValue;
|
if (node.equals("")) return defaultValue;
|
||||||
node = escapeCharacters(node);
|
node = escapeCharacters(node);
|
||||||
|
|
||||||
|
perms.log("Getting meta: '" + node + "' for group " + group.getName() + " on world " + world + ", server " + perms.getServer());
|
||||||
|
|
||||||
for (Node n : group.getPermissions(true)) {
|
for (Node n : group.getPermissions(true)) {
|
||||||
if (!n.getValue()) {
|
if (!n.getValue()) {
|
||||||
continue;
|
continue;
|
||||||
@ -208,6 +218,8 @@ public class VaultChatHook extends Chat {
|
|||||||
world = perms.isIgnoreWorld() ? null : world;
|
world = perms.isIgnoreWorld() ? null : world;
|
||||||
if (group == null) return "";
|
if (group == null) return "";
|
||||||
|
|
||||||
|
perms.log("Getting " + (prefix ? "prefix" : "suffix") + " for group " + group + " on world " + world + ", server " + perms.getServer());
|
||||||
|
|
||||||
int priority = Integer.MIN_VALUE;
|
int priority = Integer.MIN_VALUE;
|
||||||
String meta = null;
|
String meta = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user