mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Merge branch 'master' of http://Indyuce@dev.lumine.io/bitbucket/scm/mmo/mmoitems.git
This commit is contained in:
commit
fda2220c7c
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.Indyuce</groupId>
|
||||
<artifactId>MMOItems</artifactId>
|
||||
<version>5.0</version>
|
||||
<version>5.1-SNAPSHOT</version>
|
||||
<name>MMOItems</name>
|
||||
<description>A great item solution for your RPG server.</description>
|
||||
|
||||
|
@ -114,8 +114,9 @@ public class CustomBlock {
|
||||
}
|
||||
}
|
||||
|
||||
//Gets a new CustomBlock instance from a mushroom blockstate.
|
||||
//Gets a new CustomBlock instance from a mushroom blockstate.
|
||||
public static CustomBlock getFromData(BlockData data) {
|
||||
if(!MMOItems.plugin.getCustomBlocks().isMushroomBlock(data.getMaterial())) return null;
|
||||
if(!(data instanceof MultipleFacing)) return null;
|
||||
MultipleFacing mfData = (MultipleFacing) data;
|
||||
MushroomState state = new MushroomState(data.getMaterial(), mfData.hasFace(BlockFace.UP), mfData.hasFace(BlockFace.DOWN),
|
||||
|
@ -38,7 +38,7 @@ public class PlayerMessage {
|
||||
|
||||
if (MMOItems.plugin.getConfig().getBoolean("action-bar-display." + actionBarBooleanPath)) {
|
||||
if(Bukkit.getPluginManager().isPluginEnabled("MMOCore"))
|
||||
MMOCore.plugin.pauseDefaultActionBar(player.getUniqueId(), 120);
|
||||
MMOCore.plugin.pauseDefaultActionBar(player.getUniqueId(), 60);
|
||||
|
||||
MMOItems.plugin.getNMS().sendActionBar(player, message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user