<commit_before> package me.sharpjaws.sharpSK.hooks.WorldGuard;
 
 import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.bukkit.World;
import org.bukkit.event.Event;

import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldguard.bukkit.WGBukkit;
import com.sk89q.worldguard.protection.managers.RegionManager;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;

import ch.njol.skript.classes.Changer;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.skript.lang.util.SimpleExpression;
import ch.njol.util.Kleenean;
 
 
 public class ExprAllMembers
   extends SimpleExpression<String>
 {
   private Expression<String> region;
   private Expression<?> world;
   
   
   @SuppressWarnings("unchecked")
public boolean init(Expression<?>[] expressions, int i, Kleenean kleenean, SkriptParser.ParseResult parseResult)
   {
	 this.region = (Expression<String>) expressions[0];
     this.world = expressions[1];
     return true;
   }
   
   protected String[] get(Event event) {
     World world = (World)this.world.getSingle(event);
     
     RegionManager rm = WGBukkit.getRegionManager(world);
    ProtectedRegion pregion = rm.getRegion(region.getSingle(event));
     List<String> list = new ArrayList<String>(pregion.getMembers().getPlayers());
     
     String[] s = new String[list.size()];
     return (String[])list.toArray(s);
   }
   
   public boolean isSingle() {
     return false;
   }<commit_msg>Added world searching to the syntax aswell<commit_after> package me.sharpjaws.sharpSK.hooks.WorldGuard;
 
 import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.event.Event;

import com.sk89q.worldedit.regions.Region;
import com.sk89q.worldguard.bukkit.WGBukkit;
import com.sk89q.worldguard.protection.managers.RegionManager;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;

import ch.njol.skript.classes.Changer;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.skript.lang.util.SimpleExpression;
import ch.njol.util.Kleenean;
 
 
 public class ExprAllMembers
   extends SimpleExpression<String>
 {
   private Expression<String> region;
   private Expression<?> world;
   
   
   @SuppressWarnings("unchecked")
public boolean init(Expression<?>[] expressions, int i, Kleenean kleenean, SkriptParser.ParseResult parseResult)
   {
	 this.region = (Expression<String>) expressions[0];
     this.world = expressions[1];
     return true;
   }
   
   protected String[] get(Event event) {
	   World world = (World)this.world.getSingle(event);
	   if (world == null) {
		   for (RegionManager a : WGBukkit.getPlugin().getRegionContainer().getLoaded()) {
			 for  (Entry<String, ProtectedRegion> b :a.getRegions().entrySet()) {
				if ( b.getKey().equals(region.getSingle(event))) {
					world = Bukkit.getWorld(a.getName());
					break;
				}
				 
			 }
		   }
	   }
     
     RegionManager rm = WGBukkit.getRegionManager(world);
    ProtectedRegion pregion = rm.getRegion(region.getSingle(event));
     List<String> list = new ArrayList<String>(pregion.getMembers().getPlayers());
     
     String[] s = new String[list.size()];
     return (String[])list.toArray(s);
   }
   
   public boolean isSingle() {
     return false;
   }
{'fraction_non_alphanumeric': 0.12221570926143024, 'fraction_numerical': 0.005861664712778429, 'mean_word_length': 4.101644245142003, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1920031', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1089, 'n_words': 203}