Skip to content
Gregor Steiner edited this page May 6, 2014 · 1 revision

Client

HasFocus()

  • Return value: Boolean focus
  • Returns if the game is in focus

HostAddress()

  • Return value: String IP
  • Get the ip:port of the current connected server

MaxPlayers()

  • Return value: Number slots
  • Get the number of available player slots

PlayerInfo()

  • Return value: Table info
  • Return a table of information for every player on the server

Server

ConCommand(String command)

  • Return value: String output
  • Run a command as if it were ran through the server console

GetBuildHeight()

  • Return value: Number height
  • Get the maximum height a player can build

GetCanSpawnAnimals()

  • Return value: Boolean animals
  • Get if the server can spawn animals

GetCanSpawnNPCs()

  • Return value: Boolean npcs
  • Get if the server can spawn NPCs

GetFlightEnabled()

  • Return value: Boolean flight
  • Get if the server allows players to fly

GetHostName()

  • Return value: String hostname
  • Get the hostname of the server

GetMOTD()

  • Return value: String motd
  • Get the current MOTD of the server

GetOnlineMode()

  • Return value: Boolean online
  • Get if the server is in online mode

GetPVP()

  • Return value: Boolean pvp
  • Get if PVP is enabled on the server

GetViewDistance()

  • Return value: Number distance
  • Get the viewdistance of the server

MaxPlayers()

  • Return value: Number slots
  • Get the number of available player slots

SetBuildHeight(Number height)

  • Return value: nil
  • Set the maximum height a player can build

SetCanSpawnAnimals(Boolean animals)

  • Return value: nil
  • Set if the server can spawn animals

SetCanSpawnNPCs(Boolean npcs)

  • Return value: nil
  • Set if the server can spawn npcs

SetFlightEnabled(Boolean flight)

  • Return value: nil
  • Set if the server allows players to fly

SetHostName(String hostname)

  • Return value: nil
  • Set the hostname of the server

SetMOTD(Boolean pvp)

  • Return value: nil
  • Set if PVP is enabled on the server

SetMOTD(String motd)

  • Return value: nil
  • Set the current MOTD of the server

SetOnlineMode(Boolean online)

  • Return value: nil
  • Set if the server is in online mode
Clone this wiki locally