Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Command and permissions

phil14052 edited this page Oct 14, 2020 · 8 revisions

The main command in the plugin is /cobblegen, but this command has three aliases that can replace the main command. These aliases are:

  • /cobblegenerator
  • /ccg
  • /oregen
  • /oregenerator
  • /generator
  • /gen

In the following section will the main command be used, but can be replaced by the aliases in-game.

Commands Permissions Usage
/cobblegen None by default but you can add it in the config Shows the main GUI to choose between the different tiers
/cobblegen help None Shows all the non-admin commands
/cobblegen tier customcobblegen.tier Shows your current tier
/cobblegen tier (player) customcobblegen.tier.other Shows the current tier of a given player
/cobblegen admin customcobblegen.admin Opens the admin gui (if enabled)
/cobblegen admin reload customcobblegen.admin.reload Reloads the plugin config.yml, lang.yml and the data folder
/cobblegen admin forcesave customcobblegen.admin.forcesave Forces the server to save the data/players.yml file
/cobblegen admin settier (Player) (Class) (Level) customcobblegen.admin.settier Sets the current tier for a specific player
/cobblegen admin givetier (Player) (Class) (Level) customcobblegen.admin.givetier Adds a specific tier to a players purchased tiers list
/cobblegen admin forcebuy (Player) (Class) (Level) customcobblegen.admin.forcebuy Forces a player to buy a tier even if the player can't afford the tier
/cobblegen admin withdraw (Player) (Class) (Level) customcobblegen.admin.withdraw Withdraws a purchased and/or a selected tier from a player

Custom permissions

The plugin gives the ability to make tier "classes". This can, for example, be a VIP class. A custom class is all class besides the "default" class. These classes are only accessible with the right permissions. The permissions are dynamic and change depending on the class name. The custom permission is customcobblegen.generator.custom where ytou replace the "custom" part with the class name. For example, if you had a VIP class for all the people with a VIP rank, then you add the customcobblegen.generator.vip permissions to their rank.

Other permissions

Permissions for signs

Permissions Usage
customcobblegen.signs.use.* Gives permission to use all types of signs
customcobblegen.signs.use.gui Gives permission to use the GUI signs
customcobblegen.signs.use.select Gives permission to use the select signs
customcobblegen.signs.use.buy Gives permission to use the buy signs
customcobblegen.signs.create.* Gives permission to create/remove all types of signs
customcobblegen.signs.create.gui Gives permission to create/removethe GUI signs
customcobblegen.signs.create.select Gives permission to create/remove the select signs
customcobblegen.signs.create.buy Gives permission to create/remove the buy signs

Plugin.yml permissions:

permissions:
  customcobblegen.*:
    description: Gives access to all CustomCobbleGens commands
    children:
      customcobblegen.tier: true
      customcobblegen.admin: true
      customcobblegen.signs: true
      customcobblegen.tier.*: true
      customcobblegen.admin.*: true
      customcobblegen.signs.*: true
  customcobblegen.tier.*:
    description: Allows you to use the /customcobblegen tier command
    default: op
    children:
      customcobblegen.tier: true
      customcobblegen.tier.other: true
  customcobblegen.tier:
    description: Allows you to use the /customcobblegen tier command
    default: true
  customcobblegen.tier.others:
    description: Allows you to use the /customcobblegen tier [player] command
    default: op
    children:
      customcobblegen.tier: true
  customcobblegen.admin.*:
    description: Allows you to use the /customcobblegen admin command
    default: op
    children:
      customcobblegen.admin: true
      customcobblegen.admin.reload: true
      customcobblegen.admin.forcesave: true
      customcobblegen.admin.forcebuy: true
      customcobblegen.admin.settier: true
      customcobblegen.admin.givetier: true
  customcobblegen.admin:
    description: Allows you to use the /customcobblegen admin command
    default: op
  customcobblegen.admin.reload:
    description: Allows you to use the /customcobblegen admin reload command
    default: op
    children:
      customcobblegen.admin: true
  customcobblegen.admin.forcesave:
    description: Allows you to use the /customcobblegen admin forcesave command
    default: op
    children:
      customcobblegen.admin: true
  customcobblegen.admin.settier:
    description: Allows you to use the /customcobblegen admin settier command
    default: op
    children:
      customcobblegen.admin: true
  customcobblegen.admin.forcebuy:
    description: Allows you to use the /customcobblegen admin forcebuy command
    default: op
    children:
      customcobblegen.admin: true
  customcobblegen.admin.givetier:
    description: Allows you to use the /customcobblegen admin givetier command
    default: op
    children:
      customcobblegen.admin: true
  customcobblegen.signs.*:
    description: Allows you to use and create signs
    default: true
    children:
      customcobblegen.signs: true
      customcobblegen.signs.use.*: true
      customcobblegen.signs.create.*: true
  customcobblegen.signs:
    description: Allows you to use the /customcobblegen admin command
    default: op
  customcobblegen.signs.use.*:
    description: Allows you to use all the signs
    default: true
    children:
      customcobblegen.signs: true
      customcobblegen.signs.use.gui: true
      customcobblegen.signs.use.select: true
      customcobblegen.signs.use.buy: true
  customcobblegen.signs.use.gui:
    description: Allows you to use the GUI sign
    default: op
    children:
      customcobblegen.signs: true
      customcobblegen.signs.use: true
  customcobblegen.signs.use.select:
    description: Allows you to use the select sign
    default: op
    children:
      customcobblegen.signs: true
      customcobblegen.signs.use: true
  customcobblegen.signs.use.buy:
    description: Allows you to use the buy sign
    default: op
    children:
      customcobblegen.signs: true
      customcobblegen.signs.use: true
  customcobblegen.signs.create.*:
    description: Allows you to create all the signs
    default: true
    children:
      customcobblegen.signs: true
      customcobblegen.signs.create.gui: true
      customcobblegen.signs.create.select: true
      customcobblegen.signs.create.buy: true
  customcobblegen.signs.create.gui:
    description: Allows you to create the GUI sign
    default: op
    children:
      customcobblegen.signs: true
      customcobblegen.signs.create: true
  customcobblegen.signs.create.select:
    description: Allows you to create the select sign
    default: op
    children:
      customcobblegen.signs: true
      customcobblegen.signs.create: true
  customcobblegen.signs.create.buy:
    description: Allows you to create the buy sign
    default: op
    children:
      customcobblegen.signs: true
      customcobblegen.signs.create: true

Clone this wiki locally