[MECH] (CB 1438+) - Extend Day - Make Day (or Night) Last Longer

Discussion in 'Inactive/Unsupported Plugins' started by feverdream, Jan 13, 2011.

     
  1. Offline

    feverdream

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Extend Day extends daylight to as many "normal" days as the person has configured.
    Features:
    1. Day can now be as long as you want it to be.
    2. Day progressions as normal, but when the sun is about to set.. night is skipped and the sun rises again.
    3. Set the time your server starts in via a config file. Valid options are "day", "night", "sunset", "sunrise" or a RAW_TIME number.
    4. Night can be as long as you want it to be.
    5. Night progresses as normal, but when the sun is about to rise.. day is skipped and the sun sets again.
    6. API Support for plugin developers who want to add support to this in their plugins.

    More Detailed Description:
    For example if the admin/owner has configured it for 2 days, it will cycle two full days of sunlight before sunset is allowed to slip the server into the darkness of night. Night will happen as normal, as will sunrise. Then the day loop will start over again and 2 more "days" will pass before night happens again.

    So with "2" configured for day:
    A:
    Day
    Day
    Sunset
    Night
    Sunrise
    -> Goto A

    So with "5" configured for day:
    A:
    Day
    Day
    Day
    Day
    Day
    Sunset
    Night
    Sunrise
    -> Goto A

    So with "3" configured for night:
    A:
    Day
    Sunset
    Night
    Night
    Night
    Sunrise
    -> Goto A

    So with "5" configured for day and "3" configured for night:
    A:
    Day
    Day
    Day
    Day
    Day
    Sunset
    Night
    Night
    Night
    Sunrise
    -> Goto A

    To be implemented:
    * Permissions Support
    * Possible additional extension options, if I get a lot of requests for them.

    Version
    Bukkit #468 is last known working version. Last reported working version of CraftBukkit was #572, and as far as I know all later versions work. If you are using a older version of bukkit, please upgrade. Old versions are not supported. *puts foot down*. Current version of plugin is 1.3103252011

    Usage and need:
    I need to know how usefull this plugin is; please post here if your using it so I get an idea of how popular this is.

    API Support Usage:
    Plugin now fully supports API integration with other plugins. Use getDaysLeftCounter and getNightsLeftCounter to know how many days or nights are left in the cycle.

    The download link is here (For the jar)
    http://dl.dropbox.com/u/18627325/minecraft/ExtendDay.jar

    Example config file:
    #Extend Day Control Configuration File.
    #Thu Jan 13 14:33:09 PST 2011
    daylight-days-long=2
    nighttime-nights-long=2
    start-time day

    Possible Conflicts with other plugins:
    This plugin should not conflict with other plugins in any way as the /time command used by other plugins is per use. This plugin HAS NO /time command. However I do not have the source for some of the other popular plugins available and as the developer for these have chosen not to release the source to my knowledge, there is no way for me to support them or make sure there is no conflict. Due to this lack of source I have no idea if there is a possible conflict or not, and until I do get source - I refuse to reverse engineer jar files as that is disrespectful and just plain rude - using this plugin with others that have no released their source is not supported by me. If you want full support, get other plugin developers to release their sources.

    Other Plugins:
    If you are looking for a plugin to make it "always day" or "always night" or even "always sunrise or "always sunset" check out my "Noon" plugin in my sig.
    Daito33 and Blocksberg like this.
  2.  
  3. Offline

    TerraPlay

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I like this plugin, but i wanted to create something like "Minecraft Server Time = Real Time". So if it's 3 pm in real world it should be "3 pm" on our mc-server. So we need something like this (1 Real Day of gameplay is = 72 Minecraft Days. 24 * 60 / 20 = 72):

    #Extend Day Control Configuration File.
    #Thu Jan 13 14:33:09 PST 2011
    day-days-long=18
    night-days-long=18
    sunrise-days-long=18
    start-night day

    Sunrise is there two times a day i think, when the sun goes down and up. I'd start my server at 12pm and set start-time to night and then it should work i think
  4. Offline

    mrgreaper

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yeah some one suggested we put our server to real time and i stared at him till he went away. im a night guard so i play mostly at 1 or 2 am and rarely during the day
  5. Offline

    axebyte

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    lol didnt mean real time, but just a double duration day-double duration night, i think real time would be very hard for those not in your area. but hey everyone sets it up different what makes it interesting.
  6. Offline

    feverdream

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @mrgreaper
    day should work now, that bug was fixed a while go. No raw values needed; the problem was a java-ism that since been fixed.

    @axebyte:
    I may be willing to add the extension of night, if people *really* want it.

    @The rest talking about real time day/night
    Its not an easy task, it would add lag, and you have a lot of configuration values to worry about. Are you *really* interested in something like this?

    In the end, if I add extended night to this plugin you could just set it for long values for both day and night and have day long day and night long night.. that may be a better option and may be a better choice anyway,
  7. Offline

    TerraPlay

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    we have ~30 users on our server nearly everytime and we couldn't notice any lag so far. so we can live with some little lags if they're not too heavy. we all come from germany so we are all in the same time zone.
  8. Offline

    Kayonesoft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I love it, thanks!
  9. Offline

    feverdream

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I will think about this, but I will not add "real time" until after I add extended night.
  10. Offline

    talbot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i'm trying to download but dropbox is giving me a 5xx error. hopefully it's just a temporary thing.

    edit: it's working again.
  11. Offline

    RchGrav

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmm, just noticed that ExtendDay stopped working on my system. Is anyone else noticing that on their server?

    Btw... I'm pretty much moving forward with current builds of everything as they are released daily... I'm not sure when it stopped working.

    No console errors to speak of.

    Rich
  12. Offline

    Antac55

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please have this work with the new Permissions plugin. It's supposed to be very similar to Bukkit's soon-to-be permissions system. I like this plugin a lot so I'm just trying to get rid of the plugins that don't use it so that my server directory is easy and clean to use with user permissions. Plz and Thx :D
  13. Offline

    Drizien

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I absolutely LOVE this plugin! 5 days and 1 night is my favorite setting atm
  14. Offline

    Mgssidley

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Good plugin, thanks!
  15. Offline

    Aelux

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    To add to your already long list of "features to add", it would also be nice if this plugin worked with the Permissions plugin as well.

    Thanks.
  16. Offline

    highz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If i use this does my ingame Clock thing also knows that the day is longer?
    (Clock = 4 gold bars 1 redstone)
  17. Offline

    Mournful

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    nevermind! answered my own question :)
  18. Offline

    psortland

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This plugin seems to have stopped working after upgrading bukkit.
  19. Offline

    Arisilde

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My server wants to have 1 hour days and 1 hour nights. If you added night support that would be awesome :D
  20. Offline

    Azraeil

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Running the latest build for Craftbukkit and your plugin, I don't see any default configuration file made on first run. This leads me into my second question, what is the configuration file called?

    Would you also update either your plugin's name and/or it's connection with bukkit so that the filename and the plugin name match? I see it listed as ExtendedDay in Bukkit but this forum and the .jar are both named ExtendDay.
  21. Offline

    jhusky17

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is this working with the latest updates? I can't seem to get it to work. Also Azraeil, it creates the configuration file when you reset the server.
  22. Offline

    QQCucumber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not anymore, it seems. I cannot get it to generate a config file and I've never used this before.
    --- merged: Jan 30, 2011 3:00 AM ---
    If anyone could supply the config file (assuming the one in the OP might be outdated) and the path/filename, that'd be great.

    Edit: The filename is called extendday.settings, and it goes in the same directory as the craftbukkit server file.
    --- merged: Jan 30, 2011 4:27 AM ---
    Yeah, just tried it out, extendday is not making days longer. Build 166. No errors or anything.
  23. Offline

    feverdream

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is in active development, I had hardware trouble and am waiting for the AC Adapter I need to get to me.
  24. Offline

    QQCucumber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Build 164 now, the plugin is working. I'm not sure if it was broken with 166, after giving some time for the days/nights to cycle the longer days started kicking in. The file definitely does not create on its own right now but I supplied that information in the thread already. Anyway, this is a very nice plugin, my players are endlessly thankful for it.
  25. Offline

    feverdream

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The file does get created on its own, please do not say it does not as it does unless you screwed up your file permissions.
  26. Offline

    EvilSeph Bukkit Team Member Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  27. Offline

    jwideman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No it doesn't. Your Noon plugin, which I have running on my other world, does create the config. But this does not.
  28. Offline

    QQCucumber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Getting an error on build 210.

    ExtendDay v1.0 By Feverdream initialized.
    Feb 2, 2011 6:12:53 AM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: org.bukkit.Server.getTime()J (Is it up to date?)
    java.lang.NoSuchMethodError: org.bukkit.Server.getTime()J
    at com.bukkit.feverdream.extendedday.ExtendedDay.onEnable(ExtendedDay.java:78)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:63)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:44)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:143)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:186)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
  29. Offline

    SilverstarX

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  30. Offline

    QQCucumber

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  31. Offline

    Sandia

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It dosen't work on build 211
    it says (is it up to date) and then it come many thinks in the consol that i don't understand
    [IMG]
    [IMG]
  32. Offline

    jwideman

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How did you fix it without access to the source code?

Share This Page