<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wesnoth.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pranavwright</id>
	<title>The Battle for Wesnoth Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wesnoth.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pranavwright"/>
	<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/Special:Contributions/Pranavwright"/>
	<updated>2026-05-24T17:44:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=ServerAdministration&amp;diff=42787</id>
		<title>ServerAdministration</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=ServerAdministration&amp;diff=42787"/>
		<updated>2011-05-24T15:52:32Z</updated>

		<summary type="html">&lt;p&gt;Pranavwright: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
The Wesnoth server, [[wesnothd]] provides a simple interface for administering the server from within the game itself.&lt;br /&gt;
&lt;br /&gt;
To issue an administrative command to the server, you must be connected to the server using Wesnoth, and in the lobby. Any text you type into the chat box that '''begins with '/query ' (or '/q ')''' will be considered an administrative command instead of a normal chat message. It will not be relayed to other users, but instead treated as a command by the server.&lt;br /&gt;
&lt;br /&gt;
Most commands are not accessible to normal users. They are only accessible once you have authenticated yourself to the server as an administrator. The way to authenticate yourself as an administrator is to use the command,&lt;br /&gt;
&lt;br /&gt;
'''/query admin &amp;lt;password&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;password&amp;gt; is the administrative password to the server. The administrative password is specified as the passwd attribute in wesnothd.cfg. Naturally the password for a server should be kept a secret. One danger is that if you forget to type '/query ' at the start of a command you may accidentally type the password in a chat message, and let all users on the server know it. If you do this, then notify an administrator who has access to the box as soon as possible, so they can reset the password in wesnothd.cfg. We may provide features to prevent this kind of accident in future versions.&lt;br /&gt;
&lt;br /&gt;
A message from the server should tell you that you have successfully authenticated yourself as an administrator. The server will recognize you as an administrator until the next time you log out of the server. If the server has support for accounts it may also remember and authenticate you automatically as an administrator next time.&lt;br /&gt;
&lt;br /&gt;
== Available commands ==&lt;br /&gt;
&lt;br /&gt;
Note: Moderators of the official Wesnoth servers can utilize these commands [[ServerAdministration_FromIRC|via IRC]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''/query adminmsg &amp;lt;message&amp;gt;''': sends a message to all administrators and also gets logged in case none is on. You can use this to report abuse, rule violations, etc. (available to non-administrators, duh)&lt;br /&gt;
&lt;br /&gt;
'''/query games''': shows how many games have ended in various ways. (available to non-administrators)&lt;br /&gt;
&lt;br /&gt;
'''/query metrics''': shows a simple metrics report of how the server has been performing. (available to non-administrators)&lt;br /&gt;
&lt;br /&gt;
'''/query netstats''': shows some network stats. (available to non-administrators)&lt;br /&gt;
&lt;br /&gt;
'''/query stats''': shows the current number of users and games. (available to non-administrators)&lt;br /&gt;
&lt;br /&gt;
'''/query wml''': shows stats about WML documents and their current memory consumption. (available to non-administrators)&lt;br /&gt;
&lt;br /&gt;
'''/query status [&amp;lt;nickmask&amp;gt;]''': this command will show you a list of users (matching the nickmask) connected to the server, with IP addresses, and how long they have been connected. Note that IP addresses of users are not available to non-administrators, and should be treated as confidential. When used as a non-administrator it just returns the entry of the user.&lt;br /&gt;
&lt;br /&gt;
'''/query motd [&amp;lt;message&amp;gt;]''': this command sets the message of the day that appears as the first message users get when they log on to the server. You can prefix the message with color formatting as described in [[InterfaceActionsWML#.5Bmessage.5D]]. Without argument it returns the current motd. (available to non-administrators)&lt;br /&gt;
&lt;br /&gt;
'''/query msg &amp;lt;message&amp;gt;''': this command will relay the message 'message' to all users on the server, even if they are in a game. The message will appear to come from 'server', so you should write your name as part of the message if it is necessary to show who it comes from. You can prefix the message with color formatting as described in [[InterfaceActionsWML#.5Bmessage.5D]].&lt;br /&gt;
&lt;br /&gt;
'''/query lobbymsg &amp;lt;message&amp;gt;''': this command will relay the message 'message' to all users in the lobby of the server. The message will appear to come from 'server', so you should write your name as part of the message if it is necessary to show who it comes from. You can prefix the message with color formatting as described in [[InterfaceActionsWML#.5Bmessage.5D]].&lt;br /&gt;
&lt;br /&gt;
'''/green &amp;lt;message&amp;gt;''': this command executes the lobbymsg command with green font (alias for '/query lobbymsg @&amp;lt;message&amp;gt;').&lt;br /&gt;
&lt;br /&gt;
'''/red &amp;lt;message&amp;gt;''': this command executes the lobbymsg command with red font (alias for '/query lobbymsg #&amp;lt;message&amp;gt;').&lt;br /&gt;
&lt;br /&gt;
'''/yellow &amp;lt;message&amp;gt;''': this command executes the lobbymsg command with yellow font (alias for '/query lobbymsg &amp;lt;255,255,0&amp;gt;&amp;lt;message&amp;gt;').&lt;br /&gt;
&lt;br /&gt;
'''/query clones''': shows a list of all users that have the same IP address as another one.&lt;br /&gt;
&lt;br /&gt;
'''/query kick &amp;lt;mask&amp;gt; [&amp;lt;reason&amp;gt;]''': this command will disconnect the user matching the given nick or ip mask from the server.&lt;br /&gt;
&lt;br /&gt;
'''/query ban &amp;lt;mask&amp;gt; &amp;lt;time&amp;gt; &amp;lt;reason&amp;gt;''': this command will make the server refuse connections from users matching the given IP mask or the IPs of users matching the nick mask. Existing bans (and their reason!) will be overwritten so you can change the reason for a ban by adding it again.&lt;br /&gt;
&lt;br /&gt;
'''/query gban &amp;lt;mask&amp;gt; &amp;lt;group&amp;gt; &amp;lt;time&amp;gt; &amp;lt;reason&amp;gt;''': this command will make a ban that belongs to a group. They function just like ordinary bans but only the group name is mentioned in the ban listing.&lt;br /&gt;
&lt;br /&gt;
'''/query bans''': shows a list of currently banned IP masks and the reasons for the bans.&lt;br /&gt;
&lt;br /&gt;
'''/query kban &amp;lt;mask&amp;gt; &amp;lt;time&amp;gt; &amp;lt;reason&amp;gt;''': this command is equivalent to 'kick &amp;lt;mask&amp;gt;' 'ban &amp;lt;mask&amp;gt; &amp;lt;time&amp;gt; &amp;lt;reason&amp;gt;' -- i.e. bans the users matching the IP mask or the IPs of users matching the nick mask and disconnects them all in one go. The most common way to ban someone from the server.&lt;br /&gt;
&lt;br /&gt;
'''/query unban &amp;lt;ipmask&amp;gt;''': this command removes the specified IP mask from the ban list.&lt;br /&gt;
&lt;br /&gt;
'''/query ungban &amp;lt;group&amp;gt;''': this command removes all bans in the group.&lt;br /&gt;
&lt;br /&gt;
'''/query searchlog &amp;lt;mask&amp;gt; (or /q sl &amp;lt;mask&amp;gt;)''': this returns the IP a nick matching the mask has used or the nicks that used a matching IP. Unlike status this searches the IP log.&lt;br /&gt;
&lt;br /&gt;
'''/query deny_unregistered_login [yes|no]''': If set to yes the server will refuse to let unregistered users log in. Without an argument the current setting is displayed. There is an alias 'dul' for convenience.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Masks are arguments that can contain wildcards ('*' and '?'). '*' matches any number of characters (including none), and '?' any one character. IP masks are masks that contain at least one '.'.&lt;br /&gt;
&lt;br /&gt;
The time parameter is used to set the time when a ban expires. A simple example is 2D12h which means after 2 days and 12 hours the ban gets removed. Modifiers are: s=seconds, m=minutes, h=hours, D=days, M=months and Y=years (case doesn't actually matter except for minutes (m) and months (M); also you can write the modifiers (partially) out as in 2days12hours). Permanent bans can be set with 'permanent' or '0' as the time argument. We can also set shortcuts like LONG, MEDIUM and SHORT for common ban lengths but none is set yet.&lt;br /&gt;
&lt;br /&gt;
== Future extensions ==&lt;br /&gt;
&lt;br /&gt;
The current administrative interface is fairly primitive. We plan to provide some further extensions in the future, such as,&lt;br /&gt;
&lt;br /&gt;
'''/query mute &amp;lt;nick&amp;gt;''': makes it so that any messages sent by the user with the given nick will not be received by any other user on the server unless they share an IP address with 'nick'. Any games created by 'nick' will likewise not be seen by other users. 'nick' may observe games but will not appear in the observer list, and players of the game will not see any messages they type.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[CommandMode]]&lt;br /&gt;
* [[DebugMode]]&lt;br /&gt;
* [[ChatCommands]]&lt;br /&gt;
* [[ServerAdministration_FromIRC|Server Administration via IRC]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Troubleshooting and Bugs]]&lt;br /&gt;
[http://cvresumewritingservices.org/ resume service]&lt;/div&gt;</summary>
		<author><name>Pranavwright</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=CommandMode&amp;diff=42786</id>
		<title>CommandMode</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=CommandMode&amp;diff=42786"/>
		<updated>2011-05-24T15:51:59Z</updated>

		<summary type="html">&lt;p&gt;Pranavwright: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Command Mode ==&lt;br /&gt;
&lt;br /&gt;
You can access command mode by typing ' ''':''' ' in a single player or multiplayer scenario.&lt;br /&gt;
(Prior to version 1.1.1, you need to type shift - semicolon( ''';''' ). However this isn't possible on all keyboards; if your keyboard doesn't have ':' above ';' you can change the hotkey in the Preferences, or you could edit '''game.cfg''' by hand.')&lt;br /&gt;
&lt;br /&gt;
Note: you can highlight, copy, and paste text in debug mode.&lt;br /&gt;
&lt;br /&gt;
Several vi-like commands are available in command mode. They are defined in ''menu_events.cpp''. In the 1.5 branch, there is a ''':help''' command that lists all available commands, and ''':help ''foo''''' displays more info about command ''foo''. This is more reliable than the list that follows here:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:q or :q!&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:quit the scenario (without prompting)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:w&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:save the game (without prompting)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:wq&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:save the game and quit the scenario (without prompting)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:refresh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:redraw the screen&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:droid&amp;lt;/nowiki&amp;gt; [''side''] [on|off]&lt;br /&gt;
:toggle player on ''side'' between human and AI player. The player/client who controls that side needs to issue this command. If you don't provide ''side'', the current side is assumed.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:muteall&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:toggles muting/silencing of all observers on/off&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:mute&amp;lt;/nowiki&amp;gt; [''username'']&lt;br /&gt;
:mute a specific observer. If no ''username'' is supplied the muted usernames are displayed.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unmute&amp;lt;/nowiki&amp;gt; [''username'']&lt;br /&gt;
:unmute a specific observer. If no ''username'' is given everyone is unmuted. (Doesn't effect the muteall setting.)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:kick&amp;lt;/nowiki&amp;gt; ''username''&lt;br /&gt;
:kick a user in multiplayer. They will be able to rejoin the game. Generally a friendly way to remove someone who is having connection or other difficulties.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:ban&amp;lt;/nowiki&amp;gt; ''username''&lt;br /&gt;
:kick and ban a user in multiplayer by the IP address used by that ''username''. Can be used on users not in the game but on the server. (Of course they won't be kicked then.)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unban&amp;lt;/nowiki&amp;gt; ''username''&lt;br /&gt;
:unban a user by the IP address used by that ''username''. Can be used on users not in the game but on the server.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:control&amp;lt;/nowiki&amp;gt; ''side'' ''username''&lt;br /&gt;
:change the controller for ''side'' (write here the number of the side, the side must be controlled by you) to ''username'' (write here the nick of the player or observer)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:clear&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:clear chat messages&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:debug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:switch debug mode on (does not work in multiplayer). Debug mode is turned off by quitting the game or using the :nodebug command.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:theme&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:bring up theme selection menu&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:nosaves&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:turns off the autosave function&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:show_coordinates (or :sc)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Overlay x,y coordinates on map tiles. 1.5.5 onwards&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:show_terrain_codes (or :tc)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Overlay terrain codes on visible map tiles. 1.5.5 onwards&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:discover&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Show all hidden unit descriptions in the in-game Help. 1.7.0 onwards&lt;br /&gt;
&lt;br /&gt;
===Extra Debugging Commands===&lt;br /&gt;
[[DebugMode]] (:debug) enables additional commands in command mode:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:lua&amp;lt;/nowiki&amp;gt; ''statement''&lt;br /&gt;
:{{DevFeature}} execute a Lua statement&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:nodebug&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:disables debug-mode commands&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:n&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:skip to next scenario by triggering a win event&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:shroud&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:toggles shroud on/off (implemented since 1.3.10)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:fog&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:toggles fog on/off (implemented since 1.3.10)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:gold&amp;lt;/nowiki&amp;gt; ''amount''&lt;br /&gt;
:add ''amount'' gold to the current player's side&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:create&amp;lt;/nowiki&amp;gt; ''unit_type''&lt;br /&gt;
:create a unit of type specified at last selected hex&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unit hitpoints=&amp;lt;/nowiki&amp;gt;''amount''&lt;br /&gt;
:edit units hitpoints&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unit experience=&amp;lt;/nowiki&amp;gt;''amount''&lt;br /&gt;
:edit units experience&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unit&amp;lt;/nowiki&amp;gt; ''attribute=value''&lt;br /&gt;
:when a unit is selected, this will set the unit's ''attribute'' to ''value''. See [[SingleUnitWML]] for possible values.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:unit&amp;lt;/nowiki&amp;gt; ''advances=N''&lt;br /&gt;
:{{DevFeature}} when a unit is selected, this will advance (level up) the unit N times.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:set_var&amp;lt;/nowiki&amp;gt; ''attribute=value''&lt;br /&gt;
:this will set a WML variable to a given value&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:show_var&amp;lt;/nowiki&amp;gt; ''attribute''&lt;br /&gt;
:this will display a popup with the content of the variable&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:throw/fire&amp;lt;/nowiki&amp;gt; ''event_name''&lt;br /&gt;
:throw an event by name, like ''time over'' or ''enemies defeated''. (Only available in 1.3.5 or later.)&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:inspect&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:{{DevFeature}} show a gamestate inspector dialog which allows to see variable info, team info, ai info.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:cl&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:pops up a menu that allows you to move directly to a specified scenario.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:turn&amp;lt;/nowiki&amp;gt; [''number'']&lt;br /&gt;
:{{DevFeature1.9}} change the current turn to the specified number. If no number is provided, the turn number is increased by one.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:turn_limit&amp;lt;/nowiki&amp;gt; [''number'']&lt;br /&gt;
:{{DevFeature1.9}} change the turn limit for the current scenario to the specified number. If no number is provided, or it is -1, the turn limit is switched off.&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;:version&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:Report version and SVN revision level.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[DebugMode]]&lt;br /&gt;
* [[ChatCommands]]&lt;br /&gt;
* [[ServerAdministration]]&lt;br /&gt;
* [[DeveloperResources]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Playing Wesnoth]]&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
&lt;br /&gt;
[http://cvresumewritingservices.org/ resume services]&lt;/div&gt;</summary>
		<author><name>Pranavwright</name></author>
		
	</entry>
</feed>