SinglePlayerSleep2

Because I can't access my old account I had to start this one. I will be updating the plugin for all the versions of minecraft that have come out while I've been gone.

For versions of minecraft older than 1.12 download the appropriate version of SPS for your MC version here... http://dev.bukkit.org/bukkit-plugins/singleplayersleep/

SPS 2.13.32 for minecraft 1.15 is available, see my discord, github or spigotmc.

 

Introduction:

First off, I watch several Hermitcrafters, and after seeing them have issues with their Single Player Sleep command block, rain messes it up. I decided to make this simple plugin.

 

Languages supported:

# Available languages English (en_US), Français (fr_FR), Deutsche (de_DE), Nederlands (nl_NL), 中文 (zh_CN), čeština (cs-CZ), Portuguese (pt_BR), LoL Cat (lol_US).

 

Product Description:

When a player right clicks on a bed, the plugin broadcasts " is sleeping [CANCEL]", if no one clicks on Cancel, then after 10 seconds the plugin will advance the time ahead to the next morning. thus the day and difficulty is not affected. The plugin also checks for storms, and if the player has the permissions, it will clear them. There is also a permission for the Cancel command.

New feature starting 2.13.31, DaySkipper: A player with a Black bed, and the sps.dayskipper permission may skip the day to night, also can require an item named DaySkipper in config.yml.

 

Known conflicts:

I was made aware that EssentialsX's permission "essentials.sleepingignored" conflicts with SPS.

If you're having an issue join my discord

 

 

Permissions:

  sps.hermits:
    description: Allows one player to change the time to day when using a bed. Without clearing local difficulty.
    default: true
  sps.unrestricted:
    description: Allows the player to sleep uninterrupted. Other players will not be able to cancel it.
    default: false
  sps.downfall:
    description: Clears Downfall upon SPS sleep.
    default: true
  sps.thunder:
    description: Clears Thunderstorm upon SPS sleep
    default: true
  sps.cancel:
    description: Allows canceling Single Player Sleep.
    default: true
  sps.command:
    description: Allows player to use the /sleep command, instead of a bed.
    default: op
  sps.update:
    description: Allows the player to check for updates.
    default: op
  sps.op:
    description: Overrides all permissions.
    default: false

If the player is the only one player online, then the bed functions as normal, since the sleep function works before the 10 second delay.

 

config.yml:

# Change to false to stop auto-update-check.
auto-update-check: true

# If true this will disable all broadcast messages and allow anyone to sleep.
unrestrictedsleep: false

# Set the color of the players name in the broadcast messages.
# NOTE: If you change the players display name color using other plugins then you should set this to "NONE".
namecolor: NONE

# Set the color of the [CANCEL] link text in broadcast messages. Format RED
# Colors: AQUA, BLACK, GOLD, GRAY, BLUE, GREEN, RED, YELLOW, WHITE
# DARK_AQUA, DARK_BLUE, DARK_GRAY, DARK_GREEN, DARK_RED, DARK_PURPLE, LIGHT_PURPLE
# MAGIC, BOLD, STRIKETHROUGH, UNDERLINE, ITALIC, RESET
cancelcolor: RED
# Sleep message color, use either YELLOW
sleepmsgcolor: YELLOW
# Player name color, use either WHITE
playernamecolor: WHITE

# Set to true to broadcast "<player> canceled sleep."
# Set to false not to broadcast that message.
cancelbroadcast: true

# Set the time limit in seconds which a player must wait between attempting to sleep again.
# This prevents a user from spamming chat with sleep messages.
# Set to 0 to disable.
sleeplimit: 60

# Set to true before sending a log about an issue.
# Logs trace data required to pinpoint where errors are.
debug: false

# Set the language to use, check inside lang.yml for the available translations.
lang: en_US

# Set to true to use random sleep msgs.
randomsleepmsgs: true

# Set to the number of sleep msgs
numberofsleepmsgs: 4
# Set msgs for random sleep msgs here "sleepmsg#: <player> msg here"
# Don't forget the space between : and the start of the message.
sleepmsg1: <player> is sleeping
sleepmsg2: <player> went to bed. Sweet dreams
sleepmsg3: Shhh! <player> is trying to sleep!
sleepmsg4: <player> is asleep at the wheel

# Available languages English (en_US), Français  (fr_FR), Deutsche (de_DE), Nederlands (nl_NL), 中文 (zh_CN), čeština (cs-CZ), Portuguese  (pt_BR), LoL Cat (lol_US).

 

As of v2.13.27

Uses bStats to collect usage data, can be disabled.

If you want to see what kinds of data is collected check out bStats

 

Contributing:

This plugin is open source; you can view the source code on github. Feel free to open issues there or submit pull requests.

 

If you like this, check out my other plugin, SinglePlayerSleep, NoEndermanGrief, PortalHelper, and DragonDropElytra.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    323851
  • Created
    Jun 8, 2019
  • Last Released File
    Dec 3, 2019
  • Total Downloads
    11,396
  • License

Categories

Members

Recent Files