diff options
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java b/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java index 1c31ccd..e55675e 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java @@ -17,7 +17,7 @@ public class Stop implements ICommand { public void execute(CommandSender sender, String[] args) { if(status.equals("Starting") || status.equals("Playing")) { - Bukkit.broadcastMessage(messagePrefix + "Game has been force stopped."); + Bukkit.broadcastMessage(abortPrefix + "Game has been force stopped."); onStop(); } else { @@ -38,7 +38,7 @@ public class Stop implements ICommand { player.setGameMode(GameMode.ADVENTURE); Hider.addEntry(player.getName()); player.getInventory().clear(); - player.teleport(new Location(player.getWorld(), spawnPosition.getX(),spawnPosition.getY(),spawnPosition.getZ())); + player.teleport(new Location(Bukkit.getWorld(spawnWorld), spawnPosition.getX(),spawnPosition.getY(),spawnPosition.getZ())); for(PotionEffect effect : player.getActivePotionEffects()){ player.removePotionEffect(effect.getType()); } |