Added sendToPlayer and sendToAllPlayer method