ArVdC / TimeManager

Bukkit plugin for time management and display
https://dev.bukkit.org/projects/mc-timemanager/files
Eclipse Public License 1.0
7 stars 3 forks source link

Feature request : / symbol not accepted. #31

Closed Pro245Mc closed 1 month ago

Pro245Mc commented 2 months ago

Hi, In the plugin, is it possible to use the / symbol in the cms.yml? I use a plugin that looks for music files in folders, but I can't add the /.

Example: '4': /oa region create global ["files:public/home/77night01.mp3"]

This part is not recognised : public/home/ Thanks

ArVdC commented 2 months ago

I think I know why, I'll check it asap

Pro245Mc commented 1 month ago

Hi there, Sorry to be a bother. Just wanted to know approximated how long before this could be fixed?

ArVdC commented 1 month ago

Here it is : https://github.com/ArVdC/TimeManager/releases/tag/v1.9.1-b2

Pro245Mc commented 1 month ago

Thank you so much for this. Means a lot. Take care

Pro245Mc commented 1 month ago

Hi again. Ok so i've tested it. The (/ ) Works good, but it seems to have broken my conf. I reverted to the old update (1.9.0) and it works again. This is kind of related the the day cycles request, so i will add my conf so you can see what isn't working in your new update , as i know it's a beta pre release.

So the bug with 1.9.1 pre-release is: In my cmd.yml, the days seem to all skip though one another. But in 1.9.0 it works. As if it no longer respects the dates. I managed to concoct a weekly days cycle. It was I bit annoying to configure, but the trick was to create a 8th day on sunday night.) Maybe it could inspire your coding for the new feature? haha. (you guys are amazing at coding by the way. I know very little, but i love this plugin)

anyway, here's my yml. Thanks so much for your time.

version: 1.9.0
useCmds: 'true'
cmdsList:
  global_day_music_day_01:
    cmds:
      '1': /broadcast &e&o[Monday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-01'
    repeatFreq: none
  global_day_music_day_02:
    cmds:
      '1': /broadcast &e&o[Tuesday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-02'
    repeatFreq: none
  global_day_music_day_03:
    cmds:
      '1': /broadcast &e&o[Wednesday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-03'
    repeatFreq: none
  global_day_music_day_04:
    cmds:
      '1': /broadcast &e&o[Thurday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-04'
    repeatFreq: none
  global_day_music_day_05:
    cmds:
      '1': /broadcast &e&o[Friday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-05'
    repeatFreq: none
  global_day_music_day_06:
    cmds:
      '1': /broadcast &e&o[Saturday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-06'
    repeatFreq: none
  global_day_music_day_07:
    cmds:
      '1': /broadcast &e&o[Sunday]
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:19
    date: '0001-01-07'
    repeatFreq: none
  global_night_music_night_01:
    cmds:
      '1': /broadcast &9&o[Sunday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-08'
    repeatFreq: none
  global_night_music_night_02:
    cmds:
      '1': /broadcast &9&o[Monday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-02'
    repeatFreq: none
  global_night_music_night_03:
    cmds:
      '1': /broadcast &9&o[Tuesday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-03'
    repeatFreq: none
  global_night_music_night_04:
    cmds:
      '1': /broadcast &9&o[Wednesday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-04'
    repeatFreq: none
  global_night_music_night_05:
    cmds:
      '1': /broadcast &9&o[Thursday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-05'
    repeatFreq: none
  global_night_music_night_06:
    cmds:
      '1': /broadcast &9&o[Friday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-06'
    repeatFreq: none
  global_night_music_night_07:
    cmds:
      '1': /broadcast &9&o[Saturday Night]
    cmdsRefTime: world
    plholderRefWorld: world
    time: '19:08'
    date: '0001-01-07'
    repeatFreq: none
  date_reset_monday_next_day:
    cmds:
      '1': /tm set date 0001-01-01 all
    cmdsRefTime: world
    plholderRefWorld: world
    time: 05:18
    date: '0001-01-08'
    repeatFreq: none
ArVdC commented 1 month ago

I think it is fixed, please give me your feedback : v1.9.1-b3

Pro245Mc commented 1 month ago

Working great again thanks. I noticed the time format has changed in the cmd.yml from 05:00 to 5:00. Is that ok?

ArVdC commented 1 month ago

Yes it is related to a single quote compatibility issue in the yaml files. It works better without any zero. Did you try the 'week' repetition ?

Pro245Mc commented 1 month ago

oh I see. Yes, the week repetition works fine like before. You're a boss. Thanks a bunch.

Would you be able to give me an approximation of around when your weekly version will be really? No pressure of course, just so I can organise myself.

ArVdC commented 1 month ago

I added the weekly repeat and I think this will be the final version, but I prefer to do a few more tests before publishing it.

Pro245Mc commented 1 month ago

oh great, is it in this update? can i test it?

ArVdC commented 1 month ago

Yes it is.

Pro245Mc commented 1 month ago

can you tell me how to use it?

ArVdC commented 1 month ago

Choose a date that corresponds to the day you want to repeat the command. For a repeat every monday set for example date: '2024-07-15' Then set repeatFreq: 'week' and you're done.

Pro245Mc commented 1 month ago

ahhh, amazing. It works perfectly for me ! Thanks so much. Great feature