Hello !
Etant donné que c'est impossible d'utiliser mysql en 1.12, est-ce que quelqu'un sait comment utiliser un .csv différent de celui d'origine ?
Exemple:
Tous les .sk utilisent variables.csv (database default) qui se trouve ici: ./plugins/Skript/variables.csv
Mon .sk différent utilise bungeevariables.csv (database bungee) qui se trouve ici: ../bungeevariables.csv
Est-ce possible de par exemple mettre on script load: connect to bungee ?
Edit: Ou alors je mets juste un patterne spécial pour la base de donnée bungee et c'est good ?
config.sk:
bungee:
# The default "database" is a simple text file, with each variable on a separate line and the variable's name, type, and value separated by commas.
# This is the last database in this list to catch all variables that have not been saved anywhere else.
# You can modify this database freely, but make sure to know what you're doing if you don't want to loose any variables.
type: CSV
pattern: bungee.*
file: ../bungeevariables.csv
backup interval: 2 hours
# PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down)
# you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'.
# Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped.
# I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.
# ==== Settings that should not be changed ====
default:
# The default "database" is a simple text file, with each variable on a separate line and the variable's name, type, and value separated by commas.
# This is the last database in this list to catch all variables that have not been saved anywhere else.
# You can modify this database freely, but make sure to know what you're doing if you don't want to loose any variables.
type: CSV
pattern: .*
file: ./plugins/Skript/variables.csv
backup interval: 2 hours
# PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down)
# you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'.
# Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped.
# I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.
Avec la config ci-dessus j'ai testé ce code:
command /nom [<text>] [<text>]:
trigger:
if arg-1 is "set":
set {bungee.name.%player%} to "%arg-2%"
message "Nom défini à %arg-2%"
else if arg-1 is "see":
message "%{bungee.name.%player%}%"
Mais ça ne s'enregistre pas comme souhaité :/
Merci d'avance !