Advertisement
Guest User

Untitled

a guest
May 29th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. Location loc = player.getLocation();
  2. boolean OnTheRightWorld = false;
  3. for(String world: getConfig().getStringList("Path.To.List")){
  4.     if(loc.getWorld().getName() == world){
  5.         OnTheRightWorld= true;
  6.     }
  7. }
  8. if(OnTheRightWorld){
  9.     //Code goes here
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement