Jump to content

can i change command

Closed 1.0.4

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

Share this comment


Link to comment

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

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.5k

Files Sold

Total number of files sold.

1.6m

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.