This plugin was developed using Rocket Mod libraries for the Steam game Unturned. This Rocket Mod plugin collects server, player, and chat data recurrently and then saves the retrieved data to a user-configured MySQL database or uploads valid JSON to a web address of your choosing. The API provides an AJAX interface for retrieving the latest JSON-encoded server data. Livemap API responses are then used to update the WebUI maps.
The WebUI portion of this plugin is optional, and is intended only as a default theme for this project. The API may be used independently to support fully custom livemap themes and features.
There are three parts to this plugin:
Livemap Rocket Plugin
Livemap.dll
to your Rocket Mod plugin directoryLivemap.configuration.xml
Livemap.configuration.xml
and configure MySQL database settings (if desired)Permissions.config.xml
<Permission Cooldown="0">hide</Permission>
WebUI
www
folder to your web server.** INFORMATION BELOW HAS CHANGED. API SUPPORT WILL BE ADDED IN UPCOMING UPDATE **
API
Edit www/api/config.api.php
and configure your MySQL database settings
www/api
folder to your web serverSend a GET request to the API to retrieve a JSON-encoded response:
Sending Requests
$.ajax({
dataType: "json",
type: "GET",
url: "api/livemap.api.php",
data: {
livemap: server_id,
filter: null
},
success: function(data) {
console.log(data);
},
error: function(e) {
console.log(e);
}
});
http://www.example.com/api/livemap.api.php?livemap=server_id
; replacing server_id
with your own server instance nameFiltering
By default, a filter
parameter is not required to successfully process an API GET request. When no filter
parameter is passed all of the tables are processed and returned in the request. The tables include livemap_server
, livemap_data
and livemap_chat
.
Table filtering is accomplished by passing a specific MySQL table name to the filter
parameter within an API GET request:
http://www.example.com/api/livemap.api.php?livemap=server_id&filter=livemap_data
livemap_data
table results are returnedPlayer filtering is accomplished by passing a specific player "Steam64ID" (i.e. 7656#############
) to the filter
parameter within an API GET request:
http://www.example.com/api/livemap.api.php?livemap=server_id&filter=7656#############
Server ID
Server Name
App Version
Map Name
Online Player Count
Max Player Count
PvP
Gold / Pro
Has Cheats
Hide Admins
Cycle Time
Cycle Length
Full Moon
Up-time
Packets Received
Packets Sent
Port
Mode
Player Position
Player Rotation
Player Stats
Steam Data
Player IP address
Player status/features
Player Appearance
Livemap Hidden Status
Price:
Requirements:
Resources:
author: Nexis (steam:iamtwidget) <[email protected]>