Fix EssentialsX API Import

This commit is contained in:
NotAlexNoyle committed 2023-02-28 06:10:30 -05:00
1 parent ac41d4edbf
commit fe35af4388
2 files changed
+9 -2

No files matched your search

+8 -1
View File
@@ -46,6 +46,13 @@ repositories {
}
maven { // Import Paper Repository (EssentialsX API Dependency)
name "papermc"
url "https://papermc.io/repo/repository/maven-public/"
}
maven { // Import Maven Repository.
name "essentialsx-releases"
@@ -99,4 +106,4 @@ compileJava { // Build Java code.
options.fork = true
options.forkOptions.executable = 'javac' // Define Java compiler executable.
}
}
+1 -1
View File
@@ -181,7 +181,7 @@ public class Utils {
// TODO: Save this inventory and give it back to the player after the game.
PlayerInventory pInv = player.getInventory();
Kit preGameInventory = pInv;
Kit preGameInventory;
pInv.setArmorContents((ItemStack[]) null);
pInv.clear();