Commits

Cory Redmond authored and md_5 committed 6198e695966
Add setSpawnLocation(Location)
No tags

src/main/java/org/bukkit/World.java

Modified
467 467 */
468 468 public UUID getUID();
469 469
470 470 /**
471 471 * Gets the default spawn {@link Location} of this world
472 472 *
473 473 * @return The spawn location of this world
474 474 */
475 475 public Location getSpawnLocation();
476 476
477 + /**
478 + * Sets the spawn location of the world.
479 + * <br>
480 + * The location provided must be equal to this world.
481 + *
482 + * @param location The {@link Location} to set the spawn for this world at.
483 + * @return True if it was successfully set.
484 + */
485 + public boolean setSpawnLocation(Location location);
486 +
477 487 /**
478 488 * Sets the spawn location of the world
479 489 *
480 490 * @param x X coordinate
481 491 * @param y Y coordinate
482 492 * @param z Z coordinate
483 493 * @return True if it was successfully set.
484 494 */
485 495 public boolean setSpawnLocation(int x, int y, int z);
486 496

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut