promotional bannermobile promotional banner

SleepPotion

Use the potion of sleeping to send your foes to sleep
<p>SleepPotion Logo</p>

SleepPotion Logo

<p>SleepPotion Logo</p>

SleepPotion Logo

Description

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:

Potion of Sleeping

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

Extended Potion of Sleeping

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

The SleepPotion Team

profile avatar
Owner
  • 12
    Projects
  • 41.7K
    Downloads

More from sxepterView all

  • SilkChests project image

    SilkChests

    • 3.1K
    • Bukkit Plugins

    Break chests with silk touch items and gain a silk chest

    • 3.1K
    • April 14, 2016
    • Bukkit Plugins
    • +1
  • FirstTimeCommand project image

    FirstTimeCommand

    • 422
    • Bukkit Plugins

    Run set commands when a new player joins the game!

    • 422
    • June 13, 2014
    • Bukkit Plugins
  • BoneMeal4Mobs project image

    BoneMeal4Mobs

    • 7.3K
    • Bukkit Plugins

    Ever wanted to make baby mobs grow faster? Or make Giants from Zombies? Now you can with BoneMeal4Mobs!

    • 7.3K
    • June 12, 2014
    • Bukkit Plugins
  • MobBows project image

    MobBows

    • 4.6K
    • Bukkit Plugins

    Fire mobs with bows at your will!

    • 4.6K
    • June 7, 2014
    • Bukkit Plugins
    • +1
  • SilkChests project image

    SilkChests

    • 3.1K
    • Bukkit Plugins

    Break chests with silk touch items and gain a silk chest

    • 3.1K
    • April 14, 2016
    • Bukkit Plugins
    • +1
  • FirstTimeCommand project image

    FirstTimeCommand

    • 422
    • Bukkit Plugins

    Run set commands when a new player joins the game!

    • 422
    • June 13, 2014
    • Bukkit Plugins
  • BoneMeal4Mobs project image

    BoneMeal4Mobs

    • 7.3K
    • Bukkit Plugins

    Ever wanted to make baby mobs grow faster? Or make Giants from Zombies? Now you can with BoneMeal4Mobs!

    • 7.3K
    • June 12, 2014
    • Bukkit Plugins
  • MobBows project image

    MobBows

    • 4.6K
    • Bukkit Plugins

    Fire mobs with bows at your will!

    • 4.6K
    • June 7, 2014
    • Bukkit Plugins
    • +1