Base life time

Discussion in 'Help Wanted' started by Snake, Oct 3, 2017.

  1. Snake

    Snake New Member

    Joined:
    Oct 1, 2017
    Messages:
    7
    Likes Received:
    1
    Hi. What is the life time of player base? It will delete if player go away from server for example. Or admin must delete it manually? Thanks
     
  2. Legodev

    Legodev Developer Staff Member

    Joined:
    Jul 18, 2016
    Messages:
    241
    Likes Received:
    94
    its not possible to detect if a base is unused right now, to admins have to delete them manually
     
    Snake likes this.
  3. Snake

    Snake New Member

    Joined:
    Oct 1, 2017
    Messages:
    7
    Likes Received:
    1
    Thank you
     
    Legodev likes this.
  4. Snake

    Snake New Member

    Joined:
    Oct 1, 2017
    Messages:
    7
    Likes Received:
    1
    another question) how i can understand that for example some player have base? I dont see in database any relationships. If i delete player from database from table "player" his base (vehicle and loot) on server will delete too?
     
  5. Legodev

    Legodev Developer Staff Member

    Joined:
    Jul 18, 2016
    Messages:
    241
    Likes Received:
    94
    you won't be able to delete an player without deleting his base first, mysql/mariadb won't let you do that
     
  6. Snake

    Snake New Member

    Joined:
    Oct 1, 2017
    Messages:
    7
    Likes Received:
    1
    But how i can delete player base if i dont see in database which players have bases?
     
  7. Legodev

    Legodev Developer Staff Member

    Joined:
    Jul 18, 2016
    Messages:
    241
    Likes Received:
    94
    The database for the objects contains an column names player_uuid.

    Now you simply get the player_uuid whos objects you want to delete, get all ids of these objects, unlink these objects from the world and then you delete these objects. Well deleting the objects should work without unlinking them first but yeah.
     
  8. Snake

    Snake New Member

    Joined:
    Oct 1, 2017
    Messages:
    7
    Likes Received:
    1
    Thanks for your help.
     

Share This Page