Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Location loc = player.getLocation();
- boolean OnTheRightWorld = false;
- for(String world: getConfig().getStringList("Path.To.List")){
- if(loc.getWorld().getName() == world){
- OnTheRightWorld= true;
- }
- }
- if(OnTheRightWorld){
- //Code goes here
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement