hostlib

by Kuraudo
A cross-platform utility to help determine if a player key has hosting privileges.
Latest Version · Date Added: 5/09/09

If you wish to download this library for your Linux/Mac installation, enter the following on your command line:

DreamDownload byond://Kuraudo.hostlib##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Kuraudo.hostlib##version=0

A small utility to help determine if a player key has hosting privileges. Uses a world's configuration files to determine if someone has the privileges to do hostly things (reboot, shutdown, etc.) so you can give them the proper in-game attention (kick/ban/mute, whatever).

This is useful especially for worlds hosted on Unix systems, which do not set world.key. Using this IsHost() proc in place of checking world.key allows worlds hosted in Linux DreamDaemon instances to properly recognize the world's host.