diff --git a/src/net/foxgenesis/watame/property/PluginPropertyMapping.java b/src/net/foxgenesis/watame/property/PluginPropertyMapping.java index 0753dd1..8238e40 100644 --- a/src/net/foxgenesis/watame/property/PluginPropertyMapping.java +++ b/src/net/foxgenesis/watame/property/PluginPropertyMapping.java @@ -44,6 +44,14 @@ public Role getAsRole() { return getGuild().getRoleById(getAsLong()); } + public Role[] getAsRoleArray() { + long[] arr = getAsLongArray(); + Role[] out = new Role[arr.length]; + for (int i = 0; i < arr.length; i++) + out[i] = getGuild().getRoleById(arr[i]); + return out; + } + @Nullable public GuildMessageChannel getAsMessageChannel() { return getGuild().getChannelById(GuildMessageChannel.class, getAsLong());