Merge branch 'development' into 'master'

Development

See merge request Songoda/ultimatekits!36
This commit is contained in:
Brianna O'Keefe 2019-05-03 21:36:08 +00:00
commit d351f0d69a
4 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateKits"
path: "/builds/$CI_PROJECT_PATH"
version: "2.3.2"
version: "2.3.3"
build:
stage: build

View File

@ -34,8 +34,9 @@ public class ParticleHandler {
Location location = kitBlockData.getLocation();
location.add(.5, 0, .5);
if (plugin.isServerVersionAtLeast(ServerVersion.V1_8))
if (plugin.isServerVersionAtLeast(ServerVersion.V1_9))
location.getWorld().spawnParticle(org.bukkit.Particle.valueOf(type), location, amt, 0.25, 0.25, 0.25);
}
} catch (Exception ex) {

View File

@ -70,6 +70,7 @@ public abstract class Hologram {
}
private void format(KitBlockData data, Action action) {
if (data == null) return;
KitType kitType = data.getType();
ArrayList<String> lines = new ArrayList<>();

View File

@ -1,6 +1,7 @@
package com.songoda.ultimatekits.utils.gui;
import com.songoda.ultimatekits.UltimateKits;
import com.songoda.ultimatekits.utils.ServerVersion;
import com.songoda.ultimatekits.utils.version.NMSUtil;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
@ -110,7 +111,8 @@ public class AbstractAnvilGUI {
player.setLevel(player.getLevel() - 1);
if (inv.equals(inv)) {
inv.clear();
player.playSound(player.getLocation(), closeSound, 1F, 1F);
if (UltimateKits.getInstance().isServerVersionAtLeast(ServerVersion.V1_9))
player.playSound(player.getLocation(), closeSound, 1F, 1F);
Bukkit.getScheduler().scheduleSyncDelayedTask(UltimateKits.getInstance(), () -> {
if (onClose != null) onClose.OnClose(player, inv);
destroy();