AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ND] Commander Management (1.3.0, 2012-04-21) (https://forums.alliedmods.net/showthread.php?t=168626)

1Swat2KillThemAll 10-01-2011 17:43

[ND] Commander Management (1.3.0, 2012-04-21)
 
12 Attachment(s)
  • Description
    • This plugin enables admins to promote players to commander, demote them or even ban them from commanding altogether. (All bans are saved to an SQL database.) It also features mutiny immunity and a nifty command for players to check all applicants for commander.
  • Feature list
    • Console Variables:
      • sm_commander_manager_version PLUGIN_VERSION // [ND] Commander Management System - Version Number (Console flags: Notify and DontRecord)
    • Admin Commands (default admin flag: 'b'):
      • sm_set_commander <player> | Promotes player to commander
      • sm_demote_commander <ct|consortium|emp|empire> | Demotes the current commander.
      • sm_commander_ban <player> [<time (minutes)>] | Bans a player from commanding.
      • sm_commander_unban <player> | Unbans a player from commanding.
    • Player Commands:
      • sm_commander_list | Shows a list of players who have currently applied for commander.
      • sm_commander_bans | Opens a menu showing all commander banned players on the server.
    • Command Overrides:
      • mutiny_immunity - Grants immunity to mutiny, if absent admin flag 'b' will be used.
    • Admin Menu:
      • x. Commander Management
        • Commander Management:
          • 1. Set Commander
            • Select Team:
              • 1. Consortium
              • 2. Empire
                • [1,2] Select Player:
                  • [1, n]. <List of players>
          • 2. Demote Commander
            • Select Commander:
              • 1. (Consortium) <Commander>
              • 2. (Empire) <Commander>
          • 3. Ban from Commander
            • Select Player:
              • [1, n]. <List of players>
                • Select Duration:
                  • 1. this session
                  • 2. 10 minutes
                  • 3. 1 hour
                  • 4. 1 day
                  • 5. 1 week
                  • 6. 1 month
                  • 7. permanently
          • 4. Unban from Commander
            • Select Player:
              • [1, n]. <List of players>
  • Advanced Installation:
    • Put config file in "../nucleardawn/cfg/sourcemod/". (only needed for mysql)
    • Any translation files are optional.
  • Changelog
    • 2012-01-31 (v1.3.0)

      * Fixed issue with unbanning players.
      * Removed files from this thread, everything's still available on bitbucket.
    • 2012-01-31 (v1.2.2)

      * Actually uses 'startmutiny' now.
    • 2011-10-21 (v1.2.1)

      * Fixed translation phrase for admin mutiny immunity.
    • 2011-10-20 (v1.2.0)

      * Updated to use 'startmutiny' to force a commander to resign, and '_promote_to_commander' to promote a player.
    • 2011-10-06 (v1.1.3)

      * Fixed sm_commander_list.
    • 2011-10-04 (v1.1.2)

      * Fixed admin and target being switched after selecting a player to ban.
    • 2011-10-04 (v1.1.1)

      * Extended translations to menus.
    • 2011-10-02 (v1.1.0)

      * Added translations.
      * EDIT (2011-10-03): Set the plugin's URL to this page, fixed line endings.
    • 2011-10-01 (v1.0.0)

      * Initial release.
  • Plans
    • Translations, because (FlyingMongoose fancies them) "there's a market, and sourcemod supports translation FILES, implement them! >.<". - Done
  • License: GNU/AGPLV3
    http://www.gnu.org/graphics/agplv3-155x51.png
  • Links:

Rizla 10-02-2011 06:58

Re: [ND] Commander Management (1.0.0, 2011-10-01)
 
never fail to amaze me, good work :P

Puntje 10-02-2011 08:32

Re: [ND] Commander Management (1.1.0, 2011-10-02)
 
Funny to see how much influence FlyingMongoose still has in it all!

Good job on the plugin. I'm sure we're going to treasure it!! :D

FlyingMongoose 10-02-2011 10:33

Re: [ND] Commander Management (1.1.0, 2011-10-02)
 
Yeah I'm a pushy SOB, but if I see something I know people will use I push the devs to do it right, else they'll end up kicking themselves in the future. Also, I'd approve this, EXCEPT for the unreleased status of the sourcemod version required to run it.

Ultrix Prime 01-01-2012 20:20

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
Get plugin doesn't compile

Ultrix Prime 01-02-2012 01:40

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

commander_management_nd.smx(0) : error 075: input line too long (after substitut
ions)
commander_management_nd.smx(67) : error 010: invalid function or declaration

xcal1bur 01-16-2012 20:10

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
this being updated?

snelvuur 01-17-2012 05:00

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
Seems to work fine here though..

xcal1bur 01-22-2012 16:15

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
Mine crashed the server on certain commands like demote commander.

Kateana 01-27-2012 07:14

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
Quote:

L 01/27/2012 - 11:37:42: [SM] Warning(s) encountered in translation file "commander_management_nd.phrases.txt"
L 01/27/2012 - 11:37:42: [SM] Ignoring translation to invalid language "#format" on line 65.
Setting and demoting commanders often crash the server with no error.

Documentation on setting it up for MySQL?

Convar to disable admin mutiny immunity?

1Swat2KillThemAll 01-31-2012 13:57

Re: [ND] Commander Management (1.2.1, 2011-10-21)
 
Quote:

Originally Posted by xcal1bur (Post 1633175)
this being updated?

Ay, but I forgot to subscribe to this thread.

Quote:

Originally Posted by Ultrix Prime (Post 1623421)
Get plugin doesn't compile

Yes it does ;)
This was made when SM 1.4 wasn't released yet, which is why the web compiler wouldn't work.

Quote:

Originally Posted by Kateana (Post 1639122)
Setting and demoting commanders often crash the server with no error.

"2011-10-20 (v1.2.0)

* Updated to use 'startmutiny' to force a commander to resign, and '_promote_to_commander' to promote a player."

I did not remove the legacy method (which can make the server crash when used at the wrong time) in its entirety, but rather disabled it at compile-time using "conditional compiling". I may have compiled the latest version with the wrong option though, meaning that line 93
Code:

#define PROBLEMS // No, don't do it. 0o
should have been
Code:

//#define PROBLEMS // No, don't do it. 0o
I've updated the plugin and I'm terribly sorry for the inconvenience :/

Quote:

Originally Posted by Kateana (Post 1639122)
Documentation on setting it up for MySQL

The SQL setup (not necessarily MySQL) is quite straightforward; all you need to do is add an entry to databases.cfg and alter commander_management_nd.cfg.

e.g.
../nucleardawn/addons/sourcemod/configs/databases.cfg
Code:

"Databases"
{
    "driver_default"          "mysql"
   
    "default"
    {
        "driver"              "mysql"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                "iq3hjioea3"
        //"timeout"          "0"
        //"port"              "3306"
    }
   
    "storage-local"
    {
        "driver"              "sqlite"
        "database"            "sourcemod-local"
    }
}

../nucleardawn/cfg/sourcemod/commander_management_nd.cfg
Code:

"Config"
{
    "SQL"
    {
        "named_config"      "default"
    }
}

The plugin defaults to SQLite if commander_management_nd.cfg doesn't exist, "named_config" can't be read from it, or connecting to the specified database fails.

Quote:

Originally Posted by Kateana (Post 1639122)
Convar to disable admin mutiny immunity

It uses command overrides instead of a console variable / config file. (Fixed documentation)

tcviper 03-09-2012 04:04

Re: [ND] Commander Management (1.2.2, 2012-01-31)
 
L 03/09/2012 - 10:03:27: [SM] Warning(s) encountered in translation file "commander_management_nd.phrases.txt"
L 03/09/2012 - 10:03:27: [SM] Ignoring translation to invalid language "#format" on line 65.

Jay Dogg 04-14-2012 18:57

Re: [ND] Commander Management (1.2.2, 2012-01-31)
 
I need just a little help cause I maybe missing something. Here is what I have going on in my database.cfg

Code:

"Databases"
{
    "driver_default"        "mysql"
   
    // When specifying "host", you may use an IP address, a hostname, or a socket file path
   
    "default"
    {
    "driver"            "mysql"
    "host"                "**.**.***.*"
    "database"            "gameserver"
    "user"                "******"
    "pass"                "******"
    }
   
    "storage-local"
    {
        "driver"            "sqlite"
        "database"            "sourcemod-local"
    }

    "clientprefs"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
}

Which I already had this set up because Im using sourcemod web admin, sql banning and simple player tracking on my servers.


Here is how my commander_management_nd.cfg


Code:

"Config"
{
    "SQL"
    {
        "database.cfg"      "default"
    }
}

Now Im not sure if my commander_management_nd.cfg is set up right or if I need to have the full path to my database.cfg. Also doesnt this plugin need a table in my database? Most plugins I have ran into with database have some kind of sql file or dump to make the table in the database. Any and all help would be great.


Thanks Jay

1Swat2KillThemAll 04-21-2012 09:47

Re: [ND] Commander Management (1.2.2, 2012-01-31)
 
Quote:

Originally Posted by Jay Dogg (Post 1689303)
I need just a little help cause I maybe missing something. Here is what I have going on in my database.cfg

Code:

...
Which I already had this set up because Im using sourcemod web admin, sql banning and simple player tracking on my servers.

Seems ok.

Quote:

Originally Posted by Jay Dogg (Post 1689303)
Here is how my commander_management_nd.cfg


Code:

...
Now Im not sure if my commander_management_nd.cfg is set up right or if I need to have the full path to my database.cfg.

Should be
Code:

"Config"
{
    "SQL"
    {
        "named_config"        "default"
    }
}

Quote:

Originally Posted by Jay Dogg (Post 1689303)
Also doesnt this plugin need a table in my database? Most plugins I have ran into with database have some kind of sql file or dump to make the table in the database.

It does need database tables, but it creates them automatically.

databomb 06-12-2012 19:00

Re: [ND] Commander Management (1.3.0, 2012-04-21)
 
This plugin was causing crashes whenever we went to use the timed ban feature so I'm just using a separate promote/demote plugin now. Also, we get a translation error spamming the error logs all the time.


All times are GMT -4. The time now is 17:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.