예제 #1
0
파일: server.py 프로젝트: Jakky89/cuwo
 def save_data(self, name, value):
     return database.save_data(self.db_con, name, value)
예제 #2
0
def setspawn(script):
    """Sets global spawn point."""
    if database.save_data(script.server.db_con, 'globalspawnpoint', [script.connection.position.x,script.connection.position.y,script.connection.position.z]) is True:
        return 'Global spawn point set.'
    return 'Could not set global spawn point!'