def minsleft(caller,time=None): """This sets the amount of time remianing on the map. This can only be used when the mapmode is not Coopedit""" if time is not None: UserSessionManager.checkPermissions(caller,"trusted") sbserver.setMinsRemaining(int(time)) return sbserver.minutesRemaining()/60 #todo, fix the api, it shouldn't return seconds...
def minsleft(caller,time=None): """Sets the amount of time remianing on the map. This can also be used in conjuction with #echo. Ex: #echo (minsleft)""" if time is not None: UserSessionManager.checkPermissions(caller,"trusted") sbserver.setMinsRemaining(int(time)) return sbserver.minutesRemaining()/60 #todo, fix the api, it shouldn't return seconds...