Closed Ciph3r-Zer0 closed 2 years ago
Seems like the snakeyaml
version your plugin is using is not updated to the required version used by Simple-YAML, so the setIndentWithIndicator
method is not found because is using an outdated version of snakeyaml. Maybe Velocity already includes an old version of snakeyaml and then Simple-Yaml tries to use that snakeyaml version? Assuming you're using maven, you can see if there is some maven dependency clash with: mvn dependency:tree -Dverbose
If there is a version clash, you can try including explicitly in your pom.xml
the version specified by Simple-Yaml pom.xml, which in the v1.8 is snakeyaml latest version 1.30
:
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.30</version>
</dependency>
You could instead include it inside a dependencyManagement
section:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.30</version>
</dependency>
</dependencies>
</dependencyManagement>
Or use an exclusion to the Velocity dependency:
<exclusions>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
Related info:
Related issues:
It solved the issue, thanks
I tried using Simple-Yaml library with a plugin for Velocity (https://velocitypowered.com) which is a minecraft proxy, but the issue is it gives out this error:
If you need any code from the project here is my YML model class: https://github.com/Ciph3r-Zer0/Eris/blob/master/src/main/java/ir/ciph3r/eris/storage/yml/model/YMLModel.java and here is the Config class: https://github.com/Ciph3r-Zer0/Eris/blob/master/src/main/java/ir/ciph3r/eris/storage/yml/Config.java