summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-05-14 10:27:16 -0400
committerGitHub <noreply@github.com>2022-05-14 10:27:16 -0400
commit6ec675b8bedeabd72406a96914623c54c513ecf9 (patch)
tree38fa53d6d4ae8e3ca87a92f63c66e920baba7f67 /src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSpawnLocation.java
parentbetter spectator flight and teleporting (diff)
parentrefactor: clean up typos, improperly named variables (diff)
downloadkenshinshideandseek-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.java2
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!");
}