def setPlayerDimension(self, d, player="Player"):
        '''
        Sets the player's current dimension
        
        :param d: The desired dimension (0 for Overworld, -1 for Nether, 1 for The End)
        :type d: int
        :param player: The UUID of the player
        :type player: str
        '''
        playerTag = self.getPlayerTag(player)
        if "Dimension" not in playerTag:
            playerTag["Dimension"] = nbt.TAG_Int(0)
        playerTag["Dimension"].value = d

        Sets the player's current dimension
        
        :param d: The desired dimension (0 for Overworld, -1 for Nether, 1 for The End)
        :type d: int
        :param player: The UUID of the player
        :type player: str
        
pymclevel/infiniteworld.py