diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-05-14 10:27:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 10:27:16 -0400 |
commit | 6ec675b8bedeabd72406a96914623c54c513ecf9 (patch) | |
tree | 38fa53d6d4ae8e3ca87a92f63c66e920baba7f67 /src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java | |
parent | better spectator flight and teleporting (diff) | |
parent | refactor: clean up typos, improperly named variables (diff) | |
download | kenshinshideandseek-6ec675b8bedeabd72406a96914623c54c513ecf9.tar.gz kenshinshideandseek-6ec675b8bedeabd72406a96914623c54c513ecf9.tar.bz2 kenshinshideandseek-6ec675b8bedeabd72406a96914623c54c513ecf9.zip |
Merge pull request #54 from bobby29831/1.4.3
More refactoring for cleaner code
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java b/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java index d96252d..1f454d6 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java @@ -36,7 +36,7 @@ public class SetSpawnLocation implements ICommand { Player player = (Player) sender; LocationUtils.setLocation(player, Locations.GAME, vector -> { - if (worldborderEnabled && vector.distance(worldborderPosition) > 100) { + if (worldBorderEnabled && vector.distance(worldBorderPosition) > 100) { sender.sendMessage(errorPrefix + message("WORLDBORDER_POSITION")); throw new RuntimeException("World border not enabled or not in valid position!"); } |