Skip to content

Commit

Permalink
Add impl to SLEEP
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Aug 8, 2019
1 parent 2322cac commit 0c3d998
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import net.citizensnpcs.trait.ArmorStandTrait;
import net.citizensnpcs.util.NMS;
import net.citizensnpcs.util.PlayerAnimation;
import net.minecraft.server.v1_14_R1.BlockPosition;
import net.minecraft.server.v1_14_R1.EntityPlayer;
import net.minecraft.server.v1_14_R1.EnumHand;
import net.minecraft.server.v1_14_R1.Packet;
Expand Down Expand Up @@ -74,7 +75,8 @@ public void run() {
}.runTaskTimer(CitizensAPI.getPlugin(), 0, 1);
break;
case SLEEP:
throw new UnsupportedOperationException(); // TODO
player.sleep(new BlockPosition(player));
break;
case SNEAK:
player.getBukkitEntity().setSneaking(true);
sendPacketNearby(new PacketPlayOutEntityMetadata(player.getId(), player.getDataWatcher(), true), player,
Expand Down

0 comments on commit 0c3d998

Please sign in to comment.