Im new to this libary so i want to make a ping command but how do i make it send a message in this lib?
Solved Sending message to a player?
Discussion in 'Rust Development' started by Tested8, Nov 3, 2017.
-
Wulf Community Admin
What's wrong with the existing Ping plugin?
-
No im learning this lib and i want to do a basic response like /ping and then it will respond pong
-
Wulf Community Admin
-
Why isnt it responding when i do /ping? it says unknown command
[Command("ping")]
void TestCommand(IPlayer player, string command, string[] args)
{
rust.QuoteSafe("pong lol");
} -
Wulf Community Admin
rust.QuoteSafe is not a chat sending method, and [Command] attribute is only for CovalencePlugin types, which I'm thinking your plugin is not one and likely not compiling if that's all you have.
-
could you show how it should look like?
-
Wulf Community Admin
-
rust plugin
-
Wulf Community Admin
Code:using Oxide.Core;namespace Oxide.Plugins { [Info("MyPinger", "Tested8", "1.0.0")] public class MyPinger : RustPlugin { [ChatCommand("hello")] private void HelloCommand(BasePlayer player, string command, string[] args) { PrintToChat(player, "This is the PrintToChat reply"); SendReply(player, "This is the SendReply reply"); } } }
-
thnx <3
-
Is there a way to show a gui?
-
Wulf Community Admin
-
What difference -
Wulf Community Admin
-