Skip to content

Web Editor

Conorsmine edited this page Oct 14, 2023 · 4 revisions

This section will give a short overview of the web editor provided by the plugin.

Web Editor Command

Usability:
Full command: /pdm editor <target>
Permission: pdm.web.editor
The command provides a link to a website, e.g. http://<IP>:<port>/editor?id=<random uuid>.
The UUID in the link is random and not connected to the player!

Apply Command

Usability:
Full command: /pdm apply <cmdCode>
Permission: pdm.web.apply
This command applies the changes made in the web editor too the server.

Web Editor

After using the editor command to gain access to an editor you will be greeted with something, which should roughly look like this:

After going through the editor and making the changes needed, press the green "⎙ Save" button.
Once you click on the button, a popup will appear:

Execute the provided command on your server. After which the changes you made should be applied to the player.
If any issue should have occurred, use the errorReport command to create an error log and submit an Issue or contact me directly.

Note: This is the first time I've created such a website or the code affiliated with it;
Any tips and suggestions would be greatly appreciated.
Furthermore, the editor does not support "hot reloading"; It will not update to the current state of the player upon reloading.

Clone this wiki locally