From e9d64dbf0330a4f39bd2f1a900747ad542796f37 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 4 Jan 2015 14:25:04 -0800 Subject: [PATCH] Check for names in addition to UUIDs with /rg list. --- .../sk89q/worldguard/bukkit/commands/task/RegionLister.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/commands/task/RegionLister.java b/src/main/java/com/sk89q/worldguard/bukkit/commands/task/RegionLister.java index d5f1d43c..14ddc836 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/commands/task/RegionLister.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/commands/task/RegionLister.java @@ -116,6 +116,10 @@ public String getName() { @Override public boolean isContainedWithin(DefaultDomain domain) throws CommandException { + if (domain.contains(name)) { + return true; + } + if (uniqueId == null) { Profile profile;