Plotz Schematic Downloader
-
The schematic downloader is used to allow your users to download their plot as a schematic file. To do this we set up a small web server on a certain port and address. Users connect to the IP address and they are able to access their builds.
- Enable the web front in the webserver.yml file (/plugins/plotz/webserver.yml)
Code (Text):enabled: true - Set the port for the server to listen on (webserver.yml)
* Note the default http port is 80, so set this to 80 in the instance you want to connect with 1.1.1.1 instead of 1.1.1.1:80
Code (Text):port: 8888 - Set the IP for the server to listen on.
0.0.0.0 or localhost will work best.
Code (Text):host: localhost - Set a value for a maximum number of connections at a time. The default value should work fine in most instances. If you notice you are being cut off, raise the value.
Code (Text):max-connections: 25 - Open the lang.yml file (/plugins/plotz/lang.yml)
- Find the schematic section
Code (Text):
# Schematic
plot-schematic-output: '%prefix% Saved schematic! You can download your schematic at %url%, just type in your name'
plot-schematic-error: '%prefix% An error occured while saving your schematic, please try again later'
plot-schematic-enable: '%prefix% This feature is not enabled, try again later'
plot-schematic-url: 'http://127.0.0.1:8888/schematics/%name%'
plot-schematic-info: '%prefix% Save your plot as a schematic to download'
- Change the plot-schematic-url value to your public IP and port, the name variable will remain the same.
- That's it!
Extra notes: Players are able to spam the /plot schematic command to crash or lag your server, install a command rate limiting plugin such as Command Cooldown
Code (Text):
# Enable the schematic downloader?
enabled: true
# Port the server will listen on
port: 8888
# Log interactions to a file?
log: true
# Host url/ip
host: localhost
# Maximum accepted connections at a time
max-connections: 25
- Enable the web front in the webserver.yml file (/plugins/plotz/webserver.yml)
- Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM