1. I have tried to change my Rust plugin to Universal plugin, so i changed RustPlugin to CovalencePlugin.

    My Usings:
    Code:
    using System;
    using System.Text;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.RegularExpressions;using Oxide.Core;
    using Oxide.Core.Libraries.Covalence;
    My problem is that The name `SendReply' does not exist in the current context
    First i changed all PrintToChat to SendReply, but it isnt work either.

    Code:
    public void Chat(BasePlayer player, string str)
            {
                SendReply(player, $"{Config["Settings", "Prefix"]} " + str);
            }
     
  2. Wulf

    Wulf Community Admin

    SendReply doesn't not exist in Covalence, you can use either player.Reply or player.Message. BasePlayer is also Rust-specific, so keep that in mind.
     
  3. Thanks, i actually solve problem after i send that :p

    Can i use BasePlayer in Universal plugins?
    I need it for all userids etc.
     
  4. Wulf

    Wulf Community Admin

    It wouldn't be a universal plugin if you use BasePlayer. IPlayer is what universal plugins use. If you want to make it universal and still use game-specific code, make sure to enclose the game-specific code in an #if RUST check or whatever the game name is.