Skript Version: 2.2-dev36
Skript Author: bensku
Spigot Version: Spigot 1.8.8
My code:
My problem: He sets the prefix, but the id of event-guild in yaml appears <none>, because this, the getprefix isn't works. Sorry for bad english, i'm brazilian.
Skript Author: bensku
Spigot Version: Spigot 1.8.8
My code:
- function setprefix(g: guild, t: text):
- set yaml value "%id of {_g}%.Prefixo" from "§prefix§" to "%{_t}%"
- save yaml "§prefix§"
- function getprefix(g: guild) :: text:
- return yaml value "%id of {_g}%.Prefixo" from "§prefix§"
- discord command setprefix [<text>]:
- aliases: prefixset, prefixo, setarprefix, setarprefixo
- prefixes: {@prf}
- roles: Staff
- trigger:
- arg is set:
- reply with "▫ O prefixo do **Litch** foi alterado para ``%arg%`` neste servidor."
- setprefix(event-guild, arg)
My problem: He sets the prefix, but the id of event-guild in yaml appears <none>, because this, the getprefix isn't works. Sorry for bad english, i'm brazilian.