Skip to main content

Configuration

Web/API

Assets

Global Images

The globalImages folder is a folder of images you can put community creation or photos into, which then get chosen randomly and pasted across the site (on banners, backgrounds and more).

Any image you put into the globalImages folder will be put in the cycle.

Images

There are static images used across the application for things like the registration, login, graphics and branding in general. Below is a small table of which file changes which display.

Branding
File NameLocationDescription
siteLogo.png/assetsUsed on the head navigation banner.
meta-siteLogo.png/assetsImage to use for meta tag images and embeds for Discord, Facebook, Twitter.
favicon.ico/assetsSmall sprite icon to be used on browser.
Images
File NameLocationDescription
errorImage.png/assets/imagesImage to use for error pages.
loginImage.png/assets/imagesImage to use for /login page
notFoundImage.png/assets/imagesImage to use for the 404 page.
registerImage.png/assets/imagesImage to use for /register page.

.env (Environment Variables)

PORT=8080
siteAddress=http://localhost:8080
TZ=Australia/Sydney

discordAPIKey=APIKEY
apiKey=KEY

sessionCookieSecret=THISISNOTVERYSECRETANDITHINKYOUSHOULDCHANGEIT

databaseHost=database.example.com
databasePort=4052
databaseUser=USERNAME
databasePassword=PASSWORD
databaseName=DATABASE
ValueDescription
PORTThe port which the application runs off (if you're using a deployment platform like Heroku, this won't be relevant).
siteAddressThe website/domain the application is being deployed to (ensure you don't add a "/")
TZThe timezone of where you are based.
discordAPIKeyThe API for your Discord bot.
apiKeyThe API key for the other plugins to connect into (ensure this is secure, and long!)
sessionCookieSecretThe secret token for user sessions  (ensure this is secure, and long!)
databaseHostThe IP address or server address for the MySQL Server.
databasePortThe port for the MySQL Server.
databaseUserThe username for the MySQL Server account.
databasePasswordThe password for the MySQL Server account.
databaseNameThe name of the Zander database.

config.json

{
"debug": false,
"siteConfiguration": {
"siteName": "My Server",
"tagline": "A Gaming Community",
"keywords": "Minecraft, Gaming, Community, Experience, Crafting, Creativity, Gameplay",
"email": "[email protected]",
"policy": {
"termsOfService": "https://raw.githubusercontent.com/MYSERVER/Legal/master/terms.md",
"rules": "https://raw.githubusercontent.com/MYSERVER/Legal/master/rules.md",
"privacy": "https://raw.githubusercontent.com/MYSERVER/Legal/master/privacy.md",
"refund": "https://raw.githubusercontent.com/MYSERVER/Legal/master/refund.md"
},
"platforms": {
"webstore": "https://tebex.io/",
"discord": "https://discord.com/",
"issueTracker": "https://github.com/",
"knowledgebase": "https://gitbook.com/",
"facebook": "https://www.facebook.com/",
"twitter": "https://twitter.com/",
"instagram": "https://instagram.com/",
"reddit": "https://www.reddit.com/",
"twitch": "https://www.twitch.tv/",
"youtube": "https://www.youtube.com/",
"linkedin": "https://www.linkedin.com/",
"tiktok": "https://www.tiktok.com/"
}
},
"discord": {
"guildId": "GUILDID",
"webhooks": {
"welcome": "WEBHOOKURL",
"networkChatLog": "WEBHOOKURL",
"adminLog": "WEBHOOKURL",
"staffChannel": "WEBHOOKURL"
},
"roles": {
"verified": "ROLEID"
}
}
}

Filter

The filter has 2 part features, a link filter to stop advertising and the like, and a phrase filter to stop profanity and swearing along with the use of varible characters.

You can add links and phrases in the filter.json file and on restart it will enforce them on all platforms.

Join Messages

The use of join messages for when a player joins the Discord and is verified, it will choose from a selection of the messages which you can add to in joinMessages.json Ensure that when you create a join message, include the placeholder %USERNAME% as it will replace

Here is a set list of the out-of-the box ones:

[
"Yo! %USERNAME% just rocked up! Give them a warm welcome!",
"Start celebrating :tada: %USERNAME% has joined the party!",
"All your base belongs to %USERNAME%!!!",
"Welcome %USERNAME%, don't get supply blocked.",
"Hello there! General %USERNAME%!",
"%USERNAME% joined. You must construct additional pylons.",
"Woah! %USERNAME% just rocked up, Welcome!",
"%USERNAME% just rocked up with Diamonds!",
"%USERNAME% was blown up by a Creeper.. sad times.",
"%USERNAME% was slain by a Zombie.. BRUH.",
"%USERNAME% forgot how to use ladders.. oof.",
"%USERNAME% we were expecting you ( ͡° ͜ʖ ͡°)",
"Welcome %USERNAME% we hope you brought cake.",
"Welcome %USERNAME% leave the swords and armour at the door.",
"Swoooosh. %USERNAME% landed safely",
"%USERNAME% just joined. Hide your Diamonds.",
"%USERNAME% has joined the game.",
"%USERNAME% just showed up. Hold my milk."
]

Features

The features file allows you to pick and choose what you want to use for your community.

features.json

{
"announcements": true,
"applications": true,
"discord": {
"commands": {
"legoFlip": true
},
"events": {
"generalKenobi": true,
"guildMemberBoost": true,
"guildMemberVerify": true
}
},
"server": true,
"filter": {
"link": true,
"phrase": true
},
"web": {
"login": true,
"register": true
},

"smDiscord": true,
"smFacebook": true,
"smTwitter": true,
"smInstagram": true,
"smReddit": false,
"smTwitch": true,
"smYouTube": true,
"smLinkedIn": true,
"smTikTok": true
}

Language

Proxy

config.yml

BaseAPIURL: "http://localhost:8080/api"
APIKey: "KEY"

announcementMOTDTopLine: "&e&lMy &2&nMinecraft&r &6&oServer"
announcementTipPrefix: "&7&l[&6&lTIP&7&l]&r "
announcementTipInterval: 10
ValueDescription
BaseAPIURLThe API URL for your instance.
APIKeyThe API key for your API instance to secure requests.
announcementMOTDTopLineThe default top line of the Server MOTD.
announcementTipPrefixThe prefix for the Tip announcements.
announcementTipIntervalThe minute interval of which to send Tip announcements to across the Server.

Hub

config.yml

velocitymultiplier: 3
hub:
world: world
x: 0.5
y: 33
z: 0.5
yaw: -180.0
pitch: 0.0
ValueDescription
velocitymultiplierHow far to have the user flung forward in their seeing direction.
hub.worldThe world name for the Hub map server of which to summon the player to on connection.
hub.xThe x position of which to summon the player to on connection.
hub.yThe y position of which to summon the player to on connection.
hub.zThe z position of which to summon the player to on connection.
hub.yawThe yaw position of which to summon the player to on connection.
hub.pitchThe pitch position of which to summon the player to on connection.

welcome.yml

welcome:
- "&e Welcome to My Server!"
newplayerwelcome:
- "&e&l ========== My Server ========== &r"
- "&9&l Website:&r http://myserver.net"
- "&9&l Discord:&r http://myserver.net/discord"
- " "
- "By joining My Server you agree to our Rules, TOS, and Privacy Policy."
- "Make sure you read the rules. &cUse /rules to read the rules.&r"
ValueDescription
welcomeLine-by-line the noted message to send the user on login as a known player.
newplayerwelcomeLine-by-line the noted message to send the user on login as new player.