Doing this seems too work.
def killtimer(self, name):
timer = Plugin.GetTimer(name)
if timer is None:
return
timer.Stop()
Plugin.Timers.Remove(name)
timer.Kill() doesn't work but .Stop() does :P
Thanks @DreTaX
This module seems to have problems with the datastore and it remembers unloaded plugins even after a restart. Also String.Find(SubString) throws an error.
EDIT: You get randomly disconnected as well. No errors
Going through the logs it has said the timer was using 2 args when 1 men't to be...
Saddly no good.
Tried a few similar to Timer.Stop()
EDIT#1:
When the plugin reads Plugin.KillTimer("VotingTimer") it doesn't throw an error and continues to carry on.
EDIT#2: https://github.com/jakkee/FougeritePlugins/blob/JavaScript/Python/TimeVoter/TimeVoter.py
So this keeps looping over and over. Even with the kill timer.
it does everything else but just loops over everything and broadcasts to the server the results even if there has been no voting.
Ideas?
def VotingTimerCallback(self):
Plugin.KillTimer("VotingTimer")
day =...
Who knows if this works, Let me know :)
Player Commands:
/vote - Shows help
/vote start - Starts a vote
/vote day - Vote for day
/vote night - Vote for night
Admin/Moderator Commands:
/settime [time] - Set the servers time
/vote rig [day/night] - Rigs the vote
Description:
Basic plugin that limits the Rust map to a smaller area where players can only build where resources spawn.
Installation:
- Place into Python folder
- Reload/restart the server
- Done
Commands:
None
To do:
None, Tell me in the discussions.
Description:
Create a blacklist of countries you do not want on your server.
Use this link to find the country codes: Here
You will need: GeoIP
Installation:
http://fougerite.com/threads/how-to-install-c-plugins.387/
(Must restart server if server was running while installing)
Commands:
-...
Here is a Python version.
Not sure if it works.
[EDIT: Removed the ZIP file. Download from here: ']http://fougerite.com/resources/countryblacklist.90/]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.