diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-03 21:03:59 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-03 21:03:59 -0400 |
commit | 0f1d49ba80a7658ebd6aa780bbbdfc8f3d930a2e (patch) | |
tree | 41eb635d8cab7ed274d8ec41798106d300f96196 /src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java | |
parent | 1.7.0 beta 3 (diff) | |
download | kenshinshideandseek-0f1d49ba80a7658ebd6aa780bbbdfc8f3d930a2e.tar.gz kenshinshideandseek-0f1d49ba80a7658ebd6aa780bbbdfc8f3d930a2e.tar.bz2 kenshinshideandseek-0f1d49ba80a7658ebd6aa780bbbdfc8f3d930a2e.zip |
1.7.0 beta 4
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Bounds.java | 5 |
1 files changed, 3 insertions, 2 deletions
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<String> autoComplete(String parameter) { - if(parameter != null && parameter.equals("map")) { + public List<String> 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; |