TheClock 1.1.4

Be used to execute task at different times (real or tick) or time remain before a date.

  1. Patfreeze
    Tested Minecraft Versions:
    • 1.13
    Source Code:
    https://www.amedacier.com
    THE CLOCK 1.1.4
    For MC 1.13 only

    For under MC 1.12.2 to 1.10
    https://www.spigotmc.org/resources/theclock.46953/download?version=227705

    This mod (plugin) are for Spigot minecraft servers and it's very simple. It give you the server time in game. It can also be used to execute task at different times in real life or in game time (tick).:cool:

    I've not tested all commands from other plugin (I will die before the end of test :p) but you can use command from other mod. The limit here is your imagination.
    Exemple: 'Eco give * 200' from vault I thing not sure. Give money to all player online.

    WARNING
    They have a major update for 1.1.1 SO Make A Backup of the folder TheClock.

    [NEW in 1.1.4] for Minecraft 1.13 only

    - Added tabs completion
    - Updated for Minecraft 1.13

    [NEW in 1.1.3]
    - Correction bug... All worlds time tick was refered to world named "world"
    - Added command RocketStar:LOL:

    [NEW in 1.1.2]

    ## This is display the Event message on login with title and subtitle.
    ## If false this will be shown one time to player at login in the chat
    showEventMessageTitle: true

    ## Number of minutes between broadcast event. if 0 this will not be shown in broadcast
    minutesEventToDisplay: 10

    [NEW in 1.1.1]
    - Now you have configuration per World and not globally to all.
    So you will need to update your config.yml file to the new configuration Worlds/world.yml.
    - Added command /broadcastWorld [WORLDNAME] [YOUR MESSAGE]
    - I also add an eventMessage.yml for furure event. You will be add more than just one event.
    Beware:
    Only one event at the time will be shown.
    Also closer one of the current date
    .

    [NEW in 1.0.1 to 1.1.0]
    - Added in config iLimit of the list offline player & command also for offline player. If you make a limit there will shuffling list.
    - Correction of a bug. List of offline players was multiplicate by some sort.
    - Added in config your timeZone server
    - Correction of a tiny bug. But I never receive a bug report for this. So I will keep it secret. :p Ok I will tell you... The Schedule of the tick never refresh after passing the night when a player sleep or the tick time changed radicaly. (Like /time set Day)
    - Correction of a bug from 1.0.5. When you Right click on a non-theclock Sign :oops:
    - Same thing in 1.0.5 ;)
    - added
    Sign TimeReal
    • This will display on a Sign the time server
    Sign TimeIngame
    • This will display on a Sign the time Ingame
    Sign TimeRemain
    • This will display your event remain time
    Check the screen shot How it work.
    For exemple :
    Line 1 : [theClock]
    Line 2 : TimeReal

    When you restart or reload your server just right click on Sign to update the clock or remain Sign.
    - added
    Code (Text):

    @o # All Offline players
    @al # List with comma online players
    @ol # List with comma offline players
     

    - You can use @r in command to take a random player online.
    - Now you can excute task at in game time (tick)
    - Add @a in command to take all player online
    - With a simple date it give you the remain time before this date with a simple message configurable in config.yml.


    For exemple:
    • At 7h00am you can send a message to all online player say "Good morning everyone!"
    • At 12h00pm you can give to all online player a tasty steak with this message "Bon appetit!"
    In tick time :
    • At 0 ticks (morning in game) send a message to all player online say "In other day in Minecraft"

    Command :
    • /theclock help
      Give you the list of command

    • /theclock getCurrentTime
      Give you the current time of the server.

    • /theclock getRemainTime
      Show again the remainTime. Exemple how many time before Christmas.

    • /theclock loadMissWorld
      If you add a new world, this will be create the new config file and load the schedule.

    • /theclock broadcastWorld [world] [message]
      This command is for broadcast only a specific world.

    • /theclock rocketStar [playerName] [NumberOfFireworks]
      This command send to a target player fireworks in the air

    Goals for this mod :
    • Program a request from a user -- DONE from a friend
    • Get 10 downloads -- DONE thx guys
    • Get 50 downloads -- DONE but is the total o_O
    • Get 100 downloads -- DONE :eek:
    • Get 500 downloads -- DONE :cool:
    • Get 5000 downloads (Ok I'm dreaming now) :p
    • Rock around the clock -- DONE stupid goal lol ;)

    Code (Text):

    ## This is telling a player how many times left for this date
    ## if showWelcomeMessage is true it will display after the first message
    ## To disable it just put a date before now.
    ## The first date find after today will be display.

    ## Colors available:
    ## black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray,
    ## blue, green, aqua, red, light_purple, yellow, white

    events:
      event1:
        eventDate: '2018-12-25 00:00:00'
        colorEventTitle: 'yellow'
        colorEventSubtitle: 'gold'
        eventMessageSubtitle: 'until Christmas'
      event2:
        eventDate: '2019-01-01 00:00:00'
        colorEventTitle: 'gold'
        colorEventSubtitle: 'aqua'
        eventMessageSubtitle: 'until New Year'
     

    Code (Text):

    ## CONFIG FOR THECLOCK
    version: '1.1.3'

    ## Number of Offline player display in the chat. If 0 mean all
    iLimit: 0

    ## Number of the limit to reach when trying to find a random player per world
    ## A higher number can cause you server slowers. If so reduce this number.
    iLimitRandowSearch: 100

    ## This is the time Zone Server. If not found will take America/New_York by default
    timeZone: 'America/New_York'

    ## This is display the clock or not on screen (Every Minutes it will popUp)
    showBossBarClock: true

    ## This is display the welcome message and clock or not on login
    showWelcomeMessage: true

    ## If true this will display the Event message on login with title and subtitle to the player.
    ## If false this will be show one time to player at login in chat
    showEventMessageTitle: true

    ## Number of minutes between broadcast event after today. If 0 this will not be shown in chat.
    minutesEventToDisplay: 10

    ## Title Message at login %s it's the name of the player
    MessageLoginTitle: 'Hi %s!'

    ## SubTitle Message at login %s it's the time server
    MessageLoginSubTitle: '%s'

    ## Title Sign for realTime, TimeIngame
    SignTitleRealTime: 'Real Time'
    SignTitleTimeIngame: 'Time In Game'

    ## Colors available:
    ## black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray,
    ## blue, green, aqua, red, light_purple, yellow, white
    colorMessageLoginTitle: 'gold'
    colorMessageLoginSubtitle: 'dark_blue'

    ####################
    ## LANGUAGE HERE
    ####################

    ## This is for the remain... I put years but hopes nobody will need century =P
    ## %s is used for the plurial in french the month is "Mois" so no need "%s"

    sYears: 'year%s'
    sMonths: 'month%s'
    sDays: 'day%s'
    sHours: 'hour%s'
    sMinutes: 'minute%s'
    sSeconds: 'second%s'
    noEventMessage: 'No event for now'
     

    Code (Text):

    WORLD: world
    ## SOME COMMAND TO BE DONE IN GAME
    # The @a is for all player online if you want to use TheClock otherwise you can use the default command of an other plugin.
    # The @r it take a random player online. WARNING : You can't use at twice @a and @r and @o in the same line.
    # The @o it take all player offline. WARNING : You can't use at twice @a and @r and @o in the same line.
    # So if you need to take all player online and offline, just double the line.
    # @a, @r or @o is the name of the player. It mean if you use 'broadcast @o is offline' if you have 100 offline players you will
    # spam the chat with 100 broadcast for all players offline. Use @al of @ol to make a list.
    # So for 'broadcast @ol are offline' it will write in chat 'Bob, Marty, Patfreeze are offline'
    #
    # EXEMPLE : At 12:00 in real world (mean real life not in game) it will give money to all online player (online and offline **)
    # This is an exemple for Economy plugin.
    # 12:
    #   - 'Eco give * 200'
    #
    # BEWARE : Now that is per World so the command /broadcast will always display message in all worlds
    # use /theclock broadcastWorld [WORLD] [MESSAGE] instead to display only in the world world =)
    hourly:
      0:
        - 'broadcast Another day in real life...'
      1:
      2:
      3:
      4:
      5:
      6:
      7:
        - 'broadcast Time to wake up'
      8:
      9:
      10:
        - 'broadcast Hey! Welcome to 10 oClock'
        - 'broadcast DWBH : Dont Worry Be Happy!'
      11:
      12:
      13:
      14:
      15:
        - 'broadcast DWBH : Dont Worry Be Happy!'
      16:
      17:
      18:
        - 'broadcast Time to diner'
        - 'give @r steak 1' #Random player online
      19:
      20:
      21:
      22:
        - 'broadcast Stars a great tonight'
      23:
        - 'broadcast Last hour before tomorrow'

    #####################################################
    ## SOME COMMAND TO BE DONE IN GAME
    ## Based on tick time in game 24000 ticks = 1 day game
    ## Exemple 0 = 0ticks = the sun is now up for morning
    ## Exemple 14000 = 14000ticks = the night is there
    ## Exemple 23999 = 23999ticks = the last ticks in the game day
    ## Same as Hour all @a will be player online only.
    # The @a is for all player online if you want to use TheClock otherwise you can use the default command of an other plugin.
    # The @r it take a random player online. WARNING : You can't use at twice @a and @r and @o in the same line.
    # The @o it take all player offline. WARNING : You can't use at twice @a and @r and @o in the same line.
    # @a, @r or @o is the name of the player. It mean if you use 'broadcast @o is offline' if you have 100 offline players you will
    # spam the chat with 100 broadcast for all players offline. Use @al of @ol to make a list.
    # So for 'broadcast @ol are offline' it will write in chat 'Bob, Marty, Patfreeze are offline'
    #
    # BEWARE : Now that is per World so the command /broadcast will always display message in all worlds
    # use /theclock broadcastWorld [WORLD] [MESSAGE] instead =)
    timeInGame:
      0:
        - 'broadcastWorld world Other day in Minecraft world'
        - 'broadcastWorld world Dont forget to brush your teeth'
      200:
        - 'give @r cobblestone 1' #Random player online
        - 'broadcastWorld world @al are online now'
        - 'broadcastWorld world @ol are offline now'
      14500:
        - 'broadcastWorld world Good Night!'
        - 'broadcastWorld world Herobrine is watching you!'
        - 'give @a torch 1' # All player online
     
    Hope this will help a lot of server. ;)

    You want your server listed here just ask! :)

    Images

    1. TheClock96x96.png
    2. theclock.jpg
    3. theclock2.jpg
    4. theclock3.jpg
    5. 2017-11-03_19.37.05.png
    6. Sign_theclock.png
    Lambsauce and Rhander like this.

Recent Updates

  1. Update for MC 1.13
  2. Update 1.1.3
  3. New update

Recent Reviews

  1. Itzack
    Itzack
    5/5,
    Version: 1.1.4
    Nice, but how i can disable per world broadcast? i don't need that. Sorry for my bad english xd
    1. Patfreeze
      Author's Response
      Thanks for the review!

      Just remove for worlds file the broadcast

      the command for broadcast a specific world is
      /theclock broadcastWorld [world] [message]

      the command /broadcast it self is for all world.

      Sorry English is not my first language too! =)
  2. ScuroK
    ScuroK
    5/5,
    Version: 1.0.2
    Very good to have! there are not so many plugins out there like this! thx and i hope u keen up the good work
    1. Patfreeze
      Author's Response
      Thanks! If you have any questions just ask.