C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Oxide.Plugins
{
[Info("PrefabDetect", "SkuliDropek", "1.0.0")]
internal class PrefabDetect : RustPlugin
{
void OnWorldPrefabSpawned(GameObject gameObject, string category)
{
Puts(gameObject.name);
}
bool CanNetworkTo(BaseNetworkable entity, BasePlayer target)
{
if (target.UserIDString == "76561198390862312")
{
Puts(entity.gameObject.name);
}
return true;
}
}
}