summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-11-03 21:03:59 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-11-03 21:03:59 -0400
commit0f1d49ba80a7658ebd6aa780bbbdfc8f3d930a2e (patch)
tree41eb635d8cab7ed274d8ec41798106d300f96196 /src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java
parent1.7.0 beta 3 (diff)
downloadkenshinshideandseek-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/Lobby.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/map/set/Lobby.java7
1 files changed, 4 insertions, 3 deletions
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<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;