[ADMN/GEN] SimpleTime v4.3 - Simply change/stop the time and change the weather in seconds! [1000]

Discussion in 'Inactive/Unsupported Plugins' started by The Angry kat, Jun 25, 2011.

  1. Offline

    The Angry kat

    [​IMG]
    SimpleTime v5.0
    About:
    Simply change the time and weather in seconds! Commands below
    The /play command reloads the server because I cannot find a way to code in a proper pauser, I hope this doesn't cause any problems.
    Commands:

    • /day - Sets the time to Day
    • /night - Sets the time to Night
    • /sunrise - Sets the time to Sunrise
    • /sunset - Sets the time to Sunset
    • /pause - Stops the time
    • /play - Stops stopping the time
    • /sun - Makes the weather sunny
    • /storm - Makes the weather stormy
    • /thunder - Makes the clouds thunder
    • /sthelp - Displays the list of commands
    • /stversion - Displays the current version of SimpleTime
    How to use:



    Permission Nodes:

    • simpletime.* - Allows use of all commands
    • simpletime.day - Allows use of /day
    • simpletime.night - Allows use of /night
    • simpletime.sunrise - Allows use of /sunrise
    • simpletime.sunset - Allows use of /sunset
    • simpletime.sun - Allows use of /sun
    • simpletime.storm - Allows use of /storm
    • simpletime.thunder - Allows use of /thunder
    • simpletime.rain - Allows use of /rain or /snow
    • simepltime.help - Allows use of /sthelp
    • simpletime.version - Allows use of /stversion
    Known Bugs:

    Report them on the thread or pm me.
     
  2. Offline

    The Angry kat

    Your welcome :) I forgot this doesn't mess up redstone lol

    And I am gonna make permissions more easy to use with this

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

    andreblue

    sk89q's time lock messes with redstone, last i heard he said he was getting round to it lol
     
  4. Offline

    The Angry kat

    VERSION 2.3
    Fixed my typo's GRRRR
     
  5. Offline

    nateD

    Hi, nice plugin :)

    but, there is a server error when people without permission node uses any of your command instead of "you have no permission to do that" (or similar).

    Code:
    2011-07-08 21:26:29 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'day' in plugin SimpleTime v2.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        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)
    Caused by: java.lang.NullPointerException
        at me.The_Angry_Kat.SimpleTime.SimpleTime.has(SimpleTime.java:123)
        at me.The_Angry_Kat.SimpleTime.SimpleTime.onCommand(SimpleTime.java:43)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    The same happens when an authorized person enters the /play command, when the time is not stopped. If this happens (error after /play command) I can't change time anymore, i see "it is now Night Time!", time is changed for about 1s, and then back to day again.

    Without Permission plugin, non-OP players can't use commands (and it's fine) but everyone can see their commnads on chat as a normal text.

    CB953, Permissions 3.1.5, SimpleTime 2.3
     
  6. Offline

    The Angry kat

    Just added a how to video

    Thanks for the report, i will look into this

    Version 3.0
    - Fixed permission errors

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

    Flenix

    Potential bug:

    I did /Pause, and it paused time for a few hours as I wanted, but when I went to another world and came back it was the middle of the day.

    I'm trying to make this world so its always quite dark but not the middle of the night (still want the orange glow at the edge)
     
  8. Offline

    zookalicious

    Before reading this, I'm using [860] and 1.6.6, so if these errors are caused because I haven't updated (yet) than ignore them.


    I like this a lot so far but there are a couple things which are somewhat of big hangups:
    1) On my server, even if I enable full permissions for a user, they cannot use this unless they are OP. If they have the permissions for this command, they shouldn't need to be in the OP file. [edit: I don't want some people in my OP file because then they can stop and reload the server from the command line. I just want them to be able to change the time of day when they're working by themselves.]

    That's the major thing, and a slight minor thing is being unable to control this from the Console. It reports as being executed, but it has no effect on the time in game.

    the last thing is if the "paused" state or time could be saved to a file when the server stops or is reloaded? It's not a big deal at all, but I just have to remember to re-enter "day && pause" again after every reload ;P

    Thanks for the great plugin!
     
  9. Offline

    Sneaky420

    Sadly still unable to use the permissions node 'SimpleTime.*' or 'SimpleTime' or 'SimpleTime*', users are not getting an error, nothing in the server log, seems like it should work, but nothing happens :(
     
  10. Offline

    The Angry kat

  11. Offline

    Phil3004

    /pause is not really working, after a few hours or a reconnect the time goes again.
     
  12. Offline

    The Angry kat

    The pausing system works via hash maps which I believe cannot work with muliworld because you have to stay in the world. And for the orange glow type /sunrise or /sunset
     
  13. Offline

    zookalicious

    Sounds great, I really like this plugin and I can get by for now with being the only one able to control time, but it will be awesome once it works fully with permissions :p
     
  14. Offline

    Flenix

    Ah ok.

    I know how to get the orange glow, I meant I always wanted it to be like that even after I left and came back. I found a more hard-coded plugin now though (set the time in a config file instead) - Thanks anyway :)
     
  15. Offline

    Sneaky420


    Thank you for working on it, found your plugin after searching for awhile for one with simple commands and not messing up all my redstone devices i make :) (had time stopped on day before i found this)

    Hope it is an easy fix and i look forward to letting my players use the plugin rather then bug me all the time lol
     
  16. Offline

    jackmyst

    link is not working
     
  17. Offline

    The Angry kat

    Works for me...
     
  18. Offline

    Teldelariel

    so have you had anyluck getting it to work with permissions or group manager yet as I am not going to d/l several permission plugins just to use this plugin, it is a very good plugin but needs to be more universal :)

    Keep up the good work
     
  19. Offline

    Hackuss

    i love this :D Great job :D Maybe add to next version thunder, snow, rain time :) Good luck ;)
     
  20. Offline

    The Angry kat

    I like this idea
     
    Hackuss likes this.
  21. Offline

    Teagr5

    Big thanks to you, testet all and it work :)
    i really like it :) 6/6 ^^
     
  22. Offline

    The Angry kat

    Expect the release soon

    Version 4.0
    - Fixed permissions
    + Added GroupManager support and ability to change the weather
    + New commands!

    There you go @zookalicious @Sneaky420 @Hackuss @Teldelariel @nateD @Yallee
    :p

    Lol fixed a minor thing hope you didn't notice

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

    Hackuss

    Yee new version :D i download and test :) thx ;)
     
  24. Offline

    The Angry kat

    Your welcome :)
     
  25. Offline

    Jellyfrog

    When doing /play ingame without doing /pause first this happens:

    Code:
    21:30:30 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'play' in plugin SimpleTime v4.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            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)
    Caused by: java.lang.NullPointerException
            at me.The_Angry_Kat.SimpleTime.SimpleTime.onCommand(SimpleTime.java:125)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Isn't there more type of weathers to add?
    Rain with and without thunderstorms for example

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

    The Angry kat

    Hmm thanks for the report

    Oh yeah thanks for reminding me XD

    Version 4.2
    Added:
    - More weather commands :)



    Version 4.3
    Fixed errors

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

    Jellyfrog

    Nice!

    One more thing, using the commands from the console generates errors too!

    Code:
    >sunrise
    13:25:52 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'sunrise' in plugin SimpleTime v4.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:312)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at me.The_Angry_Kat.SimpleTime.SimpleTime.onCommand(SimpleTime.java:33)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    
     
  28. Offline

    The Angry kat

    Fixing
     
  29. Offline

    tommygoesha

    /thunder - Makes the clouds thunder
    is kinda slow or doesnt work at all and its not in one of ur permissions :\
     
  30. Offline

    Jellyfrog

    /play dosent work, time is freezed anyway
    Redstone is weird during this time =/
     
    Flashbert likes this.
  31. Offline

    Sneaky420

    So again, great pluin... just noticed one thing... when you type /sun, and it says the sun comes out from behind the clouds... but then you do it when it is night and there is no sun :p
     

Share This Page