!Server

The following are core functions built into the QLD Minecraft system

Bridge

Availability: 270+

Sends and retreives data between the QLD Minecraft denizen core and the QLD Minecraft web server.

Minecraft
Denizen
Minecraft

No in-game commands for this function

Denizen
# Syntax
- run qldminecraft.bridge def:[command]|(json_string) save:determination_result
# Returns a list containing [ERR|OK]|(Message)
# Send command 'chat' with a players UUID and message to the web server
- run qldminecraft.bridge 'def:chat|"UUID":"<player.uuid>", "message":"<context.message.url_encode>"'
# Send a bug report and check if it was submitted
- ~run qldminecraft.bridge def:bug_report|<[json_data]> save:result
- if <entry[result].created_queue.determination[1].as_list.get[1]||err> == err:
- narrate 'Error sending bug report'
- else:
- narrate 'Bug report sent'

Bug.report

Availability: 270+

Sends a bug report to the QLD Minecraft web server through the Bridge connector.

This function does not record the details of the bug locally to prevent similar bugs being reported to the Bridge connector.

Minecraft
Denizen
Minecraft

/bug text reporting the bug details

Permission: Anyone

Denizen
# Syntax
- run qldminecraft.bug.report def:[report text] save:result
# Returns either -1 if the report text is invalid or
# A list item as per the Bridge function

Build

Availability: 260+

Retrieve the current build number of the currently running instance of QLD Minecraft.

Minecraft
Denizen
Minecraft

/qm build

Permission: none

Denizen
# Provides an integer of the current version running
<proc[qldminecraftp.build]>

Info

Availability: 260+

Retrieves details about the currently running instance of QLD Minecraft including server information (memory and disk space), Minecraft information (active NPCs and mobs, TPS data), and Denizen information (active scripts)

Minecraft
Denizen
Minecraft

/qm info

Permission: developer

Denizen

Denizen provides this information natively

Reload

Availability: 260+

Reload the QLD Minecraft instance, discarding any unsaved data.

This command should not be run while players are active on the server as it may reset any current progress that is not saved

Minecraft
Denizen
Minecraft

/qm reload

Permission: developer

Denizen
- run qm_server.reload

Save

Availability: 260+

Save all data within the QLD Minecraft to disk.

If you write a module that saves data to disk, it is required to support the on save event in order to participate with this command

Minecraft
Denizen
Minecraft

/qm save

Permission: developer

Denizen
- run qm_server.save

This command should not be called during an on save event as it may cause a loopback

Maintenance

Availability: 260+

Enables or disabled maintenance mode within QLD Minecraft. When enabled, non-developer players are kicked from the server.

Minecraft
Denizen
Minecraft

/qm maintenance <on|off>

Denizen
# to set server maintenance
- run qm_server.maintenance def:[true|false]
# to get if the server is in maintenance (returns true or false if enabled)
<proc[qmp_server.maintenance]>

/qm build
/qm info
/qm motd
/qm reload
/qm save
/qm motd get <line>
/qm motd set <line> <text>
/qm promote <player>
/qm demote <player>
/qm maintenance <on|off>
<proc[qmp_server.build]>
<proc[qmp_server.format.text].context[<text>]>
<proc[qmp_server.format.money].context[<money>]>
<proc[qmp_server.setting.get].context[path]>
<proc[qmp_server.setting.list_keys].context[path]>
<proc[qmp_server.find.player].context[text]>
<proc[qmp_server.find.npc].context[text]>

Build Information