Config

Default config is as follows.

opblock: true
shownick: true
opdrop: true
notify: true
silent: false
  • opblock - If true the op/deop commands will be blocked by this plugin in chat. If this option is missing in the config it will default to true.
  • shownick - If true the plugin will show player nicks (when set by the player or another plugin along with the player username. If missing in the config it will default to true.
  • opdrop - If true players will have their op status automatically revoked upon quit and must manually reop themselves at join unless they have the bypass node added to their permissions. This option is true by default when missing from the config.
  • notify - If true ops and those with the appropriate node will be notified of usage of commands handled by this plugin in chat. If you set this to false the plugin will still provide notifications to console only. This only toggles chat notifications. By default this is true when missing from the config.
  • silent - If true players who use the handled commands will not get a deny error when they do not have permission to use a command. By default this is false when missing from the config. It only affects the deny message and will not affect chat notices or console notices when the command is used by the player.

The config will change in 2.3. Here is a copy of the default.

op:
  block: true
  drop: true
  intercept: false
  me: true
notify:
  enabled: true
  shownick: true
silent: false
opmetrap:
  enabled: false

I'm using nested options to help with making sense. Hope they do to you. When thinking about the option think group.option...

  • op - This is the block for various op handling functions
    • block - Should op/deop be blocked completely? True by default. Note: DO NOT USE BOTH intercept and block. If both are defined it will only block.
    • drop - Should op be droped on rejoin? True by default.
    • intercept - Should op/deop commands themselves be intercepted and handled. False by default. Note: DO NOT USE BOTH intercept and block. If both are defined it will only block.
    • me - Should opme/deopme commands be available? If you are using intercept you may choose to enable this however the commands will still be registered anyways. True by default.
  • notify - This block determines if notification is enabled and if nicks show. The sub options are self-explanatory so I won't detail them.
  • opmetrap - This group is not implemented. The option here is a dummy only. It is false by default. Enabling it won't do anything.

The code will migrate the old config to the new format however the config is short enough you may opt to just remove the old config, load the new plugin, then reload the config when you set your settings.


Comments

Posts Quoted:
Reply
Clear All Quotes