Update repo for AstralBooks (#2081)

This commit is contained in:
Drăghiciu Nicolae 2023-03-25 18:04:04 +02:00 committed by GitHub
parent a91b033d4e
commit 5f681e7e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -113,8 +113,8 @@
</dependency>
<dependency>
<groupId>ro.niconeko</groupId>
<artifactId>AstralBooks</artifactId>
<version>3.0.0</version>
<artifactId>astralbooks-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -27,7 +27,7 @@ import net.citizensnpcs.api.CitizensPlugin;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission;
import org.bukkit.Location;
import ro.niconeko.astralbooks.AstralBooksAPI;
import ro.niconeko.astralbooks.api.AstralBooksAPI;
import java.util.Set;
import java.util.UUID;

View File

@ -113,8 +113,8 @@
</dependency>
<dependency>
<groupId>ro.niconeko</groupId>
<artifactId>AstralBooks</artifactId>
<version>3.0.0</version>
<artifactId>astralbooks-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -40,8 +40,8 @@ import org.bukkit.plugin.RegisteredListener;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import ro.niconeko.astralbooks.AstralBooksAPI;
import ro.niconeko.astralbooks.AstralBooksPlugin;
import ro.niconeko.astralbooks.api.AstralBooksAPI;
import ro.niconeko.astralbooks.api.AstralBooks;
import java.util.Collections;
import java.util.HashSet;
@ -187,7 +187,7 @@ public class Dependencies implements IDependencies {
public AstralBooksAPI getAstralBooksApi() {
if (astralBooks == null && isPluginAvailable("AstralBooks")) {
try {
astralBooks = ((AstralBooksPlugin) Objects.requireNonNull(plugin.getServer().getPluginManager()
astralBooks = ((AstralBooks) Objects.requireNonNull(plugin.getServer().getPluginManager()
.getPlugin("AstralBooks"))).getAPI();
} catch (final Exception e) {
e.printStackTrace();