I've been struggle and no idea how to get the month of system time.
Sure, this would get the system time and able to send it on chat. Also, you can subtract or add "a day" or "minutes", you can use the "now" and set it to variables and compare for cooldowns. But it seems there are no way to get what year, month, and day it is now separately.
You'd get "YY/MM/DD 00:00" from the code I've put. I can maybe parse those as texts, remove the first/ last letters, remove the "/" then finally parse the rest of numbers again, but I don't think it's too efficient.
I want to give players an item with a name of "Special Gift (2017/MM)" and check the name to let players open the gift. The skript would fire a lot and the gift is going to be send it on all of loop-player time to time, so I'd rather get the real time month directly.
Is this even possible, or should I take the "parse" option and set it on variables once a day?
Code:
command /test:
trigger:
send "%now%"
You'd get "YY/MM/DD 00:00" from the code I've put. I can maybe parse those as texts, remove the first/ last letters, remove the "/" then finally parse the rest of numbers again, but I don't think it's too efficient.
I want to give players an item with a name of "Special Gift (2017/MM)" and check the name to let players open the gift. The skript would fire a lot and the gift is going to be send it on all of loop-player time to time, so I'd rather get the real time month directly.
Is this even possible, or should I take the "parse" option and set it on variables once a day?