Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplayer sleep #86

Open
daretmavi opened this issue Feb 12, 2024 · 4 comments
Open

Multiplayer sleep #86

daretmavi opened this issue Feb 12, 2024 · 4 comments
Labels
status: unverified This issue needs to be reviewed

Comments

@daretmavi
Copy link

Expected behavior

Should work if activated

Observed/Actual behavior

I have to change playersSleepingPercentage gamerule manually to activate it.

Steps/models to reproduce

  • add plugin
  • enable multiplayer-sleep in modules.yml
  • login with at least 2 players
  • try to sleep
  • I get the chat message, that only one player is sleeping

Plugin and Datapack List

Server Plugins (24):
Paper Plugins:

  • PaperTweaks
    Bukkit Plugins:
  • BetterEconomy, Bookshelf, BooksWithoutBorders, BurgerHud, CustomCompass, dynmap, EzChestShop, FastChunkPregenerator, FastLogin, Graves, GriefPrevention, InteractionVisualizer, InvisibleItemFrames, LittleComposter, LuckPerms, NotTooExpensive, ProtocolLib, SkinsRestorer, TreeFeller, UserLogin, Vault, ViewDistanceTweaks, WanderingTrades

There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [file/LightBlockEditor.zip (world)]

Server Version Info

paper-1.20.4-422

Plugin Version

0.4.1

Other

No response

@daretmavi daretmavi added the status: unverified This issue needs to be reviewed label Feb 12, 2024
@Machine-Maker
Copy link
Member

The gamerule is how the percentage is controlled. If the percentage is still 100, then of course it won't do anything as it still requires all players to be sleeping. What do you think should happen when it's activated? I don't think it's a good idea to arbitrarily change the playersSleepingPercentage gamerule if someone has the module enabled.

@daretmavi
Copy link
Author

Why not?
If I activate this module, then I expect that only one player has to sleep - this means it should change the rule, if it is the way how it works.
If I deactivate it, then the rule should change back to default.
What other meaning should this module have?

@Machine-Maker
Copy link
Member

The module is configurable tho. It isn't always the case that if the module is active, sleeping should work with only 1 person. It is configurable so that half the players are sleeping, or 3/4 or any fraction of the online players. So just saying if the module is enabled, set the sleeping percent to 1 (so 1 player can sleep) doesn't cover all the use cases.

@daretmavi
Copy link
Author

Ok, I misunderstood the function.
No problem, I'll just turn it off and use VanilaTweaks.

You could eventually add the sleepers % in the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: unverified This issue needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants