Inactive [MECH/INFO] Bedtime 1.2.3 - Ignore idlers and see who isn't sleeping [1.3.1-R2]

Discussion in 'Inactive/Unsupported Plugins' started by TexasGamer, Jun 25, 2011.

  1. Offline

    TexasGamer

    Bedtime is now on BukkitDev! Click here to visit.
    Bedtime 1.2.3
    Tired of yelling when one user won't go to bed? Now you can see who needs to sleep. Any user who hasn't moved or talked in the last minute will not need to go to bed. (Inspired by a feature on sk89q's server.)
    • Commands
      • bed
        • See who is not in a bed (and isn't idle)
        • bedtime.bed
      • idle
        • Manually set yourself as "idle" (use again to mark as active)
        • bedtime.idle
      • bedtime
        • See version and Permissions info
        • No Permissions node
    • Other
      • bedtime.*
        • Grants permission for permission nodes except bedtime.ignore
      • Set a user as always idle
        • bedtime.ignore
      • Config file
        • Time in milliseconds
        • Custom command to be ran on idle (set to "missingno" to disable)
    Download
    Bedtime 1.2.3 (older downloads)
    Requirements: Java 6+, recent Bukkit build
    [​IMG]

    Version history
    • 1.2.3
    • 1.2.2
      • Tweak: Add compatibility for Minecraft 1.2+
        • New config file and event handling...
      • Compatibility: 1.1-R6
    • 1.2.1
      • Fix: Issues when not using the "command on idle" feature
        • Change the run-on-idle config option to "missingno" to disable the feature
        • You may also delete and regenerate the config file for the fix to take affect
      • Compatibility: 1337-1.1-R4*
    • 1.2
      • Addition: BukkitPermissions support
      • Addition: MultiWorld support
      • Addition: Ability to run a command when idle
      • Removal: Permissions 3.x support
      • Removal: bedtime.idle.ignore permissions node
      • Fix: /bed output
      • Fix: Auto unidling
      • Fix: bedtime.ignore errors
      • Tweak: Added more player listeners for more accurate tracking
      • Compatibility: 1060-1097*
    • 1.1.1
      • Addition: Permissions system that is being used is now reported in the console
      • Fix: Stopped NullPointerExceptions when using NPCs on the server
      • Fix: Idle users who aren't sleeping and won't be teleported and won't get attacked by mobs
        • Credit to Lhivorde and the poor souls on darkcloud784's server for the theories and help!
      • Compatibility: 1000-1060*
    • 1.1
      • Addition: Configuration file to set time until marked idle
        • Time in milliseconds
      • Addition:Permission node that excludes users from being marked idle
        • bedtime.idle.ignore
      • Addition:Permission node that excludes users from needing to be in bed
        • bedtime.ignore
      • Fix: "You are idle" spam bug
      • Tweak: /bed output uses commas logically
      • Compatibility: 953-1000*
    • 1.0
      • Initial release
      • Compatibility: 953*
    Coming soon...
    • ...nothing yet!
    *Compatibility is only what I can guarantee and what I have tested that specific version with.

    Bugs?
     
    EdGruberman likes this.
  2. Offline

    darkcloud784

    This is deceiving.... Github and your post says 935 but the title says 953.......
     
  3. Offline

    Poeschl

    It works with #353, but the "marked as idle"-hint spams the console.
     
  4. Offline

    TexasGamer

    I fixed this in 1.1. Expect the update to come out tomorrow.

    The plugin is compatible with 953. I fixed the typo. :)

    Bedtime 1.1 (older downloads)
    Requirements: Java 6+, Bukkit build 935
    [​IMG]

    Changes
    • 1.1
      • Addition: Configuration file to set time until marked idle
        • Time in milliseconds
      • Addition: Permission node that excludes users from being marked idle
      • Addition: Permission node that excludes users from needing to be in bed
      • Fix: "You are idle" spam bug
      • Tweak: /bed output uses commas logically
      • Compatibility: 953-1000*

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  5. Offline

    darkcloud784

    Bugs?
    Following these steps will help make the process of resolving the issue much quicker. :)
    1. Make sure you are on the latest recommended build (and that Bedtime supports it)
    2. If the issue persists, please post the following in this thread or on GitHub
    • Bukkit build #:
    • Version of plugin:
    • Permissions (yes/no):
    • Permissions version (if applicable)
    • Plugins:
    • In-game error (if applicable):
    • Console error (if applicable):
    [/quote]

    Build 1000

    1.1

    yes

    Permissions 935

    Modtrs
    bedtime
    permissions
    worldguard
    bigbrother
    LWC
    mobile admin
    iconomy
    iconomychestshop
    showcase
    dynmap
    citizens
    spyer
    nocheat
    Hero Chat
    Commandbook
    tips
    Bulletin Board Bridge
    Worldedit
    Landmarks
    Statitician
    facepalm
    blift
    seasons
    mcbans
    chaircraft
    minecraftviewer

    no ingame errors



    Code:
    2011-07-20 09:40:25 [INFO] [BBROTHER] Removed 0 old records because of age in 0h00m00s.
    2011-07-20 09:40:31 [INFO] [BBROTHER] Building `ownership` table...
    2011-07-20 09:40:52 [SEVERE] Could not pass event PLAYER_MOVE to Bedtime
    java.lang.NullPointerException
        at main.java.com.texasgamer.bedtime.idleChecker.checkIdle(idleChecker.java:29)
        at main.java.com.texasgamer.bedtime.BedtimePlayerListener.onPlayerMove(BedtimePlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-20 09:40:52 [SEVERE] Could not pass event PLAYER_MOVE to Bedtime
    java.lang.NullPointerException
        at main.java.com.texasgamer.bedtime.idleChecker.checkIdle(idleChecker.java:29)
        at main.java.com.texasgamer.bedtime.BedtimePlayerListener.onPlayerMove(BedtimePlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-20 09:40:53 [SEVERE] Could not pass event PLAYER_MOVE to Bedtime
    java.lang.NullPointerException
        at main.java.com.texasgamer.bedtime.idleChecker.checkIdle(idleChecker.java:29)
        at main.java.com.texasgamer.bedtime.BedtimePlayerListener.onPlayerMove(BedtimePlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-20 09:40:53 [SEVERE] Could not pass event PLAYER_MOVE to Bedtime
    java.lang.NullPointerException
        at main.java.com.texasgamer.bedtime.idleChecker.checkIdle(idleChecker.java:29)
        at main.java.com.texasgamer.bedtime.BedtimePlayerListener.onPlayerMove(BedtimePlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-20 09:40:53 [SEVERE] Could not pass event PLAYER_MOVE to Bedtime
    java.lang.NullPointerException
        at main.java.com.texasgamer.bedtime.idleChecker.checkIdle(idleChecker.java:29)
        at main.java.com.texasgamer.bedtime.BedtimePlayerListener.onPlayerMove(BedtimePlayerListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    I think your plugin doesnt like bigbrother
     
  6. Offline

    TexasGamer

    Thanks for the bug report. I'll try messing with BigBrother on my local test server to see if I get similar results. :)

    Update #1: With BigBrother installed, the issue could not be replicated. I'll try out a few other combinations and possibly try to create a patch for the bug.

    Update #2: I think the issue is with Permissions and how I have set the plugin to handle them. I will test and update this post. This plugin is compatible with BigBrother.

    Update #3: Permissions is borked up on my machine. I'm trying to fix and will try to get an update out today.

    Update #4: After continued testing, the reported issue could not be reproduced. I'm in the process of discussing the bug via PM.

    Update #5: Testing a snapshot build to see if the bug is fixed.

    Update #6: The bug is confirmed to be fixed. A minor update is scheduled for tomorrow.
     
  7. Offline

    darkcloud784

    I was too soon to report it fixed - the error is fixed but now it tp's people back to their houses when someone sleeps.
     
  8. Offline

    TexasGamer

    Odd... the plugin doesn't have any teleportation features. It only tells the server who to ignore when people go to bed.

    Is the error still the same? Are there any other bed-related plugins installed?
     
  9. Offline

    darkcloud784


    Plugin list is still the same, I thought it was odd too - not sure if its fowarding it to another plugin that is handling the function maybe? No idea. Ive just got reports from multiple members of my server and I didnt even tell them about the plugin. I'm attempting to see if its something else but just seems weird it just started doing this after I changed the plugins.


    Edit: sorry about my late responses, my daughter likes to pull me away from my computer to play.
     
  10. Offline

    TexasGamer

    Don't worry about your response time. I'm busy as well so I understand.

    Anyways, I've tried reverting one of the changes I made to the snapshot build from yesterday. Hopefully it will work, but no guarantees. Let me know if anything changes.

    [LINK REMOVED]
     
  11. Offline

    darkcloud784

    I'll try it out for a while and see what happens. Thx

    Yea now I'm getting reports of people tping to their beds and getting swarmed by mobs.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  12. Offline

    TexasGamer

    After hours of testing and debugging, I finally fixed the bug. The next version to be released soon will include the fixes (along with some other stuff).

    Credit to Lhivorde and darkcloud784's server for the theories and help!
     
  13. Offline

    RugRats

    Multiworld?
     
  14. Offline

    TexasGamer

    If you mean separating the plugin functionality by worlds, I can look into adding this to the plugin. At the moment, the plugin should still work with multiple worlds although it's buggy at best.
     
  15. Offline

    RugRats

    Okay :D
     
  16. Offline

    TexasGamer

    Bedtime 1.1.1 (older downloads)
    Requirements: Java 6+, Bukkit build 1000
    [​IMG]

    Version history
    • 1.1.1
      • Addition: Permissions system that is being used is now reported in the console
      • Fix: Stopped NullPointerExceptions when using NPCs on the server
      • Fix: Idle users who aren't sleeping and won't be teleported and won't get attacked by mobs
        • Credit to Lhivorde and the poor souls on darkcloud784's server for the theories and help!
      • Compatibility: 1000*
     
  17. Offline

    clitcomander

    HOW do i set the time to endless, as in the can be idle 4 ever?
     
  18. Offline

    TexasGamer

    To mark a user or group as permanently idle, you can give the permissions node bedtime.ignore.
     
  19. Offline

    JacKlink01

    This doesn't seem to be working... It works for the admin who has '*', but no matter how hard I try, "bedtime.ignore" does not set the users with that perm as idle. They still have to sleep.
     
  20. Offline

    TexasGamer

    Please post all of the information that is listed under the Bugs? section in the OP. Hopefully it will be a quick fix.
     
  21. Offline

    TexasGamer

    Bedtime 1.2 (older downloads)
    Requirements: Java 6+, Bukkit build 1060
    [​IMG]

    Changes
    • 1.2
      • Addition: BukkitPermissions support
      • Addition: MultiWorld support
      • Addition: Ability to run a command when idle
      • Removal: Permissions 3.x support
      • Removal: bedtime.idle.ignore permissions node
      • Fix: /bed output
      • Fix: Auto unidling
      • Fix: bedtime.ignore errors
      • Tweak: Added more player listeners for more accurate tracking
      • Compatibility: 1060*
    A few notes...
    Bedtime 1.2 removes Permissions 3.x support in favor of BukkitPermissions. If you do not wish to use BukkitPermissions, no commands will work (the main auto idling feature, however, will). Permissions nodes are the same except for bedtime.*. This node will give permission for both /bed and /idle but will not grant bedtime.ignore.

    The other major change is the option to run a command on idle. A couple of points:
    • If the line inside the config file is blank, no command will be run
      • This means no quotation marks and single quotes
    • You will need to delete the config.yml file for the new option to appear
    • Command are only run on idle (both auto and by command) not on unidle
    • Permissions restrictions, etc. still apply

    I recommend that you check out PermissionsBukkit. As far as I know, Bukkit's permission system doesn't allow for a fallback if native permissions aren't used. I will look into this, but it's a low priority at the moment as most users use some permissions system.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  22. Offline

    Silentspy

    i have a issue with plugin performing a command even if its set to nothing

    Code:
    time-to-idle: 60000
    run-on-idle: ''
    plugins:
    mcma_compat
    logblock
    nethrar
    spout
    sleepnotify
    worldedit
    worldguard
    healthbar
    binfo
    bchat
    bananalogarchiver

    running bukkit 1060
     
  23. Offline

    TexasGamer

    Is there an error message in the console or does the game say that there is no such command?

    By the way, if you don't want any command to be run, the config file needs to look like:
    Code:
    time-to-idle: 60000
    run-on-idle:
     
  24. Offline

    Silentspy

    aha that explains it... i thought '' as in having it empty would be enough :) thanks either way!

    works now!
     
  25. Offline

    TexasGamer

    I'll clarify this in the OP. I'm glad you are liking it!
     
  26. Offline

    Morrolan

    You might want to even set the default config up to have an empty entry for this, instead of ''. Or set the plugin up to not parse a command which is an empty string only, both will work.
    Either way, was able to fix it quite fast after reading this here. Nice plugin so far. :)
     
  27. Offline

    iiMaXii

    If you stand AFK for some time you will eventually get spammed by "Unkown command [...]" I foun that this is very easy to fix this. Just modify your config.yml and change the value of run-on-idle from '' to null.

    Anyway I really like this plugin, good job! :D
     
  28. Offline

    TexasGamer

    Thanks for the feedback. I will hopefully get a quick fix to solve the issue this weekend. I'm glad you like the plugin!
     
  29. Offline

    TexasGamer

    Bedtime 1.2.1 (older downloads)
    Requirements: Java 6+, recent Bukkit build
    [​IMG]

    Changes
    • 1.2.1
      • Fix: Issues when not using the "command on idle" feature
        • Change the run-on-idle config option to "missingno" to disable the feature
        • You may also delete and regenerate the config file for the fix to take affect
      • Compatibility: 1240
     
    AS1LV3RN1NJA likes this.
  30. Offline

    TexasGamer

    Bedtime 1.2.2 is coming soon with another minor bug fix, code optimization, and support for Bukkit's new configuration system (to help prevent future issues when the deprecated code is removed).

    No new features will be included in the update.
     
    AS1LV3RN1NJA likes this.

Share This Page