aliases = {"worldsUserHasPerm", "worldUserHasPermission", "getWorldsUserHasPerm", "getWorldUserHasPermission"})
public List<String> getWorldsUserHasPermission(String userName, String permission) {
if (!(permissionsAvailable())) {
return new ArrayList<String>(0);
}
ServicesManager sm = Bukkit.getServicesManager();
Permission p = sm.getRegistration(Permission.class).getProvider();
List<String> result = new ArrayList<String>();
for (World world : Bukkit.getWorlds()) {
String name = world.getName();
if (p.has(name, userName, permission)) {
result.add(name);