Inactive [INACTIVE] MyTime v0.1 - Change your time, not the server's [1000]

Discussion in 'Inactive/Unsupported Plugins' started by shadrxninga, Jul 16, 2011.

  1. Offline

    shadrxninga

    MyTime v0.1
    Change your time, not the server's
    Craftbukkit Build: 953

    Ever wanted to change the time to day as an Admin - but you didn't want your legit server to be always day when an Admin was on? Find it hard to spy on your players in the dark?
    This is the plugin for you :D With MyTime you can change the time on your client to whatever you want - without changing the servers and without the need for a client mod.

    Features
    • Change your time with simple commands
    • Reset your time back to the servers time
    • Locks the time in place when you use /mytime
    • Permissions and OPs Support
    Usage
    Using this plugin is simple :D
    Just type the commands into the chat box.
    Commands (open)

    /mytime day - Changes your time to day
    /mytime night - Changes your time to night
    /mytime dusk - Changes your time to dusk
    /mytime dawn - Chages your time to dawn
    /mytime <Number> - Sets your time to the specified Ticks
    /mytime reset - Resets your time back to the server's time

    If you log out of the server - your time will also be reset to the server's time

    Permissions
    mytime.time - Allows the user to change their time

    Download

    Download v0.1 Here
    Source (Will be up tomorrow)

    Suggestions/Bugs
    Got an suggestion/feature request? Feel free to post it here.
    You can also do the same with bugs - but remember to include the version of craftbukkit you are running.

    ToDo
    • Add Commands to Change the time of other users
    • Add Commands to Change the time of groups??
    ChangeLog

    Version 0.1
    • Initial Realease
    ๖ۣۜDream
     
    1born2kill, efstajas and woodzy like this.
  2. Offline

    woodzy

    i like it but it dont support skylands thro
     
  3. Offline

    RazorFlint

    Wow. Could you put your source on GitHub? I just want to see how this is coded... :D
     
  4. Offline

    efstajas

    This is awesome! I don't know why nobody else thought of that before! I always thought this would need a client- mod. :eek:
     
  5. Offline

    Plague

    I never thought this is doable, you change the client-server communication?
     
  6. Offline

    1born2kill

    Oh my god... Really awesome...
     
  7. Offline

    shadrxninga

    I'm putting the source up on github now.
    Well... prepare not to be that exited :p Am I the only one that reads through the new features list?
    This was added to the API in build #928 - http://forums.bukkit.org/threads/recommended-build-928.22810/
    I thought someone would do it before me - so I never released this. But no one did, so I thought I might as well :D

    Also - @Plague thanks for your time code from plgessentials ;)
     
  8. Offline

    Plague

    Heh I have 2 tabs permanently open and read every single one of them, how did I miss this I cannot understand :)

    and you're welcome
     
  9. Offline

    fugue2005

    the permissions node isn't working,
    with * permissions i can change mytime
    but my mods with mytime.time cannot.
     
  10. Offline

    Pezmc

    Hi, awesome plugin but unfortunately it is causing errors, I am currently unsure how to cause this error as I am just looking at the logs, but I will post more information if I find it!

    Code:
    17:43:55 [INFO] OllieB [/2.98.210.238:53268] logged in with entity id 363274 at ([world] 160.46695338295515, 73.0, -1075.455086549566)
    17:44:20 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'mytime' in plugin MyTime v0.2
            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.ArrayIndexOutOfBoundsException: 0
            at com.scswc.shadrxninga.mytime.MyTime.onCommand(MyTime.java:80)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  11. Offline

    shadrxninga

    Hmm... maybe I spelt the node wrong :p - I'm going to fix that now.
    That happens when you just type /mytime without any arguments? I'll go and fix that now as well.
     
  12. Offline

    Pezmc

    Any chance of sharing the source somewhere? I am interested in supporting this plugin!
     
  13. Offline

    xzKinGzxBuRnzx

    FeaturePack has had this since Bukkit has supported it! iConomy support for it as well. :D
     
  14. Offline

    shadrxninga

    Now that's just blatant advertising :p
     
  15. Offline

    40540057

    He actually went so far as to use YOUR plugin's name in HIS plugin's feature list.

    /slap xzKinGzxBuRnzx
     
  16. Offline

    dclardy

    When are you fixing the issue with the permissions node? If not, can you tell me what the typo is? I need this enabled!

    Update:

    I did a quick search through the ,jar, and I found that the permissions node is mytime.change!

    To allow a user to change their own time:

    mytime.change

    To change other players time:
    mytime.change.* is there, but I am not sure this works!
     
  17. Offline

    CW934

    so what about mobs then? hostile mobs spawn @ night, so when a player's 'my time' is set to night, do hostile mobs only spawn near them and are only visible to them? or do mobs stick with the server time, and this plugin just changes the lighting level?

    cool plugin tho :D
     
  18. Offline

    iamjagman2

    To my knowledge, mobs are coded to go by the server time. I could be wrong though, but that seems a bit of a stretch.
     
  19. Offline

    shadrxninga

    I could do it, if I had a bit of time... - You can make it so mobs don't target certain people.
     
  20. Offline

    iamjagman2

    Yes, but I meant that you wouldn't be able to see the mobs, wouldn't be able to touch them, and wouldn't be noticed by them. Basically like a serverside daytime for only you :p
     
  21. Offline

    lionking23

    You can make an onEntityTarget event and set it to false so mobs won't spot you when ur near them (only to hostile mobs)
     
  22. Offline

    AndyBay

    Is this plugin still supported?
     
  23. Offline

    shadrxninga

    No, not really.
     
  24. Offline

    AndyBay

    Too bad :/ An update with the possibility to change the commands would be great.
     
  25. Offline

    RROD

    Mind if I update/fork it for CB1337?
     
  26. Offline

    AndyBay

    If you do, do you mind making the ability to change the commands? I want to translate the commands to a different language.
     
  27. Offline

    RROD

    What language? I could add support.
     
  28. Offline

    AndyBay

    Norwegian :)
     
  29. Offline

    RROD

    Min tid, ok!
    Good, old Google :)
     
  30. Offline

    AndyBay

    Ha ha, google translate :) I would prefer the command to be "Tid" instead of Min tid, but atleast "Min tid" is better than just normal english :)
     

Share This Page