mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 02:25:42 +01:00
Update repo for AstralBooks (#2081)
This commit is contained in:
parent
a91b033d4e
commit
5f681e7e92
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user