Coder Social home page Coder Social logo

nuytemans-dieter / bettersleeping Goto Github PK

View Code? Open in Web Editor NEW
84.0 84.0 73.0 103.25 MB

A Spigot plugin that will make sleeping on servers less of a hassle

Home Page: https://www.spigotmc.org/resources/bettersleeping-1-12-1-15.60837/

License: Apache License 2.0

Java 100.00%
better bettersleeping minecraft minecraft-plugin sleeping spigot spigot-plugin

bettersleeping's Introduction

Hello there Obi Wan

Currently working on ๐Ÿ”ญ

ย nuytemans-dieter

View BetterSleeping stats

BetterSleeping stats graph

bettersleeping's People

Contributors

5idereal avatar abhithedev200 avatar cype-dev avatar dependabot[bot] avatar eason329 avatar github-actions[bot] avatar ivillager avatar jonmagon avatar jt122406 avatar lostdusty avatar lucas-luchack avatar nuytemans-dieter avatar rainbowdashlabs avatar villermen avatar vladoliinyk avatar xenapte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bettersleeping's Issues

Bettersleeping.bypass edge case

When all online players have got bypass permissions, the night cannot be skipped. A solution should be found (ex: a command they can execute)

Disable message

Add the ability for players to disable a specific message (command for players, something like: /bs hide message_name). This will be player specific (player x disables a message but player y still receives that message).

Not sleeping debuffs

Give players (configurable) temporary debuffs for not sleeping for a long period of time (Poison, mining fatigue, slowness, spawn monster...).

Perform testing before pushing the update

Just in case anyone is following the progress of this milestone: all should be finished but testing still needs to be done.
Adjustments may be made to improve the UX.
Bugs may still be found and fixed.

Countdown timer

A countdown timer that counts down to nighttime, when people will be able to sleep. This way, the players are prepared.

Edit: This should be an option (default: false). When set to false, there should be no impact on server performance.

cancelled message is being sent when time is set to day

Not sure if anyone else is having this issue, but with I have BetterSleeping with multiworld support on, and the "cancelled" message is being sent after it already has turned to day. Not sure if this was always there or if it just appeared. Running 1.14.4 Paper Spigot. :)

~Zachrocks22 on Spigot

New tag <total_amount>

A tag that is replaced by the total amount of players that should be sleeping to skip the night or storm.

Sleeping buffs

Players that have slept receive temporary buffs for (Healing, filling food bar, speed, etc...).

Buffs loading issue

I cant tell if anyone else is having this issue, when i set the buff level to 1 its giving the players the second level of that buff instead of the first, eg.
Makes the player run faster
speed:
time: 9600
level: 1
gives the player speed 2 for 8 minutes, this is happening to all of the buffs and i have no idea how to fix it

~Seymo5 on Spigot

More placeholders

    TAG       |     replaced by:
<username>    ~ The username of the person that did an action (CANCELLED)
<receiver>    ~ The username of the user that receives the message (PLANNED)

Cancelled

How do I disable the cancelled message? I tried leaving it as blank and typing ignored but it didn't work

Reload compatibility with PEX and deluxechat

Upon /bs reload, the chat colors of pex and deluxechat break as stated by a user's bug report. A server restart or reload did fix the issues.
Presumably, it breaks configuration of all other plugins but no further data is available at this moment.

On screen messages

Allow BetterSleeping messages to appear on screen (but not in chat). This will prevent spam.

Slow messages

An option that will reduce the amount of messages sent by BetterSleeping.
Example: every x amount of people that go to bed, will be broadcast instead of after every person that goes to bed.

Add PAPI support

PlaceholderAPI, to bring lang customisation to a higher level.

Simplify YAML files

Currently there are a lot of comments in the config files.
This is great to explain everything but they could and should be simplified a bit!

ConfigAPI improvements

If a configuration option is not found, the default value will be used. But in an ideal scenario, the missing option should be written to the default file. Server owners/admins wouldn't have to delete YAML file(s) anymore when new options are added.
Alternatively, missing configuration options can be reported to the console upon startup.

Easy language customization

Add a lang option in config.yml. This will load a default lang file.
Example, in config.yml:
lang: "EN" or lang "NL"
The next reload or /bs reload will replace lang.yml with the content of the chosen language file

Ignoring sleep_delay

Hi, I have an issue where when the last person required to sleep enters their bed the server immediately jumps to day, ignoring the 'sleep_delay' in the config. I have set this to various numbers with no change. It's especially weird when there's only one person on the server (when I first tested the plugin) as you don't appear to even get in the bed.

Hoping this is something you can fix. Thanks.

Config reset command

A new command /bettersleeping reset. That will reset the configuration files.
By default only OPs can use this command. bettersleeping.reset will be the permission.

New placeholder: <user>

This tag will be replaced by the user that did an action, example: "user_x left their bed".

Expand 'enough_sleeping'

Expand 'enough_sleeping' in lang.yml to include how long the players have to wait before the night/storm is skipped (dependent on 'sleep_delay' in config.yml).

Storm skip delay

If a storm (not night) is skipped, there is a slightly longer delay before players are kicked out of their bed by the game. To fix this BetterSleeping should perform a check and if there is a storm during the day when players sleep and subtract the extra wait time from the sleep_delay. This way, the configured time will be maintained (unless it is set to a low wait time).

Sound effects

Add sound effects to notify players:
-You can sleep now
-Someone entered their bed
-Someone left their bed
-...

Refactor Management

Management should be split into LangManagement, ConfigManagement and BuffManagement.
This will give a better overview.

Support for plural/singular words in lang.yml

To remain configurability and provide grammatical correct messages, this will be included in lang.yml.
Words can be tagged with a singular and plural version as follows: <singular.plural>
For example:
old: " players are needed!"
new: " <player.players> are needed!"

BetterSleeping will now automatically grab the correct word.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.