Duelers Mod Admin CommandsSetting the client side passwordTo enable the admin commands you must know the server admin password as assigned by the server administrator. Set the client side cvar "c_aP" to this password. For example, if the admin password is "letmedoit", then type the following command on the client console:
This will set and record the admin password in your jk2mpconfig.cfg file. You should not ever have to set it again unless it is changed on the server. There is no login procedure! When you connect to the server the client side cvar c_aP is checked by the server. If the client password matched the server admin password the server "marks" you as a valid administrator and enables admin commands for you. Note that if you change the c_aP password while connected, the server may not see the new value until you become a spectator (or disconnect) and then re-join (or reconnect) the game. Admin CommandsMany of the admin commands have two forms. The first form is the console command where you type the command on your console and provide a client name or client number argument. If the client name has spaces or other punctuation in it, a partial string will suffice provided it can un-ambiguously define the client name. If this fails, use the client number instead. The second form is an admin "gun". That is, the command is applied to the client currently targeted in your crosshair. These commands are best bound to special keys in order to use them without the need to access the console. When you use an admin command on another player, the screen will shake for the affected party (and anyone close by) and thunder will sound (again, for those closeby). A message will be displayed on the screen describing the administrative action, and the action will also be logged to the game log file. Admin features can also be controlled by using the m_ac and m_sac cvariables. Use of these cvariables is described in the cvariables section. To get current client information about names and client numbers use the "who" command. This will provide a listing of the current clients, their names and client numbers. To get a listing of available admin commands, type "info". Showmotd: The subject is shown the MOTD. This might help remind them of the server rules to which they should have paid more attention. Teleport and Origin: Teleport will take you directly to any point on the map. You provide x, y, and z as arguments. The Origin command will tell you the x, y and z co-ordinates of your current location on the map. Freeze and Thaw: freeze, thaw, freeze_gun, thaw_gun The subject is frozen or thawed. When frozen, the subject cannot move (save to turn), cannot use their weapon and cannot use any force power. They are still, however, able to talk. Silence and Speak: silence, speak, silence_gun, speak_gun The subject is silenced and forbidden to speak. No broadcast chat, no team chat, no private chat. Bring and Goto: bring, goto The bring command teleports the subject to your location. They will be placed in your line of sight, moving away from you and a short distance away. Find a decent place to bring them to, unless you want to teleport them into a wall or over a cliff. The goto command sends you to the subject's location. Similar to bring, you will be teleported into the subject's line of sight a short distance away from them. This is not particularly safe for you, unless the subject is friendly, as you do not know where they are or where they are looking. Twilight Zone, Reality: tzone, real, tzone_gun, real_gun The subject is sent to the Twilight Zone or restored to reality. While in the twilight zone a player cannot interact with any other player. You can see them and their neat purple aura, but they cant hurt you or bother you in any way. Rename: rename, rename_gun The subject is renamed to "Padawan". Boot: boot, boot_gun The subject is kicked from the server. Setmap: setmap Change the map the server is currently running. The command expects a map name, e.g. ffa_bespin. Macro ScanningThe Duelers/JA server can be configured to direct each (pure) client connecting to scan the client key bindings for macros that are used to emulate key combinations for special moves. By default, this capability is enabled. However, there is much controversy over whether or not binding keys to special move is "bad" or "good". As a server administrator you will have to be the judge. Many users have macros to change skins or hilts or rotate through taunts or select admin commands. These macros are not targeted. However, there are other macros that use movement and attack commands in special sequences to perform difficult manoeuvres flawlessly and effortlessly. A common example is: Blue Stance Lunge Macro:
These macros are targeted and disabled. Here is a description of how the scanning behaves to help you make your decision:
Advanced Ban CapabilitiesDuelers/JA has the same advanced ban code built for Duelers/JO and now used in many other mods. This new code uses a file, ban.dat, to store banned IP addresses rather than a cvariable. The cvariable length limit only allowed a few IP addresses to be banned before running out of space. The file allows you to use the full allowable set of 1024 banned addresses. Furthermore, the new code allows a client to be banned easily from the console (and only the console -- this is not a mod "admin" command). To ban a player, type
The ban command will, find the client_id associated with the player name (or partial substring), kick the player from the server and then add their IP address to the list of banned IP addresses. For managing the ban list, you can:
Enhanced VotingOne of the problems with a mod like duelers/JA that provides so many options is that the folks currently playing on a server may have a different set of likes and dislikes from the administrator of the server. Or as often can be the case the folks playing in the afternoon want a different game from the folks who play in the evening. Generally speaking unless someone on the server has rcon access there is very little you can do about it! Until now that is. Duelers/JA has an enhanced vote system for controlling the behaviour of the mod (or even base game features) is available. By default the new votes are:
These defaults are just examples. This voting system is completely configurable by the admin of the server. The votes are created by setting up any number of sixteen cvars on the server (m_v1, ... , m_v16). The format of the cvars is:
Here is how it works: The client user interface has been extended so that the "Call Vote" menu now includes a section called "Mod". When this section is selected, a Mod Control panel is shown which will contain all of the administratively configured votes. Only the descriptive strings show, so they should be, well, descriptive! When a vote is called, the descriptive string is shown to other players and they can elect to vote for or against the called vote. Just like normal! If the vote is passed, the string of commands in the second half of the vote cvar is executed on the server. These commands should "implement" the change described! For the default votes that come with Duelers/JA the commands are all just setting cvars. I expect most votes will be this simple. For reference and example, here are the default cvar settings: m_v1 = Disable use of Macros:m_ms 1 m_v2 = Enable use of Macros:m_ms 0 m_v3 = Disable use of Jetpack:m_jetpack 1 m_v4 = Enable use of Jetpack:m_jetpack 0 m_v5 = Disable use of Grapple:m_grapple 1 m_v6 = Enable use of Grapple:m_grapple 0 m_v7 = Full Weapons Play (Restart Map):g_weaponDisable 0;map_restart m_v8 = Saber Only Play (Restart Map):g_weaponDisable 65531;map_restart
|