I have tried to change my Rust plugin to Universal plugin, so i changed RustPlugin to CovalencePlugin.
My Usings:
My problem is that The name `SendReply' does not exist in the current contextCode:using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions;using Oxide.Core; using Oxide.Core.Libraries.Covalence;
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); }
Solved SendReply won't work with CovalencePlugin
Discussion in 'Rust Development' started by Exel80, Sep 9, 2016.
-
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.
-
Thanks, i actually solve problem after i send that

Can i use BasePlayer in Universal plugins?
I need it for all userids etc. -
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.
