server.isPersonal: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Server.isPersonal to server.isPersonal: Converting page titles to lowercase)
m (Added description; fleshed out the rest of the page)
 
Line 1: Line 1:
{{stub}}
{{MacroFunction
{{MacroFunction
|name=server.isPersonal
|name=server.isPersonal
|version=1.12
|version=1.12
|description=
|description=The variable ''server.isPersonal'' returns whether the local machine is using a personal server.
 
<br/>
All MapTool instances ''must'' have a server running of some type.  There are two choices: either a ''personal'' server (meaning that it is not listening for incoming connections), and a true ''server'' (meaning that incoming connections will be accepted, assuming that there are no other constraints like firewall settings).
|usage=
|usage=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>


Returns {{code|true}} if the local machine is hosting a Personal server (meaning no Internet-connected server at all) and {{code|false}} otherwise.
|also=
{{func|server.isHosting}}, {{func|server.isServer}}
}}
}}
[[Category:Server Function]]
[[Category:Server Function]][[Category:Macro Function]]

Latest revision as of 05:10, 6 June 2023

server.isPersonal() Function

Introduced in version 1.12
The variable server.isPersonal returns whether the local machine is using a personal server.


All MapTool instances must have a server running of some type. There are two choices: either a personal server (meaning that it is not listening for incoming connections), and a true server (meaning that incoming connections will be accepted, assuming that there are no other constraints like firewall settings).

Usage

server.isPersonal()

Returns true if the local machine is hosting a Personal server (meaning no Internet-connected server at all) and false otherwise.


See Also