In API 4.0 all the config code change ? beacause in eclipse i have to much red all in config andsome on command
What is your build.gradle (or pom.xml)?
Make sure your depending on API 4.0.1, as 4.0.0 doesn’t use dependencies right or something…
Edit:
Also, some things changed package
my pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>terrainwax</groupId>
<artifactId>LootCrate</artifactId>
<version>3.0</version>
<name>terrainwax plugin</name>
<description>plugin sponge of terrainwax</description>
<repositories>
<repository>
<id>sponge-maven-repo</id>
<name>Sponge maven repo</name>
<url>http://repo.spongepowered.org/maven</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.spongepowered</groupId>
<artifactId>spongeapi</artifactId>
<version>4.0.3</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
this what he do
this is all the code
when i compile i have this
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project LootCrate: Compilation failure
[ERROR] /C:/Users/maxime/git/Loot_case/Sponge/src/main/java/fr/terrainwax/LootCrate/MainLootCrate.java:[23,1] Plugin ID ‘LootCrate’ should match pattern a-z?
[ERROR] -> [Help 1]
Your plugin id needs to be all lower-case (e.g lootcrate
).
thanks man it’s fix