Skip to content

Commit 7323cf0

Browse files
committed
- added comments to config.yml
1 parent b22089b commit 7323cf0

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

src/main/java/org/kasun/website/SimpleWebsite.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.kasun.website;
22

33

4+
import org.bukkit.ChatColor;
45
import org.bukkit.plugin.java.JavaPlugin;
56
import org.kasun.website.Utils.Metrics;
67
import org.kasun.website.Utils.StaticLogger;

src/main/resources/config.yml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,52 @@
1-
2-
3-
41
#==============================================================================
5-
# Web Server configuration
2+
# ____ _ _ _ ___ _ ____ _ _ _ ____ ___ ____ _ ___ ____
3+
# [__ | |\/| |__] | |___ | | | |___ |__] [__ | | |___
4+
# ___] | | | | |___ |___ |_|_| |___ |__] ___] | | |___
5+
# Simple Plugin That Lets you host a website on your server
6+
#
7+
# Created by: Kasun Hapangama
8+
# Website: https://ka0un.github.io/simplewebsite/
9+
# GitHub: https://github.com/ka0un/SimpleWebsite
10+
# Discord: https://dsc.gg/sundevs
611
#==============================================================================
712
webserver:
13+
# Website Configurations
814
domain: localhost
15+
# If you are connected a domain to your minecraft server then enter it here.
16+
# you can leave it as localhost if you are not using a domain.
17+
918
indexFile: index.html
19+
# The file that will be loaded when a user visits your website.
20+
# You can change this to any file name you want.
21+
1022
port: 8081
23+
# The port that the webserver will run on.
24+
# You can change this to any port you want.
25+
# you have to allocate the port from your server host before changing this.
26+
# once configured you can access your website by visiting http://localhost:8081 (replace localhost with your domain or server ip)
27+
1128
ssl:
29+
# SSL Configurations
1230
useSSL: false
31+
# If you want to use SSL then set this to true.
32+
# You have to configure the SSL settings below if you want to use SSL.
33+
1334
keystorePassword: test
35+
# The password of the keystore file.
36+
# You can change this to any password you want.
37+
1438
api:
39+
# API Configurations
1540
apiOnly: false
41+
# If you want to use the API only then set this to true.
42+
# This will disable the webserver and only run the API.
43+
1644
whitelistPlaceholders: false
45+
# If you want to whitelist the placeholders then set this to true.
46+
# This will only allow the placeholders that are listed in the whitelist.
47+
# You can add placeholders to the whitelist below.
48+
# This will prevent other parties from accessing your server data.
49+
1750
placeholder-whitelist:
1851
- 'server_online'
1952
- 'server_max_players'

0 commit comments

Comments
 (0)