Solved Supported characters in config yml

Discussion in 'Plugin Development' started by teej107, Jul 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    teej107

    So from this error:
    Code:
    [17:27:11 ERROR]: Cannot load plugins\UHC\config.yml
    org.bukkit.configuration.InvalidConfigurationException: while scanning an anchor
     
    in "<string>", line 29, column 26:
            signstate1line2team: &b0/32
                                 ^
    expected alphabetic or numeric character, but found /(47)
    in "<string>", line 29, column 29:
            signstate1line2team: &b0/32
                                    ^
    I can assume that (because the stacktrace says so) only characters A-Z, a-z and 1-9 are allowed? And there is no way I can allow '&' and '/' in a yml?
     
  2. Offline

    mythbusterma

    teej107

    You can allow most ASCII characters in your YAML, however since "&" and "/" are control characters, the string they are in must be enclosed in the string literal quotes for YAML ('). This is the same reason why you can't use "\" or " " " in a string in Java.
     
    teej107 likes this.
  3. Offline

    teej107

Thread Status:
Not open for further replies.

Share This Page