From d64dce4a26b69d202f9d2943da8da0d3bc9ddad2 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Tue, 9 Aug 2022 13:43:20 -0400 Subject: block solidify time, seeker lobby --- .../command/location/SetSeekerLobbyLocation.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java') diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java b/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java new file mode 100644 index 0000000..c6c3ccb --- /dev/null +++ b/src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java @@ -0,0 +1,31 @@ +package net.tylermurphy.hideAndSeek.command.location; + +import net.tylermurphy.hideAndSeek.command.ICommand; +import net.tylermurphy.hideAndSeek.command.location.util.LocationUtils; +import net.tylermurphy.hideAndSeek.command.location.util.Locations; +import org.bukkit.entity.Player; + +import static net.tylermurphy.hideAndSeek.configuration.Config.*; + +public class SetSeekerLobbyLocation implements ICommand { + + public void execute(Player sender, String[] args) { + LocationUtils.setLocation(sender, Locations.SEEKER, vector -> { + seekerLobbyWorld = sender.getLocation().getWorld().getName(); + seekerLobbyPosition = vector; + }); + } + + public String getLabel() { + return "setseekerlobby"; + } + + public String getUsage() { + return ""; + } + + public String getDescription() { + return "Sets hide and seeks seeker lobby location to current position"; + } + +} -- cgit v1.2.3-freya