Skip to content

Commit

Permalink
Remove back-up location message
Browse files Browse the repository at this point in the history
  • Loading branch information
Efnilite committed Jun 29, 2021
1 parent d8a0a99 commit 7e62012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/efnilite/witp/WITP.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ public void join(PlayerJoinEvent event) {
} else if (player.getWorld() == WITP.getDivider().getWorld()) {
World fallback = Bukkit.getWorld(configuration.getString("config", "world.fall-back"));
if (fallback != null) {
// If players who left in the world end up in the world itself while not being a player
player.teleport(fallback.getSpawnLocation(), PlayerTeleportEvent.TeleportCause.PLUGIN);
player.sendMessage("You have been teleported to a backup location");
} else {
Verbose.error("There is no backup world! Selecting one at random...");
for (World last : Bukkit.getWorlds()) {
Expand Down

0 comments on commit 7e62012

Please sign in to comment.