summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/command/Join.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2021-10-31 11:25:27 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2021-10-31 11:25:27 -0400
commit2a526291526811841d02ff813d9b3a7752570b43 (patch)
tree5bbac1fc857d4a87446470f1db5356ec89b64536 /src/main/java/net/tylermurphy/hideAndSeek/command/Join.java
parent1.3.1 build 3 (diff)
downloadkenshinshideandseek-2a526291526811841d02ff813d9b3a7752570b43.tar.gz
kenshinshideandseek-2a526291526811841d02ff813d9b3a7752570b43.tar.bz2
kenshinshideandseek-2a526291526811841d02ff813d9b3a7752570b43.zip
1.3.1 build 4
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/command/Join.java')
-rw-r--r--src/main/java/net/tylermurphy/hideAndSeek/command/Join.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/command/Join.java b/src/main/java/net/tylermurphy/hideAndSeek/command/Join.java
index b3691bf..17b8f7a 100644
--- a/src/main/java/net/tylermurphy/hideAndSeek/command/Join.java
+++ b/src/main/java/net/tylermurphy/hideAndSeek/command/Join.java
@@ -30,6 +30,10 @@ public class Join implements ICommand {
return;
}
+ join(player);
+ }
+
+ public static void join(Player player){
if(Main.plugin.status.equals("Standby")) {
player.getInventory().clear();
Main.plugin.board.addHider(player);
@@ -46,7 +50,7 @@ public class Join implements ICommand {
Main.plugin.board.createGameBoard(player);
player.teleport(new Location(Bukkit.getWorld("hideandseek_"+spawnWorld), spawnPosition.getX(),spawnPosition.getY(),spawnPosition.getZ()));
}
-
+
player.setFoodLevel(20);
player.setHealth(player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getBaseValue());
}