summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java
diff options
context:
space:
mode:
authorbobby29831 <bobby29831@gmail.com>2022-05-13 12:01:31 -0500
committerbobby29831 <bobby29831@gmail.com>2022-05-13 12:01:31 -0500
commit2f4ca0d0f949f38f1d4c1512edeb9b32b80171f7 (patch)
treeb2ee6a9f40f2b0bf997b933b75a220d728a2f354 /src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java
parentrefactor: break apart over saturated EventListener.java (diff)
downloadkenshinshideandseek-2f4ca0d0f949f38f1d4c1512edeb9b32b80171f7.tar.gz
kenshinshideandseek-2f4ca0d0f949f38f1d4c1512edeb9b32b80171f7.tar.bz2
kenshinshideandseek-2f4ca0d0f949f38f1d4c1512edeb9b32b80171f7.zip
refactor: general improvements, fix spacing inconsistencies
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java b/src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java
index 8b578f0..e049a8e 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/SetBorder.java
@@ -31,15 +31,15 @@ import static net.tylermurphy.hideAndSeek.configuration.Localization.message;
public class SetBorder implements ICommand {
public void execute(CommandSender sender, String[] args) {
- if(Game.status != Status.STANDBY) {
+ if (Game.status != Status.STANDBY) {
sender.sendMessage(errorPrefix + message("GAME_INPROGRESS"));
return;
}
- if(spawnPosition == null) {
+ if (spawnPosition == null) {
sender.sendMessage(errorPrefix + message("ERROR_GAME_SPAWN"));
return;
}
- if(args.length < 3) {
+ if (args.length < 3) {
worldborderEnabled = false;
addToConfig("worldBorder.enabled",false);
saveConfig();
@@ -60,11 +60,11 @@ public class SetBorder implements ICommand {
sender.sendMessage(errorPrefix + message("WORLDBORDER_INVALID_INPUT").addAmount(args[2]));
return;
}
- if(num < 100) {
+ if (num < 100) {
sender.sendMessage(errorPrefix + message("WORLDBORDER_MIN_SIZE"));
return;
}
- if(change < 1) {
+ if (change < 1) {
sender.sendMessage(errorPrefix + message("WORLDBORDER_CHANGE_SIZE"));
return;
}
@@ -73,7 +73,7 @@ public class SetBorder implements ICommand {
newWorldborderPosition.setX(player.getLocation().getBlockX());
newWorldborderPosition.setY(0);
newWorldborderPosition.setZ(player.getLocation().getBlockZ());
- if(spawnPosition.distance(newWorldborderPosition) > 100) {
+ if (spawnPosition.distance(newWorldborderPosition) > 100) {
sender.sendMessage(errorPrefix + message("WORLDBORDER_POSITION"));
return;
}