MYSQL
The plugin has the option of using a MYSQL database to store player statistics data and player rank data (rank type, rank duration, dates etc).
To enable it you have to activate it in the config.yml file, setting enable to true and adding the MYSQL server data. You can put the name you want to the database. We see in this case that the database is called: eggwarsql
El plugin tiene la opción de usar una base de datos MYSQL para almacenar los datos de las estadísticas de los jugadores y los datos de los rangos de los jugadores (tipo de rango,duración del rango, fechas etc).
Para habilitarlo tienes que activarlo en el archivo config.yml, poniendo enable en true y añadiendo los datos del servidor MYSQL. Puedes poner el nombre que desees a la base datos.Vemos en este caso que la base de datos se llama: eggwarssql
Code (Text):
SQL:
enable: 'true'
host: localhost
port: '3306'
user: root
password: ''
nameBD: eggwarssql
Debes crear dos tablas, una para las estadísticas de los jugadores y otra para los rangos.
You must create two tables, one for player statistics and one for ranks.
Table Data Players
Esta tabla debe tener los siguientes campos. IMPORTANTE: Puedes poner el nombre que quieras pero se debe mantener el orden
This table must have the following fields. IMPORTANT: You can put the name you want but the order must be kept
Table ranks
File confi.yml
Code (Text):
SQL:
enable: 'true'
host: localhost
port: '3306'
user: root
password: ''
nameBD: eggwarssql
nameTablePlayers: players
nameColUUIDTablePlayers: UUID
nameColNames: NAME
nameColGames: GAMES
nameColDeaths: DEATHS
nameColWins: WINS
nameColKills: KILLS
nameColEggsBroken: EGGS
nameTableRanks: ranks
nameColNamesRanks: NAME
nameColDuration: DURATION
nameColDateInit: DATE_INIT
nameColDateEnd: DATE_END
nameColRank: RANK
En esta nueva versión, puedes configurar los rangos a tu gusto. Puedes crear nuevos rango y customizar el nametag de esos rangos. Así los puedes adaptar a los que tengas en tu servidor.
IMPORTANTE:
Si modificas los rangos que el plugin trae por defecto, añades otros etc. debes modificar en el archivo kit.yml los rangos que pueden seleccionar esos kits y también los items que pueden comprar esos rangos.
In this new version, you can configure the ranks to your liking. You can create new ranks and customize the nametag of those ranks. So you can adapt them to the ones you have on your server.
IMPORTANT:
If you modify the ranks that the plugin has by default, add others etc. You must modify the ranks that these kits can select in the kit.yml file and also the items that these ranks can buy.
FILE config.yml
Code (Text):
ranks:
'0':
ranks_name: owner
tag: '&c[OWNER]&f'
'1':
ranks_name: admin
tag: '&2[ADMIN]&f'
'2':
ranks_name: mod
tag: '&5[MOD]&f'
'3':
ranks_name: helper
tag: '&9[HELPER]&f'
'4':
ranks_name: youtube
tag: '&0[&fYOU&cTUBE&0]&f'
'5':
ranks_name: mvpplus
tag: '&6[MVP&c++&6]&f'
Puedes modificar los los kits de los jugadores con rango, los kits de la tienda o los items que se dan a cada jugador en cada rspawn.
You can modify the kits of ranked players, the store kits or the items that are given to each player in each rspawn.
kits.yml
Code (Text):
kits:
'0':
item_id: 274
amount: 1
enchant: 0
level: 0
ranks: vip,vipplus,mvp,mvpplus,helper,mod,admin,owner
name: PICKAXE KIT
surname: A miner's pickaxe
'1':
item_id: 265
amount: 10
enchant: 0
level: 0
ranks: vipplus,mvp,mvpplus,helper,mod,admin,owner
name: IRON KIT
surname: 10 iron ingots to beginning
'2':
item_id: 272
amount: 1
enchant: 0
level: 0
ranks: mvp,mvpplus,helper,mod,admin,owner
name: STONE SWORD KIT
surname: Defend yourself from your enemies
'3':
item_id: 272
amount: 1
enchant: DAMAGE_ALL
level: 1
ranks: mvpplus,helper,mod,admin,owner
name: STONE ENCHANTED SWORD KIT
surname: A special sword
'4':
item_id: 322
amount: 2
enchant: 0
level: 0
ranks: mvp,mvpplus,helper,mod,admin,owner
name: GOLDEN APPLE KIT
surname: Apples with powers
'5':
item_id: 373
amount: 1
enchant: 8194
level: 0
ranks: mvpplus,helper,mod,admin,owner
name: POTION SPEED KIT
surname: More speed to defeat enemies