Jump to content

can i change command

Closed 1.0.4

Enchantress
Enchantress

Posted

im trying to find which file the command is in i would like to change it like the chat command for players is /gstorage id like to make it /gs i have looked threw cs, config, lang, and data but cannot find it in there at all.  If you have a minute could you please let me know which file it is in so i can change it.  Also great plugin

imthenewguy

Posted (edited)

Your line locations (this is line 1045) will be different to mine as I have an unreleased updated version, but this is what the command snippet looks like.

 

        [ChatCommand("gstorage")]
        void GlobalStorageCMD(BasePlayer player)
        {
            if (!permission.UserHasPermission(player.UserIDString, perms_chat)) return;
            OpenStorage(player);
        }

 

Change the gstorage string to whatever you want the command to be.

image.png

Edited by imthenewguy
Enchantress

Posted

thank you very much. i could not find it last night at all much apprecitated

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.