Admin commands

This section gathers all the admin commands that are not in the other sections. Changes made with these commands won't be incorporated in the next version of your map when saved with -smic, they are more like "cheat" commands with a higher rights requirement. The superadmin (the only admin at the beginning of the game) has the required rights, and can give them to other players.
  • -control (cl) ‹Pcolor1›|all(a) [‹Pcolor2›]
    Gives the control of a hero or all heroes, to a player.
    • The first parameter defines what hero to change the owner. You can use a player color to represent one hero, or "all" or "a" to represent all heroes.
    • The second parameter defines what player will be granted the control. If this parameter is not specified, the control will be granted to the player typing the command.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -control all
    -cl teal gy
  • -resetOwners (ro)
    Gives back the control of the heroes to their initial owners. Usefull after using the control command.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -resetOwners
    -ro
  • -setlives (setl) ‹nbLives›
    Changes the number of remaining lives. You must specify an integer number higher or equals to 0.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -setLives 5
    -setl 9999999999999
  • -redRights (redr) ‹boolean status›
    Enables or disables the player red's rights. The player red's rights are to kill heroes, kick players and restart the game.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -redRights 1
    -redr off
  • -autorevive (ar) [‹boolean status› [‹Pcolor›|all(a)]]
    Enables or disables the autorevive for one player or all players.
    • The first parameter defines if the autorevive will be enabled or disabled. If this parameter is not specified, the autorevive will be enabled.
    • The second parameter defines the player whose the autorevive will be enabled or disabled. You can use a player color to represent one player, or "all" or "a" to represent all players.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -autorevive
    -ar on a
    -ar off blue
  • -createHero (crh) [‹Pcolor›|all(a)]
    Creates a hero for one player or all players. With this command you can for example create a hero for a player who is not in the game, and then control it with the control command. If you put no parameter to this command, it will recreate your own hero if this one was deleted.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -createHero
    -crh all
    -crh teal
  • -deleteHero (delh) [‹Pcolor›|all(a)]
    Deletes the hero of one player or all players. With this command you can for example remove the hero of a afk player. It is like if the player were not in the game anymore, but he is still there and his hero can still be recreated. If you put no parameter to this command, it will remove your own hero. If you put the parameter "all" or "a", it will remove all the heroes but yours.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -deleteHero
    -delh a
    -delh pe
  • -canCheat (cc) ‹Pcolor›|all(a) [‹boolean status›]
    Defines who can use the "cheat" and "make" commands, and who can't.
    • The first parameter defines the player whose the "cheat" and "make" rights will be granted or removed. You can use a player color to represent one player, or "all" or "a" to represent all players.
    • The second parameter defines if the "cheat" and "make" rights will be granted or removed. If this parameter is not specified, the rights will be granted.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -canCheat all
    -cc yellow off
  • -setAfkTime (setafkt) ‹time›
    Changes the delay after which a player is considered afk when he doesn't play. The default value is 30 seconds.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -setAfkTime 15
    -setafkt 5.5
  • -setAutoreviveDelay (setard) ‹time›
    Changes the delay after which a hero is revived when the autorevive is enabled. The default value is 4 seconds.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -setAutoreviveDelay 2
    -setard 0
  • -canSave (-) [‹boolean canSave›]
    Allows or not saving the game for all players. If you put no parameter to this command, the state will be considered as "can save". This state of allowing the save or not, is not keeped when saving ingame modifications. To definitely change this state, you have to change it in the JNGP (have a look in the tutorial). By default in MEC, the game save is allowed. When the save is not allowed and that a player saves anyway, the save itself works but loading the game will fail.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -canSave
    -canSave off
  • -saveMapInCache (smic)
    Save the ingame modifications in the gamecache file, "Campaigns.w3v". Warning, the gamecache file can be created/modified in the solo mode only. Have a look in the tutorial to get more information.
    THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.
    Examples
    -saveMapInCache
    -smic
  • -beAdmin (-) ‹Pcolor›|all(a) [‹boolean status›]
    Defines who can have access to the admin commands and who can't. This command works only for the superadmin player. There is only one superadmin player per game and he is the first player of the list : red if there is a red player, blue if there is no red player, etc. This command works like the canCheat command, it's just for the higher access level.
    THIS COMMAND WORKS ONLY FOR THE SUPERADMIN PLAYER.
    Examples
    -beAdmin all
    -beAdmin be off