mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-26 12:15:13 +01:00
Merge branch 'development' into 'master'
Development See merge request Songoda/ultimatekits!36
This commit is contained in:
commit
d351f0d69a
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateKits"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.3.2"
|
||||
version: "2.3.3"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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) {
|
||||
|
@ -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<>();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user