From 0f1d49ba80a7658ebd6aa780bbbdfc8f3d930a2e Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Thu, 3 Nov 2022 21:03:59 -0400 Subject: 1.7.0 beta 4 --- .../java/net/tylermurphy/hideAndSeek/command/map/set/Border.java | 7 ++++--- .../java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java | 5 +++-- .../java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java | 7 ++++--- .../net/tylermurphy/hideAndSeek/command/map/set/SeekerLobby.java | 7 ++++--- .../java/net/tylermurphy/hideAndSeek/command/map/set/Spawn.java | 7 ++++--- 5 files changed, 19 insertions(+), 14 deletions(-) (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/map/set') diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Border.java b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Border.java index 92339b4..1b59abc 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Border.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Border.java @@ -25,6 +25,7 @@ import net.tylermurphy.hideAndSeek.configuration.Map; import net.tylermurphy.hideAndSeek.configuration.Maps; import net.tylermurphy.hideAndSeek.game.util.Status; import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; import java.util.Collections; import java.util.List; @@ -99,11 +100,11 @@ public class Border extends Command { } public String getDescription() { - return "Sets worldboarder's center location, size in blocks, and delay in minutes per shrink. Add no arguments to disable."; + return "Sets a maps world border information"; } - public List autoComplete(String parameter) { - if(parameter != null && parameter.equals("map")) { + public List autoComplete(@NotNull String parameter, @NotNull String typed) { + if(parameter.equals("map")) { return Maps.getAllMaps().stream().map(net.tylermurphy.hideAndSeek.configuration.Map::getName).collect(Collectors.toList()); } return Collections.singletonList(parameter); diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java index 9896389..1adfc59 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java @@ -25,6 +25,7 @@ import net.tylermurphy.hideAndSeek.configuration.Map; import net.tylermurphy.hideAndSeek.configuration.Maps; import net.tylermurphy.hideAndSeek.game.util.Status; import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; import java.util.List; import java.util.stream.Collectors; @@ -102,8 +103,8 @@ public class Bounds extends Command { return "Sets the map bounds for the game."; } - public List autoComplete(String parameter) { - if(parameter != null && parameter.equals("map")) { + public List autoComplete(@NotNull String parameter, @NotNull String typed) { + if(parameter.equals("map")) { return Maps.getAllMaps().stream().map(net.tylermurphy.hideAndSeek.configuration.Map::getName).collect(Collectors.toList()); } return null; diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java index c691787..f2395f1 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java @@ -24,6 +24,7 @@ import net.tylermurphy.hideAndSeek.command.location.LocationUtils; import net.tylermurphy.hideAndSeek.command.location.Locations; import net.tylermurphy.hideAndSeek.configuration.Maps; import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; import java.util.List; import java.util.stream.Collectors; @@ -45,11 +46,11 @@ public class Lobby extends Command { } public String getDescription() { - return "Sets hide and seeks lobby location to current position"; + return "Sets the maps lobby location"; } - public List autoComplete(String parameter) { - if(parameter != null && parameter.equals("map")) { + public List autoComplete(@NotNull String parameter, @NotNull String typed) { + if(parameter.equals("map")) { return Maps.getAllMaps().stream().map(net.tylermurphy.hideAndSeek.configuration.Map::getName).collect(Collectors.toList()); } return null; diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/SeekerLobby.java b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/SeekerLobby.java index 2521f19..ebbef1c 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/SeekerLobby.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/SeekerLobby.java @@ -5,6 +5,7 @@ import net.tylermurphy.hideAndSeek.command.location.LocationUtils; import net.tylermurphy.hideAndSeek.command.location.Locations; import net.tylermurphy.hideAndSeek.configuration.Maps; import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; import java.util.List; import java.util.stream.Collectors; @@ -34,11 +35,11 @@ public class SeekerLobby extends Command { } public String getDescription() { - return "Sets hide and seeks seeker lobby location to current position"; + return "Sets the maps seeker lobby location"; } - public List autoComplete(String parameter) { - if(parameter != null && parameter.equals("map")) { + public List autoComplete(@NotNull String parameter, @NotNull String typed) { + if(parameter.equals("map")) { return Maps.getAllMaps().stream().map(net.tylermurphy.hideAndSeek.configuration.Map::getName).collect(Collectors.toList()); } return null; diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Spawn.java b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Spawn.java index 3e8f77e..c954876 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Spawn.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Spawn.java @@ -26,6 +26,7 @@ import net.tylermurphy.hideAndSeek.configuration.Maps; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.util.Vector; +import org.jetbrains.annotations.NotNull; import java.util.List; import java.util.stream.Collectors; @@ -66,11 +67,11 @@ public class Spawn extends Command { } public String getDescription() { - return "Sets hide and seeks spawn location to current position"; + return "Sets the maps game spawn location"; } - public List autoComplete(String parameter) { - if(parameter != null && parameter.equals("map")) { + public List autoComplete(@NotNull String parameter, @NotNull String typed) { + if(parameter.equals("map")) { return Maps.getAllMaps().stream().map(net.tylermurphy.hideAndSeek.configuration.Map::getName).collect(Collectors.toList()); } return null; -- cgit v1.2.3-freya