Jump to content

Config file

Closed 3.1.16

say my name
say my name

Posted

Hi, could you please explain to me how do I do shared settings in config within the admin ranks?

For example how do I use same command for all admin ranks? or enable same plugins for all ranks.

 

{
  "MODES": [
    {
      "Permission": "owner",
      "Priority": 999,
      "Master Level CAREFUL! (Enabling this does the following #Overrides priority, mode & permission system! #Allows to set/get modes for yourself or others! #Overrides limitations by current or lower modes": true,
      "Toggle Commands": [
        "aduty",
        "adminduty"
      ],	  
      "Settings": {
        "On Admin": {
          "Require Reason": false,
          "Autorun Commands Use Forward Slash '/' For Chat-Commands & Leave It Blank For Console-Commands": [],
          "Toggle Groups To Grant (Leave blank to disable)": [],
          "Specified Auth Level (1 = moderators, 2 = owners) Must either be 1 or 2 cannot be below or above": 2,
          "Keep Separate Inventories": true,
          "Teleport Back Upon Exiting": false,
          "Revert On Disconnect, Restart, Reload": false,
          "Ignore Server Violations (Bans, Kicks Etc) (Recommended to keep true)": true,
          "Blocked Commands": [],
          "Admin Outfit": {
            "Enabled": true,
            "Lock Outfit": true,
            "Settings": {
              "(Shortnam::SkinID)": [
                "hoodie::3129041521",
                "pants::3129042451",
                "shoes.boots::3168999824"
              ]
            }
          },
          "Third-Party Plugins": {
            "Blocked Plugins": {
              "Block All": false,
              "Block Specfic": {
                "AdminRadar": false,
                "Vanish": false,
                "Godmode": false
              }
            }
          }
        }
      }
    },
    {
      "Permission": "admin",
      "Priority": 100,
      "Toggle Commands": [
        "aduty",
        "adminduty"
      ],	  
      "Settings": {
        "On Admin": {
          "Require Reason": true,
          "Keep Separate Inventories": true,
          "Teleport Back Upon Exiting": true,
          "Revert On Disconnect, Restart, Reload": true,
          "Admin Outfit": {
            "Enabled": true,
            "Lock Outfit": true,
            "Settings": {
              "(Shortnam::SkinID)": [
                "hoodie::3129041521",
                "pants::3129042451",
                "shoes.boots::3168999824"
              ]
            }
          },
 
          "Third-Party Plugins": {
            "Blocked Plugins": {
              "Block All": false,
              "Block Specfic": {
                "AdminRadar": false,
                "Vanish": false,
                "Godmode": false
              }
            }
          }
        }
      }
    }
	IF I would like to add shared admin settings like admin command, some of the plugins used etc.. 
	admin command
	auto plugins used
  ]
}

So what I am trying to say is this below..

 

{
  "MODES": [
    {
      "Permission": "owner",
      "all the settings unique for the rank"
    },
    {
      "Permission": "admin",
      "all the settings unique for the rank"
    },
	{
	  SHARED SETTINGS GOES HERE?
	},
  ]
}
///////////////////////////////////////////////////////////////////////
{
  {
	  SHARED SETTINGS GOES HERE?
  },
  "MODES": [
    {
      "Permission": "owner",
      "all the settings unique for the rank"
    },
    {
      "Permission": "admin",
      "all the settings unique for the rank"
    },
  ]
}

 

Xray

Posted

To create multiple admin ranks/custom modes
Simply copy the first {
Until the end } Add a comma ,
And You have 2 modes make as many as you want to just make sure PermissionPriority & Toggle Commands are unique 

 

 

Xray

Posted

Changed Status from Pending to Work in Progress

say my name

Posted (edited)

Okay so I understood that one. How can I make that all modes use same command? I don't just want to overwrite few times same commands in the code part of 

 

      "Toggle Commands": [
        "aduty",
        "adminduty"
      ],

 

 

Edited by say my name
Xray

Posted

Hey @say my name

unfortunately, it's not possible to have 1 command for several modes
Each mode requires unique:
Permission,
Priority,
Command

Xray

Posted

Changed Status from Work in Progress to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.