mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-17 21:11:20 +01:00
Update repo for AstralBooks (#2081)
This commit is contained in:
parent
a91b033d4e
commit
5f681e7e92
@ -113,8 +113,8 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ro.niconeko</groupId>
|
<groupId>ro.niconeko</groupId>
|
||||||
<artifactId>AstralBooks</artifactId>
|
<artifactId>astralbooks-api</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -27,7 +27,7 @@ import net.citizensnpcs.api.CitizensPlugin;
|
|||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
import net.milkbowl.vault.permission.Permission;
|
import net.milkbowl.vault.permission.Permission;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import ro.niconeko.astralbooks.AstralBooksAPI;
|
import ro.niconeko.astralbooks.api.AstralBooksAPI;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -113,8 +113,8 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ro.niconeko</groupId>
|
<groupId>ro.niconeko</groupId>
|
||||||
<artifactId>AstralBooks</artifactId>
|
<artifactId>astralbooks-api</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -40,8 +40,8 @@ import org.bukkit.plugin.RegisteredListener;
|
|||||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import ro.niconeko.astralbooks.AstralBooksAPI;
|
import ro.niconeko.astralbooks.api.AstralBooksAPI;
|
||||||
import ro.niconeko.astralbooks.AstralBooksPlugin;
|
import ro.niconeko.astralbooks.api.AstralBooks;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@ -187,7 +187,7 @@ public class Dependencies implements IDependencies {
|
|||||||
public AstralBooksAPI getAstralBooksApi() {
|
public AstralBooksAPI getAstralBooksApi() {
|
||||||
if (astralBooks == null && isPluginAvailable("AstralBooks")) {
|
if (astralBooks == null && isPluginAvailable("AstralBooks")) {
|
||||||
try {
|
try {
|
||||||
astralBooks = ((AstralBooksPlugin) Objects.requireNonNull(plugin.getServer().getPluginManager()
|
astralBooks = ((AstralBooks) Objects.requireNonNull(plugin.getServer().getPluginManager()
|
||||||
.getPlugin("AstralBooks"))).getAPI();
|
.getPlugin("AstralBooks"))).getAPI();
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user