Skip to content

Commit ae9f829

Browse files
Merge pull request #137 from VolmitSoftware/Development
Development
2 parents f5d8d2c + cf04865 commit ae9f829

26 files changed

Lines changed: 112 additions & 59 deletions

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
}
2525

2626

27-
version '1.0.13-1.19.2' // Needs to be version specific
27+
version '1.1.1-1.19.2' // Needs to be version specific
2828
def nmsVersion = "1.19.2" //[NMS]
2929
def apiVersion = '1.19'
3030
def specialSourceVersion = '1.11.0' //[NMS]

src/main/java/com/volmit/adapt/api/Component.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ default List<Location> vfxSelectionCube(Location corner1, Location corner2, doub
438438

439439
default void riftResistCheckAndTrigger(Player p, int duration, int amplifier) {
440440
p.getWorld().playSound(p.getLocation(), Sound.ITEM_ARMOR_EQUIP_IRON, 1f, 1.24f);
441-
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_CONDUIT_AMBIENT_SHORT, 1000f, 0.01f);
442-
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_RESPAWN_ANCHOR_CHARGE, 1000f, 0.01f);
441+
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_CONDUIT_AMBIENT_SHORT, 1f, 0.01f);
442+
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_RESPAWN_ANCHOR_CHARGE, 1f, 0.01f);
443443
p.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, duration, amplifier, true, false, false));
444444
}
445445

src/main/java/com/volmit/adapt/content/adaptation/architect/ArchitectFoundation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public void on(PlayerToggleSneakEvent e) {
130130
} else if (!e.isSneaking() && active) {
131131
this.active.remove(e.getPlayer());
132132
cooldowns.put(e.getPlayer(), M.ms() + getConfig().cooldown);
133-
e.getPlayer().getWorld().playSound(e.getPlayer().getLocation(), Sound.BLOCK_BEACON_DEACTIVATE, 100.0f, 10.0f);
134-
e.getPlayer().getWorld().playSound(e.getPlayer().getLocation(), Sound.BLOCK_SCULK_CATALYST_BREAK, 100.0f, 0.81f);
133+
e.getPlayer().getWorld().playSound(e.getPlayer().getLocation(), Sound.BLOCK_BEACON_DEACTIVATE, 1.0f, 10.0f);
134+
e.getPlayer().getWorld().playSound(e.getPlayer().getLocation(), Sound.BLOCK_SCULK_CATALYST_BREAK, 1.0f, 0.81f);
135135
}
136136
}
137137

src/main/java/com/volmit/adapt/content/adaptation/ranged/RangedArrowRecovery.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.bukkit.entity.Player;
3131
import org.bukkit.entity.Projectile;
3232
import org.bukkit.event.EventHandler;
33+
import org.bukkit.event.EventPriority;
3334
import org.bukkit.event.entity.EntityDamageByEntityEvent;
3435
import org.bukkit.event.entity.EntityDeathEvent;
3536
import org.bukkit.inventory.ItemStack;
@@ -96,7 +97,7 @@ public void on(EntityDamageByEntityEvent e) {
9697
}
9798
}
9899

99-
@EventHandler
100+
@EventHandler (priority = EventPriority.HIGHEST)
100101
public void on(EntityDeathEvent e) {
101102
Integer c = arrows.remove(e.getEntity().getUniqueId());
102103

src/main/java/com/volmit/adapt/content/adaptation/rift/RiftAccess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ private void openPearl(Player p) {
148148
activeViews.add(p.openInventory(holder.getInventory()));
149149
if (getConfig().showParticles) {
150150

151-
p.playSound(p.getLocation(), Sound.PARTICLE_SOUL_ESCAPE, 100f, 0.10f);
152-
p.playSound(p.getLocation(), Sound.BLOCK_ENDER_CHEST_OPEN, 100f, 0.10f);
151+
p.playSound(p.getLocation(), Sound.PARTICLE_SOUL_ESCAPE, 1f, 0.10f);
152+
p.playSound(p.getLocation(), Sound.BLOCK_ENDER_CHEST_OPEN, 1f, 0.10f);
153153
}
154154
}
155155
}

src/main/java/com/volmit/adapt/content/adaptation/rift/RiftGate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ && getPlayer(p).getData().getSkillLines().get("rift").getAdaptations().get("rift
137137

138138
p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 100, 10, true, false, false));
139139
p.addPotionEffect(new PotionEffect(PotionEffectType.LEVITATION, 85, 0, true, false, false));
140-
p.playSound(l, Sound.BLOCK_LODESTONE_PLACE, 100f, 0.1f);
141-
p.playSound(l, Sound.BLOCK_BELL_RESONATE, 100f, 0.1f);
140+
p.playSound(l, Sound.BLOCK_LODESTONE_PLACE, 1f, 0.1f);
141+
p.playSound(l, Sound.BLOCK_BELL_RESONATE, 1f, 0.1f);
142142
J.a(() -> {
143143
double d = 2;
144144
double pcd = 1000;

src/main/java/com/volmit/adapt/content/adaptation/rift/RiftResist.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ static void riftResistStackAdd(Player p, int duration, int amplifier) {
5454
return;
5555
}
5656
p.getWorld().playSound(p.getLocation(), Sound.ITEM_ARMOR_EQUIP_IRON, 1f, 1.24f);
57-
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_CONDUIT_AMBIENT_SHORT, 1000f, 0.01f);
58-
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_RESPAWN_ANCHOR_CHARGE, 1000f, 0.01f);
57+
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_CONDUIT_AMBIENT_SHORT, 1f, 0.01f);
58+
p.getLocation().getWorld().playSound(p.getLocation(), Sound.BLOCK_RESPAWN_ANCHOR_CHARGE, 1f, 0.01f);
5959
p.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, duration, amplifier, true, false, false));
6060
}
6161

src/main/java/com/volmit/adapt/content/adaptation/taming/TamingHealthRegeneration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.bukkit.entity.Player;
3030
import org.bukkit.entity.Tameable;
3131
import org.bukkit.event.EventHandler;
32+
import org.bukkit.event.EventPriority;
3233
import org.bukkit.event.entity.EntityDamageByEntityEvent;
3334
import org.bukkit.event.entity.EntityDeathEvent;
3435
import xyz.xenondevs.particle.ParticleEffect;
@@ -70,7 +71,7 @@ public void on(EntityDamageByEntityEvent e) {
7071
}
7172
}
7273

73-
@EventHandler
74+
@EventHandler (priority = EventPriority.HIGHEST)
7475
public void on(EntityDeathEvent e) {
7576
lastDamage.remove(e.getEntity().getUniqueId());
7677
}

src/main/java/com/volmit/adapt/content/skill/SkillAgility.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.bukkit.Material;
3636
import org.bukkit.entity.Player;
3737
import org.bukkit.event.EventHandler;
38+
import org.bukkit.event.EventPriority;
3839
import org.bukkit.event.player.PlayerMoveEvent;
3940

4041
public class SkillAgility extends SimpleSkill<SkillAgility.Config> {
@@ -79,7 +80,7 @@ public SkillAgility() {
7980
registerStatTracker(AdaptStatTracker.builder().advancement("challenge_sprint_marathon").goal(42195).stat("move").reward(getConfig().challengeSprintMarathonReward).build());
8081
}
8182

82-
@EventHandler
83+
@EventHandler (priority = EventPriority.HIGHEST)
8384
public void on(PlayerMoveEvent e) {
8485
if (!AdaptConfig.get().isXpInCreative() && e.getPlayer().getGameMode().name().contains("CREATIVE")) {
8586
return;

src/main/java/com/volmit/adapt/content/skill/SkillArchitect.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import org.bukkit.Material;
3636
import org.bukkit.entity.Player;
3737
import org.bukkit.event.EventHandler;
38+
import org.bukkit.event.EventPriority;
3839
import org.bukkit.event.block.BlockBreakEvent;
3940
import org.bukkit.event.block.BlockPlaceEvent;
4041

@@ -55,7 +56,7 @@ public SkillArchitect() {
5556
registerAdaptation(new ArchitectPlacement());
5657
}
5758

58-
@EventHandler
59+
@EventHandler (priority = EventPriority.HIGHEST)
5960
public void on(BlockPlaceEvent e) {
6061
if (e.isCancelled()) {
6162
return;
@@ -70,7 +71,7 @@ public void on(BlockPlaceEvent e) {
7071

7172
}
7273

73-
@EventHandler
74+
@EventHandler (priority = EventPriority.HIGHEST)
7475
public void on(BlockBreakEvent e) {
7576
if (e.isCancelled()) {
7677
return;

0 commit comments

Comments
 (0)