"/clock" Command

Discussion in 'Plugin Requests' started by Ramen11, Sep 16, 2020 at 9:31 PM.

  1. Offline

    Ramen11

    Plugin category: Mechanics

    Minecraft version: 1.16.3+

    Suggested name: /clock

    What I want: When a player or the console uses the command /clock, it displays the in-game time in a 20-minute clock format. Could you also make the text green? I like the green text in Minecraft.

    Ideas for commands:

    /clock

    outputs "5:00" into chat (In-game time is 6000)
    outputs "00:00" into chat (In-game time is 24000)

    Ideas for permissions: None

    When I'd like it by: Whenever convenient
     
    Last edited: Sep 16, 2020 at 9:41 PM
  2. Offline

    gochi9

    Actually the day starts at 24000-0 which translates to hour 6 in minecraft and midnight in minecraft translates to 18000

    EDIT: here is the plugin

    Commands:
    /clock - Permission: None
    /clock reload - Permission: clock.reloadconfig
     
    Last edited: Sep 17, 2020 at 1:50 AM
  3. Offline

    Tim_M

    Interesting idea, and easy to code, could you just maybe explain better the 20 minute format? If you do I could code it.

    Edit: noticed some1 did it nvm.
     
  4. Offline

    Ramen11

    Thanks! It works great, but I have one problem. Can you make it so you can also input the command through the server console?
     
  5. Offline

    gochi9

    Now you can't.Each world has its own time so since the console is not in a world then it's impossible
     
  6. Offline

    KarimAKL

    @gochi9 @Ramen11 Adding an optional world name argument to the command would allow checking other world's time as well as making the console able to use the command.
     
  7. Offline

    Ramen11

    @gochi9 Could you add this?
     
  8. Offline

    gochi9

    This is the plugin

    As requested.
     

Share This Page