[RPG] LoreTime v1.3.0 - A date plugin for RP servers [1000]

Discussion in 'Inactive/Unsupported Plugins' started by SHiLLySiT, Jul 31, 2011.

  1. Offline

    SHiLLySiT

    <font color="rgb(255, 0, 0)">>></font>BUKKIT DEV: http://dev.bukkit.org/server-mods/loretime/<font color="rgb(255, 0, 0)"><<</font>
    All further updates will be made to the above link.

    LoreTime - An RP date plugin:
    Version: v1.3.0

    LoreTime is a date plugin geared towards RP servers. When a player issues the /loretime command, they are given the current in-game date which can be customized to fit the server's theme. Admins can adjust the date in-game as well as save/reload the config. The plugin updates the date at midnight in-game time (18000).

    With our standard calendar:
    [​IMG]
    With Oblivion's Calendar:
    [​IMG]

    Note: Days in a month must be divisible by the days in a week, a limitation I hope to remove in the future. You may notice that the 31 of July this year is actually Sunday, this is because of the aforementioned limitation.

    Features:
    * custom month/day names
    * in-game time
    * custom formatting
    * user specified days in a week/months in a year
    * permission support (Optional)

    <Edit by Moderator: Redacted mediafire url>

    <Edit by Moderator: Redacted mediafire url>
    Source Code

    Changelog:
    Version 1.3.0
    * added time display
    * added custom string format

    Version 1.2.0

    * fixed another memory leak (doh!)
    * added time check interval (configurable)
    * added "th", "nd", etc after date numbers
    * chat color (configurable)
    * notify players on date change
    * notify players on login (optional)
    * reorganized code/comments/cleanup

    Usage:

    Config
    Code:
    months:
         #Names of your months. The number of months you list here reflects the
         #number of months in a year.
        - January
        - Febuary
        - March
        - April
        - May
        - June
        - July
        - August
        - September
        - October
        - November
        - December
        #The current day (zero based). Don't worry about this, just for storage.
        current: 0
        #The number of days in a month. Days in a months must
        #be divisible by the days in a week.
        daysInAMonth: 30
    days:
         #Names of your days.  The number of days you list here reflects the
         #number of days in a week.
        names:
        - Sunday
        - Monday
        - Tuesday
        - Wednesday
        - Thursday
        - Friday
        - Sunday
        #The current day (zero based). Don't worry about this, just for storage.
        current: 0
    year:
        #The current year (zero based). Don't worry about this, just for storage.
        current: 0
    options:
        #The name of the world to keep a date, only supports one world.
        worldname: world
        #The interval to check the time (in seconds). Longer intervals reccomended
        #for higher populated servers, but default should be fine
        interval: 30
        #Color of all loretime related chat messages. Use upper case!
        #BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA,
        #DARK_RED, DARK_PURPLE, GOLD, GRAY, DARK_GREY, BLUE,
        #GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE
        color: AQUA
        #Save the config to file after the date changes? (recommended)
        saveOnDateChange: true
        #Notify players of the date when they join the server?
        NotifyOnJoin: true
        #Turn debug messages on.
        debug: false
        #How the string will be displayed
        #&W = weekday name, &M = month name, &D = day number, &Y = year,
        #and &T current time.
        displayString: '&W, &M &D, &Y'
        #Either type 12 for 12-hour clock or 24 for 24-hour clock
        timeformat: 12
    
    NOTE: You can add additional words to the display string. For example, if the day is Monday and the month is January the string "Today is &W of &M" will output as "Today is Monday of January".

    Commands
    (Alias to /loretime is /lt)
    /loretime - displays the current date/time
    /loretime time - displays the current Minecraft time.
    /loretime set [month] [day] [year] - sets the date to the specified date.
    /loretime save - saves the date to file.
    /loretime reload - reloads the config file without saving first.

    Permissions
    loretime.user.loretime - /loretime
    loretime.user.time - /loretime time
    loretime.admin.set - /loretime set [month] [day] [year]
    loretime.admin.save - /loretime sav
    loretime.admin.reload - /loretime reload

    Bugs:
    Version 1.3.0
    * none known

    Version 1.2.0

    * none known

    Version 1.1.1

    * memory leak

    Version 1.1.0

    * I've been told there is a memory leak some where, working on the fix.

    Version 1.0.0

    * none known

    Future:

    * Holidays/Events
    * I'm taking suggestions! =]

    Changelog History:


    Show Spoiler
    Version 1.3.0
    * added time display
    * added custom string format

    Version 1.2.0

    * fixed another memory leak (doh!)
    * added time check interval (configurable)
    * added "th", "nd", etc after date numbers
    * chat color (configurable)
    * notify players on date change
    * notify players on login (optional)
    * reorganized code/comments/cleanup

    Version 1.1.1

    * fixed memory leak (let me know if it still persists)
    * removed config save when /lt time command was issued (oops)

    Version 1.1.0

    * added /lt alias
    * added /lt time which returns the current time

    Version 1.0.0

    * initial release
     
    Last edited by a moderator: Nov 13, 2016
    kahlilnc and aima like this.
  2. Offline

    kahlilnc

    You should add this to bukkit dev :D
     
  3. Offline

    ZenithV

    Great work mate! Just one question, when do you plan on adding multi-world support?
     
  4. Offline

    dackkorto

    Why cant I use any of the commands? Im an OP on my server and it wont let me check the date...
     
  5. Offline

    kahlilnc

    Use permissions
     
  6. Offline

    Tanite

    CB1185:

    Code:
    2011-10-07 00:32:41 [SEVERE] java.lang.NullPointerException
    2011-10-07 00:32:41 [SEVERE]    at me.SHiLLySiT.LoreTime.LTimeCheck.run(LTimeCheck.java:25)
    2011-10-07 00:32:41 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-10-07 00:32:41 [SEVERE]    at java.lang.Thread.run(Thread.java:722)
    2011-10-07 00:33:11 [SEVERE] java.lang.NullPointerException
    2011-10-07 00:33:11 [SEVERE]    at me.SHiLLySiT.LoreTime.LTimeCheck.run(LTimeCheck.java:25)
    2011-10-07 00:33:11 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-10-07 00:33:11 [SEVERE]    at java.lang.Thread.run(Thread.java:722)
    What's the problem with multi-world?
     
  7. Offline

    ashtheking

    Your problem is you haven't changed the config value 'world' under options. It defaults to world, and you've probably changed your worldname.
     
  8. Offline

    Lextao

    WTFFFF!!!! I'M GETTIN: "Bukkit sad, bukkit cannot let you" THING USING EVERY COMMAND OF THIS PLUGIN ._.

    IM USING BPERMISSIONS AND HAVE THE NODES.

    ^All caps rage.
     
  9. Offline

    gamerluke

    You probably didn't set it up right,
    Since the Bukkit sad messages are for non-ops / people without permission.

    - You don't have permissions properly set
    - Doesn't suport BPermissions ?
    - It's being told you don't have a permissions plugin?

    Just some ideas, I don't exactly know what the problem is obviously...
     
  10. Offline

    Lextao

    - I have the loretime.user.* node
    - Maybe it doesn't support it so i'm F'ed
    - I'm an OP, plus have the '*' node.
    - What do you mean with "It's being told you don't have a permissions plugin?"
     
  11. Offline

    gamerluke

    I mean, if you have permissions... there's an option somewhere to tell it to use Permissions and not Ops.txt
     
  12. Offline

    Lextao

    There's no option like that in config.yml
     
  13. Offline

    SHiLLySiT

    Sorry I've been out of the loop; I've been caught up in other things. I created this plugin prior to Bukkit permissions, so it uses the old permissions plugin. So there may be some issues there, I'll have to update this plugin soon.
     
    kahlilnc likes this.
  14. Offline

    SHiLLySiT

  15. Offline

    MSTrus

  16. Offline

    WASasquatch

    Yes, please. This is a most excellent plugin.
     

Share This Page