mirror of
https://github.com/songoda/EpicBuckets.git
synced 2025-02-21 14:11:47 +01:00
fixed
This commit is contained in:
parent
6d81ba9dc5
commit
3fefd97d87
@ -34,12 +34,6 @@
|
||||
<artifactId>liquidtanks</artifactId>
|
||||
<version>LATEST</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>arconix</artifactId>
|
||||
<version>LATEST</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org</groupId>
|
||||
<artifactId>kingdoms</artifactId>
|
||||
|
@ -174,13 +174,11 @@ public class EpicBuckets extends JavaPlugin {
|
||||
}
|
||||
|
||||
private boolean setupEconomy() {
|
||||
if (getServer().getPluginManager().getPlugin("Vault") == null) {
|
||||
if (getServer().getPluginManager().getPlugin("Vault") == null)
|
||||
return false;
|
||||
}
|
||||
RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
|
||||
if (rsp == null) {
|
||||
if (rsp == null)
|
||||
return false;
|
||||
}
|
||||
econ = rsp.getProvider();
|
||||
return econ != null;
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.songoda.epicbuckets.utils.gui;
|
||||
|
||||
import com.songoda.arconix.api.methods.formatting.TextComponent;
|
||||
import com.songoda.epicbuckets.EpicBuckets;
|
||||
import com.songoda.epicbuckets.utils.ServerVersion;
|
||||
import org.bukkit.Bukkit;
|
||||
@ -118,7 +117,7 @@ public abstract class AbstractGUI implements Listener {
|
||||
if (inventory == null
|
||||
|| inventory.getSize() != slots
|
||||
|| ChatColor.translateAlternateColorCodes('&', title) != inventory.getTitle()) {
|
||||
this.inventory = Bukkit.getServer().createInventory(new GUIHolder(), slots, TextComponent.formatTitle(title));
|
||||
this.inventory = Bukkit.getServer().createInventory(new GUIHolder(), slots, title);
|
||||
if (this.clickables.size() == 0)
|
||||
registerClickables();
|
||||
if (this.onCloses.size() == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user