SleepPotion
SleepPotion is a plugin which adds the Potion of Sleeping. Once thrown, all players within the splash radius will be put to sleep for a set period of time (5 seconds, or 10 seconds with an extended potion).
Crafting
The Potion of Sleeping is crafted from a water bottle and wool around it:

The Extended Potion of Sleeping is crafted from a water bottle, redstone around it and wool around that:

Commands (Version 1.1+)
The amount is optional and the <Player> has to be player's name.
To give a player a sleep potion: /sleeppotion give <Player> (amount)
To give a player an extended sleep potion: /sleeppotion giveextend <Player> (amount)
| Command syntax |
Description |
| /sleeppotion give Skepter 5 |
Give Skepter 5 sleep potions |
| /sleeppotion giveextend Skepter |
Give Skepter 1 extended sleep potion |
Permissions
The permissions are relatively simple:
| Potion to craft |
Permission required |
| Potion of Sleeping |
SleepPotion.potion |
| Extended Potion of Sleeping |
SleepPotion.potionExtended |
| Use command |
SleepPotion.command |
Config (Version 1.2+)
The duration for each sleep potion can be changed in the config.yml file, in seconds (Must be whole numbers).
#SleepPotion time adjustments (seconds)
potionTime: 5
extendedPotionTime: 10
Uses
Why use this? Here are a few reasons why you would want a sleeping potion:
- Hunger game maps
- PVP
- Trolling players
Installation
Installing the plugin is as simple as putting the plugin.jar file into your /plugins/ folder and restart/reloading the server.
From version 1.4 onwards, SleepPotion requires ProtocolLib to handle bed packets. ProtocolLib can be downloaded here.
Source
Source code is available on GitHub: here