コード例 #1
0
ファイル: servercommands.py プロジェクト: Pat61/hyperserv
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...
コード例 #2
0
ファイル: servercommands.py プロジェクト: crcollins/hyperserv
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...