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