diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-08-16 20:10:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 20:10:36 -0400 |
commit | 725db2875c3ddb7829ebe8f7e68886eec83337f9 (patch) | |
tree | 12d39d7e1e2c09e0db81c7c3d1313ec79b01991a /src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java | |
parent | Merge pull request #72 from tylermurphy534/1.6.0 (diff) | |
parent | delayed respawn (diff) | |
download | kenshinshideandseek-725db2875c3ddb7829ebe8f7e68886eec83337f9.tar.gz kenshinshideandseek-725db2875c3ddb7829ebe8f7e68886eec83337f9.tar.bz2 kenshinshideandseek-725db2875c3ddb7829ebe8f7e68886eec83337f9.zip |
Merge pull request #76 from tylermurphy534/1.6.1
1.6.1
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/command/location/SetSeekerLobbyLocation.java | 31 |
1 files changed, 31 insertions, 0 deletions
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"; + } + +} |