Skip to content

Commit

Permalink
Update examples/ pom.xml and build.gradle files to depend on the NBT …
Browse files Browse the repository at this point in the history
…API to use NBTContainer because we're no longer shading the NBT API with the CommandAPI (Bukkit) plugin
  • Loading branch information
JorelAli committed Jan 1, 2024
1 parent ac97cc2 commit 5cbf347
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
3 changes: 3 additions & 0 deletions examples/bukkit/gradle-groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ dependencies {

// The CommandAPI dependency used for Bukkit and it's forks
implementation 'dev.jorel:commandapi-bukkit-plugin:9.4.0-SNAPSHOT'

// NBT API to use NBT-based arguments
implementation 'de.tr7zw:item-nbt-api-plugin:2.12.2'
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.github.jorelali;

import dev.jorel.commandapi.nbtapi.NBTContainer;
import dev.jorel.commandapi.CommandTree;
import dev.jorel.commandapi.arguments.*;
import org.bukkit.Location;
Expand All @@ -9,6 +8,7 @@
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;

import de.tr7zw.nbtapi.NBTContainer;
import dev.jorel.commandapi.CommandAPICommand;

public class MyCommands {
Expand Down
3 changes: 3 additions & 0 deletions examples/bukkit/gradle-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ dependencies {

// The CommandAPI dependency used for Bukkit and it's forks
implementation("dev.jorel:commandapi-bukkit-plugin:9.4.0-SNAPSHOT")

// NBT API to use NBT-based arguments
implementation("de.tr7zw:item-nbt-api-plugin:2.12.2")
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.github.jorelali;

import dev.jorel.commandapi.nbtapi.NBTContainer;
import dev.jorel.commandapi.CommandTree;
import dev.jorel.commandapi.arguments.*;
import org.bukkit.Location;
Expand All @@ -9,6 +8,7 @@
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;

import de.tr7zw.nbtapi.NBTContainer;
import dev.jorel.commandapi.CommandAPICommand;

public class MyCommands {
Expand Down
7 changes: 7 additions & 0 deletions examples/bukkit/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@
<version>1.19.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<!-- This assumes you have the NBT API plugin present on your server -->
<dependency>
<groupId>de.tr7zw</groupId>
<artifactId>item-nbt-api-plugin</artifactId>
<version>2.12.2</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
package io.github.jorelali;

import dev.jorel.commandapi.nbtapi.NBTContainer;
import dev.jorel.commandapi.CommandTree;
import dev.jorel.commandapi.arguments.*;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;

import de.tr7zw.nbtapi.NBTContainer;
import dev.jorel.commandapi.CommandAPICommand;
import dev.jorel.commandapi.CommandTree;
import dev.jorel.commandapi.arguments.LocationArgument;
import dev.jorel.commandapi.arguments.LocationType;
import dev.jorel.commandapi.arguments.NBTCompoundArgument;
import dev.jorel.commandapi.arguments.PlayerArgument;
import dev.jorel.commandapi.arguments.PotionEffectArgument;

public class MyCommands {

Expand Down

0 comments on commit 5cbf347

Please sign in to comment.