Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Suggestions releated to time events/expressions etc

Open marium0505 opened this issue 10 years ago • 3 comments

Hello.

First off, I want to thank you for an awesome and great plugin! Skript has given me the chance to work on my own scripts/plugins without too much knowledge about programming, and an (mostly) easy to read documentation about its features.

Thank you very much for that. I hope Skript will never die!

Secondly, over to the main reason for making this "issue".

.1 The "At time" even is without any doubt great.

But the "At Time" event s currently only in game time, not server/IRL time. This is one of the things I highly miss with Skript, since that would give me a whole bunch of things to do without having to set up advanced scripts with lots of variables etc.

So, to short this suggestion to a short line: Suggestion: Add a "At Server Time" event, using the server time instead of the in game time.

  1. The "Every" event is also cool, but has some highly needed improvements in my opinion.

The event depends on when the server, Skript and the script was loaded. I personally think this should be changed to when a new hour/day etc starts.

I will give a few examples to explain what I mean with this.

Example 1: "every hour" If the script was loaded at 05:05, will the code be run every xx:05.

I want it to be run every 05:00.

Example 2: "every day" Script loaded at 7:30, the script will run every day at 7:30

Instead, it should run every day at 00:00

This should either be the only way to use the "every" event, or it should be optional, maybe add a new event using this, like a "every new" event or something.

  1. I generally think that features with date and time is very limited, the date and time format is global, while it would be great if you could change it per script, or at least change it somehow in the script without using too much variables, conditions and effects.

Also, more expressions for time would be great, I would personally be very happy if most of of the format letters here: http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html was added, since that will make it much easier to use date and time in script.

I understand if all those suggestions are complicated. But if you add those suggestions, it will be a lot easier to use scripts which uses dates and time. It would even make some scripts which were previously impossible, possible without running events every second, which would be require a lot of resources from the server.

The suggestions might be hard to code, but I think that all the good things the suggestions/coding results in will make the coding worth it.

Once again, thank you very much for Skript, and I hope with all my heart (:P) that the suggested features gets added soon. :)

Regards, Marium0505

marium0505 avatar Apr 24 '14 11:04 marium0505

I'm sorry to bother you, I won't reply again until you have, but just wanted to know if you have seen this issue and considered my suggestions. :)

I really hope you can add them.

marium0505 avatar Apr 25 '14 23:04 marium0505

The ability to use this too would be cool: http://en.wikipedia.org/wiki/Cron#Predefined_scheduling_definitions

marium0505 avatar May 04 '14 13:05 marium0505

I really hope this will be added soon!

marium0505 avatar Feb 07 '15 20:02 marium0505