Jump to content

Adding more chat commands

Not a Bug 1.1.81

mdstapleton30
mdstapleton30

Posted

I would like to add more than one chat command into the json. For instance I would like for players to use /s and /shop. How would I go about adding more lines of code to have that happen?

David

Posted

To include it as proper option I would have to break config again so nothing something Im gonna do right now but you can simply add this line of code into your file

 

[ChatCommand("s")]
void mynewcommand1(BasePlayer player) => player.SendConsoleCommand("chat.say /shop");

 

David

Posted

Changed Status from Pending to Not a Bug

Emil Vad

Posted

Can i ask what file i will have to add that to 🙂

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
155.8k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.