thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: CmdLevel  (Read 4048 times)

Offline BlackMamba

  • Moderator
  • Full Member
  • *
  • Posts: 55
    • BlackMamba's Blog
CmdLevel
« on: September 19, 2010, 06:51:51 PM »
Description: This plugin provides the following commands:

cmdlevel

You can change the command level using !cmdlevel <command> <level>. The plugin
also changes the configuration file of the appropriate plugin. Instead of
!cmdlevel you can also use !bmcmdlevel.

Example:
If you want that the ban command can be used by player with level full admin (level 60) and above, so type:
        !cmdlevel ban 60
or
        !cmdlevel ban fulladmin

If you want that the warn command can be used by player with level admin (level 40) or full admin (level 60), so type:
        !cmdlevel warn 40-60
or
        !cmdlevel warn admin-fulladmin


showcmdlevel

The command level can be shown using !showcmdlevel <command>.

Example:
If you want to know the level of the warn command, type
        !showcmdlevel warn


Changelog

v1.0
  • using level name instead of level is possible
  • checking if level exists
  • debug messages added


Download: http://www.bigbrotherbot.net/forums/downloads/?sa=view;down=91
« Last Edit: September 29, 2010, 12:17:47 AM by BlackMamba »

Offline grosbedo

  • Former Dev. (senate)
  • Sr. Member
  • *****
  • Posts: 258
Re: CmdLevel
« Reply #1 on: September 22, 2010, 04:29:17 PM »
Great addition ! This plugin should be made standard !

Just as a sidenote : your user_agent var is useless, it's used nowhere in your code :/
« Last Edit: September 22, 2010, 04:32:08 PM by grosbedo »

Offline BlackMamba

  • Moderator
  • Full Member
  • *
  • Posts: 55
    • BlackMamba's Blog
Re: CmdLevel
« Reply #2 on: September 25, 2010, 04:36:04 PM »
Thank you for your feedback  :)!

(In the next version user_agent will be removed.)

Offline BlackMamba

  • Moderator
  • Full Member
  • *
  • Posts: 55
    • BlackMamba's Blog
Re: CmdLevel
« Reply #3 on: September 29, 2010, 12:12:59 AM »
There is a new version. You can now using level names like mod, admin, fulladmin and so on instead of the levels.

 


Rate this page +1 at Google Search

anything