Mirreski / Skript

Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
http://njol.ch/projects/skript
7 stars 2 forks source link

Maximum time to add to variable #16

Closed xNorbig closed 9 years ago

xNorbig commented 9 years ago

Maximum time, what u can add to variable in one line is 24 days and 20,52 hours. Please, add eg. add 1 year to {_variable}, but it doesn't works.

Mirreski commented 9 years ago

Timespans are not limited anymore in my version so you can go beyond 24 days.

"add 1 year to {_variable}" doesn't work since you cannot use "year", "month". The "days" is the highest. http://njol.ch/projects/skript/doc/classes/#timespan

But well with my version adding 365 days works fine.

add 365 days to {_variable}
message "%{_variable}%"

https://github.com/Mirreski/Skript/issues/2