So I was trying to make a lil timer for airdrop in my main plugin (misc plugin for my server) with a command to start/stop the run but I can't get the callback to run.
then the callback is supposed to be evt.Name + "Callback" so:
I don't have any test to know if the timer has already been started yet, just trying to figure how timers work as I never get the broadcast even if setting the timer to 10000, 1000, 100 lol (I believe the number should be in milliseconds so 10000 = 10sec.
Python:
if command == "testtimer":
Plugin.CreateTimer("droptimer", 60000).Start() #that's 60sec right ? for test only :)
Player.Message("Airdrop timer Started")
Python:
def droptimerCallBack(self, timer):
Server.Broadcast("TimerCallBackOccured!")
Last edited: