Made homeTeleport void because it does not return anything useful

This commit is contained in:
Tastybento 2018-02-06 22:02:14 -08:00
parent ad50b04177
commit 61f0a6f997

View File

@ -570,8 +570,8 @@ public class IslandsManager {
* @param player * @param player
* @return true if the home teleport is successful * @return true if the home teleport is successful
*/ */
public boolean homeTeleport(final Player player) { public void homeTeleport(final Player player) {
return homeTeleport(player, 1); homeTeleport(player, 1);
} }
/** /**
@ -582,7 +582,7 @@ public class IslandsManager {
* @return true if successful, false if not * @return true if successful, false if not
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public boolean homeTeleport(final Player player, int number) { public void homeTeleport(final Player player, int number) {
Location home; Location home;
if (DEBUG) if (DEBUG)
plugin.getLogger().info("home teleport called for #" + number); plugin.getLogger().info("home teleport called for #" + number);
@ -605,7 +605,7 @@ public class IslandsManager {
plugin.getLogger().info("Fixing home location using safe spot teleport"); plugin.getLogger().info("Fixing home location using safe spot teleport");
// Try to fix this teleport location and teleport the player if possible // Try to fix this teleport location and teleport the player if possible
new SafeSpotTeleport(plugin, player, plugin.getPlayers().getHomeLocation(player.getUniqueId(), number), number); new SafeSpotTeleport(plugin, player, plugin.getPlayers().getHomeLocation(player.getUniqueId(), number), number);
return true; return;
} }
if (DEBUG) if (DEBUG)
plugin.getLogger().info("DEBUG: home loc = " + home + " teleporting"); plugin.getLogger().info("DEBUG: home loc = " + home + " teleporting");
@ -622,7 +622,7 @@ public class IslandsManager {
if (player.getGameMode().equals(GameMode.SPECTATOR)) { if (player.getGameMode().equals(GameMode.SPECTATOR)) {
player.setGameMode(GameMode.SURVIVAL); player.setGameMode(GameMode.SURVIVAL);
} }
return true; return;
} }
/** /**