JoelGodOfwar / SinglePlayerSleep

SinglePlayerSleep
https://www.spigotmc.org/resources/single-player-sleep.68139/
MIT License
20 stars 8 forks source link

timeout does not work #7

Closed cbergmann closed 5 years ago

cbergmann commented 5 years ago

Hi there,

when one player goes to bed the message is shown but the time transition happens immediately and not after 10 seconds. This way the other playes have no chance of clicking cancel. Currently we are only two players to test and both are Operator/Admin with all permissions.

I use the current plugin Version and CraftBukkit version git-Bukkit-2012f1e (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)

Could you explain this behavior?

Kind Regards Clemens

JoelGodOfwar commented 5 years ago

That is strange behavior, the code is designed to wait longer than the time needed by vanilla minecraft. Even the /sleep command uses a runnable to schedule the event after 10 seconds, that's so that if you are not on MP, or are the only one online, it will work as vanilla. Would you mind setting debug=true in the config.yml, and then try the plugin, and send me the log file containing the debug code?

cbergmann commented 5 years ago

Hi,

I have a log file here. Is it possible to send it to you in private?

JoelGodOfwar commented 5 years ago

send me a private message through bukkit.org, https://dev.bukkit.org/projects/singleplayersleep2 That way your log will be between just the two of us.

cbergmann commented 5 years ago

Hi, Thanks for looking into this. I send you a Link to the Logfile via private Message.

cbergmann commented 5 years ago

Hi,

together with @JoelGodOfwar we could find the Problem. It was not a Problem with this Plugin but with the combination of two other plugins.

I disabled plugins one by one. I found out that the combination of EssentialsX and bpermissions lead to the problem. Then I looked through the permissions page of essentialsx and found the essentials.sleepingignored permission. When I remove this Permissions from the group the sleep works as aspected.

Sorry for the hassle that was not related to your plugin.

Kind regards Clemens