All forum data (this website) will be deleted unless you vote to keep the forum.

How can i get a TSPlayer object from the ChestItemChange hook?

Discussion in 'General Discussion' started by Nezbednik, Mar 16, 2020.

  1. Nezbednik

    Nezbednik Level 1

    Apr 18, 2019
    I am making a plugin called "ChestInterface" that does what it sounds like.
    I am stuck on executing a command on a player that takes out an item out of the chest.
    It detects that someone took an item out of the chest but i can't figure out how i can execute a command on that player. I know TShockAPI.Commands.HandleCommand exists, infact i am using it aswell.
    Any idea how?