'''
Get Trolled by Bori by Bori but not by anone else
SERIEOISLY
Just random spawn
'''
from random import randint
from pyspades.constants import *
     
     
def apply_script(protocol, connection, config):
     
    class radomSpawnConnection(connection):
        def on_spawn(self, pos):
            x = randint(0,512)
            y = randint(0,512)
            z = randint(0,64)
            self.set_location((x, y, z))
            self.send_chat("You have Spawned radomly")
            return connection.on_spawn(self, pos)
     
    return protocol , radomSpawnConnection

