@name E2 Stealer
@inputs 
@outputs 
@persist List:array
@trigger 

runOnChat(1)
if(chatClk(owner())){
    Chat = owner():lastSaid():explode(" ")
    C1 = Chat:string(1)
    switch(C1){
        case "/list",
        hideChat(1)
        print("")
        findByClass(entity():type())
        List = findToArray()
        for(I=1, List:count()){
            List[I, entity]:owner()
            }
        break
        
        case "/take",
        hideChat(1)
        for(I=1, List:count()){
            if(List[I, entity]:owner() == findPlayerByName(Chat:string(2))){
                List[I, entity]:teleport(entity():pos())
                }
            }
        break
        }
    }
