Plugin not working

Hi there, since update im getting this error - Error while compiling WarCopter: The type or namespace name 'MiniCopter' could not be found (are you missing a using directive or an assembly reference?) | Line: 454, Pos: 61.

What can i do to fix it?

Ah yes, this error message means C# doesn't recognize Minicopter in this line:

if (!(target.GetComponent<BaseVehicle>() is Minicopter)) return;

The problem is: there is no class called Minicopter in Rust's codebase that's directly exposed as Minicopter. The actual entity is usually treated as a BaseVehicle or MiniCopterby name/prefab, not by a specific Minicopter class.

Fix
Since you're checking if the target is a minicopter, you can just check the prefab name instead:

if (target.ShortPrefabName != "minicopter")
{
player.ChatMessage(lang.GetMessage("NotYours", this, player.UserIDString));
return;
}

Or slightly safer, based on the full prefab path:

if (target.PrefabName != MinicopterPrefab)
{
player.ChatMessage(lang.GetMessage("NotYours", this, player.UserIDString));
return;
}

So replace this line:
if (!(target.GetComponent<BaseVehicle>() is Minicopter)) return;

with
if (target.PrefabName != MinicopterPrefab) return;