daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player[] players = plugin.getServer().getOnlinePlayers();
  2. World spawnWorld = plugin.getServer().getWorld(plugin.getConfig().getString("Jooce.TDM.Spawn.World"));
  3. int spawnX = plugin.getConfig().getInt("Jooce.TDM.Spawn.Xcord");
  4. int spawnY = plugin.getConfig().getInt("Jooce.TDM.Spawn.Ycord");
  5. int spawnZ = plugin.getConfig().getInt("Jooce.TDM.Spawn.Zcord");
  6. Location spawnLocation = new Location(spawnWorld, spawnX, spawnY, spawnZ);
  7.  
  8. Player[] players = plugin.getServer().getOnlinePlayers();
  9.  
  10. for (Player player : players) {
  11.     player.teleport(spawnLocation);
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top