Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 37 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,39 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.mtihc.minecraft.treasurechest.v8.plugin</groupId>
<artifactId>TreasureChest</artifactId>
<version>8.5</version>
<version>8.6</version>
<name>TreasureChest</name>
<url>http://dev.bukkit.org/server-mods/treasurechest/</url>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository><!-- needed for worldedit 7 -->
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>

<repository>
<id>sk89q-repo</id>
<url>http://maven.sk89q.com/repo/</url>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>

<repository>
<id>milkbowl-repo</id>
<id>vault-repo</id>
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>

<repository>
<id>enginehub-maven</id>
<url>http://maven.enginehub.org/repo/</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<version>3.8.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
Expand All @@ -41,20 +44,37 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.14.1-R0.1-SNAPSHOT</version>
<version>1.16.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Vault API -->
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<exclusions>
<exclusion>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- WorldGuard API -->
<!-- This depends on the Bukkit API, Use this if you need BukkitAdapter -->
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.0.0-SNAPSHOT</version>
<version>7.2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<!-- This doesn't depend on any platform -->
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.6</version>
<scope>compile</scope>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId>
<version>7.2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static OfflinePlayer findOfflinePlayer(String playerName) throws CommandE
OfflinePlayer p = null;
OfflinePlayer[] offlinePlayers = Bukkit.getOfflinePlayers();
for (OfflinePlayer offlinePlayer : offlinePlayers) {
if (offlinePlayer.getName().toLowerCase() == playerName.toLowerCase()) {
if (offlinePlayer.getName().equalsIgnoreCase(playerName)) {
if (p != null) {
throw new CommandException("Found multiple players named \"" + playerName + "\". Try using a UUID instead.");
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ startup: postworld
url: http://dev.bukkit.org/server-mods/treasurechest/
depend: []
softdepend: [Vault, WorldEdit]
version: 8.5
api-version: 1.14
version: 8.6
api-version: 1.16
commands:
treasurechest:
aliases: [tchest]
Expand Down