Skip to content

Instantly share code, notes, and snippets.

@randomdevlol
Last active May 15, 2024 15:57
Show Gist options
  • Save randomdevlol/5b36bdf0972b66d9ed6059b786d78d5a to your computer and use it in GitHub Desktop.
Save randomdevlol/5b36bdf0972b66d9ed6059b786d78d5a to your computer and use it in GitHub Desktop.
Guide to setting up Mineplex's redis

Mineplex Redis Guide

Guide for setting up redis for the Mineplex's hub, arcade, staff server, and server monitor.
Guía para el redis server para Mineplex's hub, arcade, staff server, y server monitor. NOTA: Tu no obtenes ayuda desde yo en espanol porque mi espanol es malo.

English

Questions or issues?

Contact me on my Discord, memes#2030

Steps

  • Get a redis server. Download one here.

  • Run the redis server w/ redis-server binary file

  • If you know the redis syntax, feel free to open the redis-cli. Otherwise, get a gui client like redis desktop manager, connect to the redis server & familiarize yourself with the program a little if you haven't already done so.

  • Make a new key in db0 (all keys will be in this db) named servergroups and with the type of set. For the value, type in Lobby.

Lobby

  • Make a new key named servergroups.Lobby with the type hash. For the key put name and for the value put Lobby. For every key in the table below add a row (with the key being the key in the table & value being the value in the table). Any value with a ! after it can be changed to your liking.
Key Value
prefix Lobby
ram 512!
cpu 1*
totalServers 0
joinableServers 0
portSection 30001!
arcadeGroup false
minPlayers 1
maxPlayers 50!
pvp false
tournament false
tournamentPoints false
serverType dedicated
addNoCheat true
addWorldEdit false!
worldZip lobby.zip!
configPath plugins/Hub
plugin Hub.jar!

Arcade

  • Add a row to servergroups with the value of whatever game type you want, e.g. MIN or SG.
  • Make a new key named servergroups.(The game type) with the type hash. For the key, put name and put the game type for the value. For every key in the table below add a row (with the key being the key in the table & value being the value in the table). Any value with a ! after it can be changed to your liking.
Key Value
prefix GAMETYPE!
ram 512!
cpu 1!
totalServers 0
joinableServers 0
portSection 50001!
arcadeGroup true
minPlayers 1
maxPlayers 20!
pvp true
tournament false!
tournamentPoints false!
serverType Minigames
teamRejoin false!
teamAutoJoin true
teamForceBalance false!
gameAutoStart true!
gameTimeout true!
rewardGems true!
rewardItems true!
rewardStats true!
rewardAchievements true!
hotbarInventory true!
hotbarHubClock true!
playerKickIdle true!
games SurvivalGames!
addNoCheat true
addWorldEdit false!
worldZip arcade.zip!
configPath plugins/Arcade
plugin Arcade.jar!

Player / Event Servers

  • For a mps, run /hostserver in game, /hostevent for an event server. Redis keys should be automatically made for the server.
  • If you don't have the server monitor set up, make a new arcade server and in the config file put serverstatus.group equal to (Your ign) for mps and EVENT for event servers. Then, put serverstatus.name equal to (Your ign)-1 for mps and EVENT-1 for event servers.

Staff Server

  • Follow the arcade steps but instead of the key being servergroups.(Game type) put servergroups.Staff. Put serverstatus.group equal to Staff and serverstatus.name equal to Staff-1.

Server Monitor / Dedicated Server Steps

You need a linux distro to run the server monitor since it uses shell scripts

  • Make a key named serverstatus.dedicated with the type of set. For the value, put something like localhost, it doesn't really matter.
  • Make a key named serverstatus.dedicated.(Whatever you put for the value of the key above) with the type hash. For the key, put name and for the value whatever you put for the value of the key above. For every key in the table below add a row (with the key being the key in the table & value being the value in the table). Any value with a ! after it can be changed to your liking.
Key Value
publicAddress 127.0.0.1!
privateAddress 127.0.0.1!
region US!
ram 3000!
cpu 1!

Espanol

Preguntas o Cuestiones?

Mi Discord es memes#2030. Solo puedo ayudar en ingles, lo siento.

Steps

  • Obtener un servidor redis. Descargas uno aqui.

  • Correr el servidor redis con redis-server archivo binario

  • Si ya sabes el sintaxis de redis, utilizar el redis-cli archivo binario. Si no, obtenes una cliente gui parecido redis desktop manager. Utilizar esto para conectarse al servidor redis y familiarizarse con el programa.

  • Hacer una nueva llave en db0 con el nombre servergroups y con el typo de set y Lobby por el valor

Lobby

  • Hacer una nueva llave con el nombre servergroups.Lobby con el typo hash. Para el llave, name y para el valor, Lobby. Para cada clave en la tabla a continuación, agregue una fila (siendo la clave la clave en la tabla y el valor siendo el valor en la tabla). Cualquier valor con un ! Después puede cambiarse a su gusto.
Key Value
prefix Lobby
ram 512!
cpu 1*
totalServers 0
joinableServers 0
portSection 30001!
arcadeGroup false
minPlayers 1
maxPlayers 50!
pvp false
tournament false
tournamentPoints false
serverType dedicated
addNoCheat true
addWorldEdit false!
worldZip lobby.zip!
configPath plugins/Hub
plugin Hub.jar!

Arcade

  • Agregue una fila a servergroups con el valor del tipo de juego que desee, Ejemplo: MIN or SG.
  • Hacer una nueva llave con el nombre servergroups.(El tipo de juego) con el typo hash. Para el llave, name y el valor es el tipo de juego. Para cada clave en la tabla a continuación, agregue una fila (siendo la clave la clave en la tabla y el valor siendo el valor en la tabla). Cualquier valor con un ! Después puede cambiarse a su gusto.
Key Value
prefix GAMETYPE!
ram 512!
cpu 1!
totalServers 0
joinableServers 0
portSection 50001!
arcadeGroup true
minPlayers 1
maxPlayers 20!
pvp true
tournament false!
tournamentPoints false!
serverType Minigames
teamRejoin false!
teamAutoJoin true
teamForceBalance false!
gameAutoStart true!
gameTimeout true!
rewardGems true!
rewardItems true!
rewardStats true!
rewardAchievements true!
hotbarInventory true!
hotbarHubClock true!
playerKickIdle true!
games SurvivalGames!
addNoCheat true
addWorldEdit false!
worldZip arcade.zip!
configPath plugins/Arcade
plugin Arcade.jar!

Player / Event Servers

  • Para un mps, correr /hostserver en el juego, /hostevent para un servido evento. Llaves de redis deben hacerse automáticamente para el servidor.
  • Si no tienes el server monitor, hacer un nuevo servido arcade. En el archivo config, hacer serverstatus.group igual a Su nombre de usario para un servido mps y EVENT para servidores eventos. Luego hacer serverstatus.name igual a (Su nombre de usario)-1 para servidor mps y EVENT-1 para servidores event.

Staff Server

  • Usar el pasos de arcade pero el llave es servergroups.Staff. Hacer serverstatus.group igual a Staff y serverstatus.name igual a Staff-1

Server Monitor / Dedicated Server Steps

Necesitas un distribución de linux para correr el server monitor

  • Hacer un nueva llave con el nombre serverstatus.dedicated con el tipo de set. El valor es localhost.
  • Hacer un nueva llave con el nombre serverstatus.dedicated.localhost con el tipo de hash. Para el llave poner name y para el valor localhost. Para cada clave en la tabla a continuación, agregue una fila (siendo la clave la clave en la tabla y el valor siendo el valor en la tabla). Cualquier valor con un ! Después puede cambiarse a su gusto.
Key Value
publicAddress 127.0.0.1!
privateAddress 127.0.0.1!
region US!
ram 3000!
cpu 1!
@Lewis12KBest
Copy link

Hey, any chance you can accept my Discord friend request? I'm Gilroes#6557 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment