Skip to content

Commit

Permalink
Version 2.1 & Config Updater
Browse files Browse the repository at this point in the history
Also Implements #229
  • Loading branch information
Sn0wStorm committed Apr 8, 2020
1 parent 0e58934 commit 44310e0
Show file tree
Hide file tree
Showing 18 changed files with 297 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.dre</groupId>
<artifactId>Brewery</artifactId>
<version>2.0.1</version>
<version>2.1</version>
<name>Brewery</name>

<properties>
Expand Down
30 changes: 29 additions & 1 deletion resources/config/v12/de/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ drainItems:
# Zeit (in Tagen) die Trunkenheitsdaten nach offlinegehen eines Spielers im Speicher verbleiben, um z.B. Kater-Effekte anzuwenden. [7]
hangoverDays: 7

# Ob das craften und das benutzen des Trank-Versiegelungs-Tisches aktiviert ist (2 Flaschen über 4 Holz) [true, true]
craftSealingTable: true
enableSealingTable: true

# Färben der Iteminformationen je nach Qualität während sie sich 1. im Fass und/oder 2. im Braustand befinden [true, true]
colorInBarrels: true
colorInBrewer: true
Expand All @@ -65,6 +69,7 @@ maxBrewsInMCBarrels: 6
# Benutzte Zutaten und andere Brau-Daten werden in allen Brewery Tränken gespeichert. Um zu verhindern,
# dass gehackte clients diese Daten auslesen um Rezepte herauszufinden, können diese encodiert werden.
# Einziger Nachteil: Tränke können nur auf Servern mit dem gleichen encodeKey benutzt werden.
# Wenn Brewery Tränke auf mehreren (Bungeecord) Servern benutzt werden, unten unter 'multiServerDB' eine gemeinsame Datenbank eintragen.
# Dies kann also aktiviert werden um Rezept-cheating schwerer zu machen, aber keine Tränke per World Download, Schematic, o.ä. geteilt werden. [false]
enableEncode: false
encodeKey: 0
Expand All @@ -80,7 +85,7 @@ autosave: 3
debug: false

# Config Version
version: '2.0'
version: '2.1'
oldMat: true


Expand Down Expand Up @@ -421,6 +426,29 @@ useCitadel: true
useLogBlock: true


# -- MultiServer/BungeeCord --
# Wenn Brewery auf mehreren Servern läuft und diese zB mit BungeeCord verbunden sind,
# sollte hier eine gemeinsame Datenbank eingetragen werden.
# Dann wird Betrunkenheit auf den Servern synchronisiert und encodierte Tränke können auf allen Servern benutzt werden.

multiServerDB:
# Soll die Datenbank-Synchronisation aktiviert sein
enabled: false
# Soll die Betrunkenheit von Spielern synchronisiert werden
syncDrunkeness: true
host: localhost
port: '3306'
user: minec
password: xyz
database: base


# -- Verschiedene weitere Einstellungen --

# Ob Items in der Zweithand auch in den Kessel geworfen werden sollen [false]
useOffhandForCauldron: false


# -- Chat Veränderungs Einstellungen --

# Ob geschriebener Chat bei großer Trunkenheit abgefälscht werden soll,
Expand Down
29 changes: 28 additions & 1 deletion resources/config/v12/en/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ drainItems:
# Time (in days) that drunkeness-data stays in memory after a player goes offline, to apply hangover etc. [7]
hangoverDays: 7

# If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]
craftSealingTable: true
enableSealingTable: true

# Color the Item information (lore) depending on quality while it is 1. in a barrel and/or 2. in a brewing stand [true, true]
colorInBarrels: true
colorInBrewer: true
Expand All @@ -66,6 +70,7 @@ maxBrewsInMCBarrels: 6
# hacked clients from reading what exactly was used to brew an item, the data can be encoded/scrambled.
# This is a fast process to stop players from hacking out recipes, once they get hold of a brew.
# Only drawback: brew items can only be used on another server with the same encodeKey.
# When using Brews on multiple (BungeeCord) Servers, define a shared Database below at 'multiServerDB'
# So enable this if you want to make recipe cheating harder, but don't share any brews by world download, schematics, or other means. [false]
enableEncode: false
encodeKey: 0
Expand All @@ -81,7 +86,7 @@ autosave: 3
debug: false

# Config Version
version: '2.0'
version: '2.1'
oldMat: true


Expand Down Expand Up @@ -423,6 +428,28 @@ useCitadel: true
useLogBlock: true


# -- MultiServer/BungeeCord --
# If Brewery is running on multiple connected Servers (via BungeeCord)
# a shared Database can be used here to synchronise drunkeness and to be able to use encoded brews between them.

multiServerDB:
# If using the Database is enabled
enabled: false
# If the drunkeness of players should be synchronised between Servers
syncDrunkeness: true
host: localhost
port: '3306'
user: minec
password: xyz
database: base


# -- Various Other Settings --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- Chat Distortion Settings --

# If written Chat is distorted when the Player is Drunk, so that it looks like drunk writing
Expand Down
29 changes: 28 additions & 1 deletion resources/config/v12/fr/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ drainItems:
# Temps (en jours) pour que les données d'ivresse restent sauvergardées lorsque le joueur est déconnecté, pour appliquer les effets. [7]
hangoverDays: 7

# If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]
craftSealingTable: true
enableSealingTable: true

# Colorer les informations d'objets (lore) au dépend de la qualité dans un tonneau et/ou dans un stand de brassage (l'alambic) [true, true]
colorInBarrels: true
colorInBrewer: true
Expand All @@ -67,6 +71,7 @@ maxBrewsInMCBarrels: 6
# Pour empêcher les clients piratés de lire exactement ce qui a été utilisé pour infuser un élément, les données peuvent être encodées/brouillées.
# Il s'agit d'un processus rapide pour empêcher les joueurs de pirater des recettes, une fois qu'ils mettent la main sur une bière.
# Seul inconvénient: Les boissons brassicoles ne peuvent être utilisés que sur un autre serveur avec la même clé de chiffrement.
# Lorsque vous utilisez des boissons brassicoles sur plusieurs serveurs (BungeeCord), définissez une base de données partagée ci-dessous à "multiServerDB".
# Activez cette option si vous voulez rendre la tricherie des recettes plus difficile, mais ne partagez pas les infusions par téléchargement mondial, schémas ou autres moyens.
enableEncode: false
encodeKey: 0
Expand All @@ -82,7 +87,7 @@ autosave: 3
debug: false

# Version de configuration
version: '2.0'
version: '2.1'
oldMat: true


Expand Down Expand Up @@ -418,6 +423,28 @@ useCitadel: true
useLogBlock: true


# -- MultiServer/BungeeCord --
# Si Brewery est exécuté sur plusieurs serveurs connectés (via BungeeCord), une base de données partagée peut être utilisée
# ici pour synchroniser l'ivresse et pour pouvoir utiliser des boissons codées entre elles.

multiServerDB:
# Si l'utilisation de la base de données est activée
enabled: false
# Si l'ivresse des joueurs devait être synchronisée entre les serveurs
syncDrunkeness: true
host: localhost
port: '3306'
user: minec
password: xyz
database: base


# -- Divers autres paramètres --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- Paramètres de la distorsion du Chat --

# Si le Chat écrit est déformé quand le joueur est ivre, de sorte qu'il ressemble à un chat bourré en train d'écrire
Expand Down
29 changes: 28 additions & 1 deletion resources/config/v12/it/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ drainItems:
# Tempo in giorni che la sbronza resta in memoria dopo che il giocatore va offline, cioè il tempo per cui i postumi della sbornia durano. [7]
hangoverDays: 7

# If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]
craftSealingTable: true
enableSealingTable: true

# Colora la descrizione dell'item in base alla qualità mentre è in un barile o in un alambicco [true, true]
colorInBarrels: true
colorInBrewer: true
Expand All @@ -66,6 +70,7 @@ maxBrewsInMCBarrels: 6
# hacked clients from reading what exactly was used to brew an item, the data can be encoded/scrambled.
# This is a fast process to stop players from hacking out recipes, once they get hold of a brew.
# Only drawback: brew items can only be used on another server with the same encodeKey.
# When using Brews on multiple (BungeeCord) Servers, define a shared Database below at 'multiServerDB'
# So enable this if you want to make recipe cheating harder, but don't share any brews by world download, schematics, or other means. [false]
enableEncode: false
encodeKey: 0
Expand All @@ -81,7 +86,7 @@ autosave: 3
debug: false

# Versione del config
version: '2.0'
version: '2.1'
oldMat: true


Expand Down Expand Up @@ -410,6 +415,28 @@ useCitadel: true
useLogBlock: true


# -- MultiServer/BungeeCord --
# If Brewery is running on multiple connected Servers (via BungeeCord)
# a shared Database can be used here to synchronise drunkeness and to be able to use encoded brews between them.

multiServerDB:
# If using the Database is enabled
enabled: false
# If the drunkeness of players should be synchronised between Servers
syncDrunkeness: true
host: localhost
port: '3306'
user: minec
password: xyz
database: base


# -- Various Other Settings --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- Imostazioni di distorsione della chat --

# If written Chat is distorted when the Player is Drunk,
Expand Down
8 changes: 7 additions & 1 deletion resources/config/v13/de/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ autosave: 3
debug: false

# Config Version
version: '2.0'
version: '2.1'



Expand Down Expand Up @@ -802,6 +802,12 @@ multiServerDB:
database: base


# -- Verschiedene weitere Einstellungen --

# Ob Items in der Zweithand auch in den Kessel geworfen werden sollen [false]
useOffhandForCauldron: false


# -- Chat Veränderungs Einstellungen --

# Ob geschriebener Chat bei großer Trunkenheit abgefälscht werden soll,
Expand Down
8 changes: 7 additions & 1 deletion resources/config/v13/en/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ autosave: 3
debug: false

# Config Version
version: '2.0'
version: '2.1'



Expand Down Expand Up @@ -795,6 +795,12 @@ multiServerDB:
database: base


# -- Various Other Settings --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- Chat Distortion Settings --

# If written Chat is distorted when the Player is Drunk, so that it looks like drunk writing
Expand Down
12 changes: 11 additions & 1 deletion resources/config/v13/fr/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ drainItems:
# Temps (en jours) pour que les données d'ivresse restent sauvergardées lorsque le joueur est déconnecté, pour appliquer les effets. [7]
hangoverDays: 7

# If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]
craftSealingTable: true
enableSealingTable: true

# Colorer les informations d'objets (lore) au dépend de la qualité dans un tonneau et/ou dans un stand de brassage (l'alambic) [true, true]
colorInBarrels: true
colorInBrewer: true
Expand Down Expand Up @@ -83,7 +87,7 @@ autosave: 3
debug: false

# Version de configuration
version: '2.0'
version: '2.1'



Expand Down Expand Up @@ -797,6 +801,12 @@ multiServerDB:
database: base


# -- Divers autres paramètres --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- Paramètres de la distorsion du Chat --

# Si le Chat écrit est déformé quand le joueur est ivre, de sorte qu'il ressemble à un chat bourré en train d'écrire
Expand Down
12 changes: 11 additions & 1 deletion resources/config/v13/it/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ drainItems:
# Tempo in giorni che la sbronza resta in memoria dopo che il giocatore va offline, cioè il tempo per cui i postumi della sbornia durano. [7]
hangoverDays: 7

# If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]
craftSealingTable: true
enableSealingTable: true

# Colora la descrizione dell'item in base alla qualità mentre è in un barile o in un alambicco [true, true]
colorInBarrels: true
colorInBrewer: true
Expand Down Expand Up @@ -82,7 +86,7 @@ autosave: 3
debug: false

# Versione del config
version: '2.0'
version: '2.1'



Expand Down Expand Up @@ -791,6 +795,12 @@ multiServerDB:
database: base


# -- Various Other Settings --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- Imostazioni di distorsione della chat --

# If written Chat is distorted when the Player is Drunk,
Expand Down
12 changes: 11 additions & 1 deletion resources/config/v13/zh/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ drainItems:
# 最大玩家下线记忆时长(单位为天). 饮酒的记忆保持时间, 便于计算宿醉.[7]
hangoverDays: 7

# If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]
craftSealingTable: true
enableSealingTable: true

# 饮品上是否显示带颜色的提示, 颜色由执行步骤的正误决定. 第一项为在熟成酒桶内显示颜色, 第二项为在酿造台内显示颜色.[true, true]
colorInBarrels: true
colorInBrewer: true
Expand Down Expand Up @@ -84,7 +88,7 @@ autosave: 3
debug: false

# 配置文件版本
version: '2.0'
version: '2.1'



Expand Down Expand Up @@ -795,6 +799,12 @@ multiServerDB:
database: base


# -- Various Other Settings --

# If items in Offhand should be added to the cauldron as well [false]
useOffhandForCauldron: false


# -- 口糊设置 --

# 醉酒的玩家会口糊,
Expand Down
Loading

0 comments on commit 44310e0

Please sign in to comment.