<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>mux.config package on StompyMUX Documentation</title><link>https://stompymux.com/docs/scripting/packages/mux/config/</link><description>Recent content in mux.config package on StompyMUX Documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://stompymux.com/docs/scripting/packages/mux/config/index.xml" rel="self" type="application/rss+xml"/><item><title>get</title><link>https://stompymux.com/docs/scripting/packages/mux/config/get/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/config/get/</guid><description>&lt;p&gt;Returns the current value of a scalar server configuration directive.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mux.config.get( name )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The exact, case-sensitive directive name, such as &lt;code&gt;mud_name&lt;/code&gt;,
&lt;code&gt;player_name_spaces&lt;/code&gt;, or &lt;code&gt;btech_techtime_multiplier&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;p&gt;The live configured value as a Lua &lt;code&gt;string&lt;/code&gt;, &lt;code&gt;number&lt;/code&gt;, or &lt;code&gt;boolean&lt;/code&gt;. Integer
database references remain numbers. &lt;code&gt;lua_error_reporting&lt;/code&gt; is returned as
&lt;code&gt;&amp;quot;off&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;wizards&amp;quot;&lt;/code&gt;, or &lt;code&gt;&amp;quot;all&amp;quot;&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="errors"&gt;Errors&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;mux.arg.invalid&lt;/code&gt; when the name contains an embedded NUL byte.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.config.not_found&lt;/code&gt; when no directive has that exact name.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.config.unsupported&lt;/code&gt; when the directive exists but is not a readable
scalar.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; game_name &lt;span style="color:#f92672"&gt;=&lt;/span&gt; mux.config.get(&lt;span style="color:#e6db74"&gt;&amp;#34;mud_name&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; names_allow_spaces &lt;span style="color:#f92672"&gt;=&lt;/span&gt; mux.config.get(&lt;span style="color:#e6db74"&gt;&amp;#34;player_name_spaces&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; repair_multiplier &lt;span style="color:#f92672"&gt;=&lt;/span&gt; mux.config.get(&lt;span style="color:#e6db74"&gt;&amp;#34;btech_techtime_multiplier&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;Values are read on every call and are not cached. Lua modules are trusted
server logic, so command-level configuration permissions do not restrict this
API. The function is available during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>