Difference between revisions of "Commands"
From StarMade Wiki
(→Console Commands) |
|||
Line 9: | Line 9: | ||
|- | |- | ||
! Command !! Sample !! Parameters !! Description | ! Command !! Sample !! Parameters !! Description | ||
− | |||
− | |||
|- | |- | ||
| give || /give schema Power 100 || PlayerName(String), ElementName(String), Count(Integer) || Gives player elements by name. | | give || /give schema Power 100 || PlayerName(String), ElementName(String), Count(Integer) || Gives player elements by name. |
Revision as of 17:22, 11 October 2017
All commands are executed by typing a forward slash / in the chat window, followed by the command.
To use the auto-complete feature, type a slash / and press TAB to list all commands that are available to you. Pressing TAB after you have typed part a command will list all available commands that start with what you have written. If there is only one option available, the command will then auto-complete for you. Note that if variables are a necessary component of the command, those variables will still need to be typed before the command will execute.
Console Commands
Command | Sample | Parameters | Description |
---|---|---|---|
give | /give schema Power 100 | PlayerName(String), ElementName(String), Count(Integer) | Gives player elements by name. |
giveid | /giveid Schema 2 100 | PlayerName(String), ElementName(String), Count(Integer) | Gives player elements by ID. |
give_credits | /give_credits Schema 10000 | PlayerName(String), Count(Integer) | Gives player credits. |
give_all_items | /give_all_items Schema 100 | PlayerName(String), Count(Integer) | Adds every item for a player. |
give_category_items | /give_category_items Schema 20 100 | PlayerName(string), Count(Integer), Terrain/Ship/Station(String) | Adds all items from a category for a player. |
save | /save myNewShip | CatalogName(String) | Saves the currently entered/selected object in the catalog. |
list_ships | /list_ships | - | Lists the current ship catalog. |
load | /load mySavedShip myIngameShip | CatalogName(String), ShipName(String) | Loads the object and places it in the nearest available spot. |
set_spawn | /set_spawn | - | Sets the spawnpoint for this player to the current position. |
jump | /jump | - | Jump to an object in the line of sight if possible. |
daytime | /daytime 12 | TimeInHours(Integer) | Sets the time of day in hours. |
search | /search myLostShipName | Ship/StationName(String) | Displays the sector of a ship/station by that name. |
teleport_self_home | /teleport_self_home | - | Teleports the currently controlled entity to the players spawnpoint. |
start_ship_AI | /start_ship_ai-1 | FactionID(Integer) | Will make current ship into an AI for a faction. |
stop_ship_AI | /stop_ship_ai | - | Stops current ship from acting like an AI. |
shop_restock | /shop_restock | - | Restocks the selected shop with items. |
spawn_item | /spawn_item Power 100 | BlockName(String), Count(Integer) | Spawn an item in front of you. |
change_sector | /change_sector 2 2 2 | X(Integer), Y(Integer), Z(Integer) | Teleports the current player to another sector. |
destroy_entity | /destroy_entity | - | Destroys the selected entity. |
destroy_entity_dock | /destroy_entity_dock | - | Destroys the selected entity and all docked children entities. |
spawn_mobs | /spawn_mobs mySavedShip -1 3 | CatalogName(String), FactionID(Integer), Count(Integer) | Spawn AI from catalog with factionID in random places around you. |
spawn_mobs_line | /spawn_mobs_line mySavedShip -1 3 | CatalogName(String), FactionID(Integer), Count(Integer) | Spawn AI from catalog with factionID at the point you are looking at. |
initiate_wave | /initiate_wave 5 20 | Level(Integer), Seconds(Integer) | Initiates an enemy wave. |
Administrator Commands
Command | Sample | Parameters | Description |
---|---|---|---|
server_message_broadcast | /server_message_broadcast info "Hello server!" | info, error(String), Message(String, in quotes) | Broadcasts a given message with the given level of severity. |
kick | /kick Schema | PlayerName(String) | Kicks this player from the server. |
kill_character | /kill_character Schema | PlayerName(String) | Kills the entity with that name. |
last_changed | /last_changed | - | Shows the unique ID of the players that spawned and/or last modified the selected structure. |
ban_name | /ban_name Schema | PlayerName(String) | Bans this player name from the server. |
ban_ip | /ban_ip 133.713.371.337 | PlayerIP(String) | Bans this player IP from the server. |
list_banned_name | /list_banned_name | - | Lists all banned player names. |
list_banned_ip | /list_banned_ip | - | Lists all banned player IP's. |
unban_name | /unban_name Schema | PlayerName(String) | Unbans this player name on the server. |
unban_ip | /unban_ip 133.713.371.337 | PlayerIP(String) | Unbans this player IP on the server. |
teleport_to | /teleport_to Schema 0.0 1.0 3.5 | PlayerName(String), X(Float), Y(Float), Z(Float) | Teleports the currently controlled entity. |
teleport_self_to | /teleport_self_to 0.0 1.0 3.5 | X(Float), Y(Float), Z(Float) | Teleports the currently controlled entity. |
change_sector_for | /change_sector_for Schema 2 3 4 | Player(Integer), X(Integer), Y(Integer), Z(Integer) | Teleports any player to another sector. |
tp_to | /tp_to Schema | PlayerName(String) | Warp to player's position. |
tp | /tp Schema | PlayerName(String) | Warp a player to your position. |
add_admin | /add_admin Schema | PlayerName(String) | Gives admin rights to this player. |
list_admins | /list_admins | - | Lists all players with admin rights. |
remove_admin | /remove_admin Schema | PlayerName(String) | Removes admin rights from this player. |
force_save | /force_save | - | The server will save all data to disk. |
shutdown | /shutdown 120 | TimeToShutdown(Integer) | Shuts down the server after specified time (negative values will stop any ongoing countdown). |
god_mode | /god_mode schema true | PlayerName(String), Enabled(Boolean) | Enables/disables god mode for a player, making them invincible. |
invisibility_mode | /invisiblity_mode schema true | PlayerName(String), Enabled(Boolean) | Enables/disables invisibility mode for a player, making them invisible for other players. |
Faction Commands
Command | Sample | Parameters | Description |
---|---|---|---|
faction_create | /faction_create myNewFaction lazers4all | FactionName(String), Description(String) | Creates a name with this name and description. |
faction_edit | /faction_edit 1001 myNewFaction lazers4all | FactionID(Integer), FactionName(String), Description(String) | Edits a faction. |
faction_delete | /faction_delete 1001 | FactionID(Integer) | Deletes this faction. |
faction_list | /faction_list | - | Lists all current the servers factions. |
faction_join_id | /faction_join_id Schema 1001 | PlayerName(String), FactionID(Integer) | Adds this player to the faction belonging to this ID. |
faction_list_members | /faction_list_members 1001 | FactionID(Integer) | Lists all members of this faction. |
faction_set_id_member | /faction_set_id_member Schema 1001 | PlayerName(String), FactionID(Integer) | Sets a player to a faction ID (Debugging tool, doesn't replace join!) |
faction_mod_member | /faction_mod_member Schema 1 | PlayerName(String), Role(1-5)(Integer) | Sets a player to a role within the faction. |
faction_del_member | /faction_del_member Schema 1 | PlayerName(String), FactionID(Integer) | Removes a player from the faction. |
faction_mod_relation | |||
faction_reinstitute | /faction_reinstitute | - | Adds ID's to players from faction members. |
faction_check | /faction_check | - | Checks sanity of factions (removes leftover/invalid factions). |
Advanced Commands
Command | Sample | Parameters | Description |
---|---|---|---|
debug_fsm_info | /debug_fsm_info false | true/false(boolean) | Shows FSM state of objects (Debug Command: slows down network.) |
repair_sector | /repair_sector 2 3 4 | X(Integer), Y(Integer), Z(Integer) | Attempts to correct the registry of a sector. |
restruct_aabb | /restruct_aabb | - | Reconstructs the AABB's of all objects on the server. |
sector_chmod | /sector_chmod 10 12 15 10 10 | SectorX(Integer), SectorY(Integer), SectorZ(Integer), +/-(String), peace/protect(String) | Changes the sector mode: example '/sector_chmod 8 8 8 + peace', available modes are 'peace'(no enemy spawn), 'protect'(no attacking possible). |
despawn_all | /despawn_all MOB unused true | ShipNameStart(String), Mode(used/unused/all)(String), ShipOnly(Boolean) | WARNING: this will delete the entites that start with the given pattern from the database! |
despawn_sector | /despawn_sector MOB_ unused true 2 2 2 | ShipNameStart(String), Mode(used/unused/all)(String), ShipOnly(Boolean), X(Integer), Y(Integer), Z(Integer) | WARNING: this will delete the entites of a sector that start with the given pattern from the database! |
populate_sector | /populate_sector 2 2 2 | X(Integer), Y(Integer), Z(Integer) | WARNING: this will populate the sector. Use this as a reset after using /despawn_sector! |
debug_id | /debug_id 1 | ID(Integer) | Sets the ID of an object to debug. |
catalog_enemy_spawnable | /catalog_enemy_spawnable mySavedShip | CatalogName(String) | Makes a catalog entry spawnable / not spawnable by enemies. |
update_shop_prices | /update_shop_prices | - | Updates the prices of all shops instantly. |
refresh_server_msg | /refresh_server_msg | - | Refreshes the server welcome message. |
build_mode_shift_speed | //build_mode_shift_speed 50 | //build_mode_shift_speed (Integer) | Changes how fast your camera moves while holding shift in build mode (10 is the Default speed. Integer can be a decimal. Double slash "//" is necessary in order for this command to work). |
orbital_cam_speed | //orbital_cam_speed 0.5 | //orbital_cam_speed (Integer) | Changes how fast your camera orbits around the entity you are in by holding '\' (blackslash) The integer relates to the number of rotations per second, can be a decimal.(1 is default speed. Double slash "//" is necessary in order for this command to work). |