Code Monkey home page Code Monkey logo

bettersleeping's Issues

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.

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).

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

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.

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

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).

Cancelled

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

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.

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.

Add PAPI support

PlaceholderAPI, to bring lang customisation to a higher level.

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.

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.

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

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.

Sleeping buffs

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

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).

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.

New placeholder: <user>

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

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!

On screen messages

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

Sound effects

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

Not sleeping debuffs

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

Refactor Management

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

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)

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)

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.

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.