Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 04b6ccc

Browse files
committed
2.13.0
1 parent 6b56886 commit 04b6ccc

13 files changed

Lines changed: 55 additions & 40 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ Join our [Discord](https://discord.gg/gh9MfDmwZm) to discuss the plugin, suggest
55

66
## Changelog
77

8+
### 2.13.0
9+
- Added support for Spigot 1.16 (Dreig-Michihi)
10+
- Fixed ElementSphere Water crash
11+
- Added water bubbles to ElementSphere Water underwater
12+
- Added FireShots hand swapping by tapping sneak (Dreig-Michihi)
13+
- Added configurable pointer for bending board, with "> " as default, to fix flickering (Dreig-Michihi)
14+
- Fixed MetalFragments hoppers dupe (Dreig-Michihi)
15+
- Added item crack particles to MetalFragments (Dreig-Michihi)
16+
- Optimized MetalFragments (Dreig-Michihi)
17+
- Fixed error resulting from ambiguous ability names like EarthKick that are shared with other popular addons (Dreig-Michihi)
18+
- Optimized extinguishing for AirBreath (Dreig-Michihi)
19+
- Fixed bug where Combustion couldn't start when a previous Combustion was still reverting (Dreig-Michihi)
20+
- Improved Combustion charge-up and cooldown add times (Dreig-Michihi)
21+
- Fixed FirePunch allowing multiple instances (Dreig-Michihi)
22+
- Fixed Fissure reversion (StrangeOne101)
23+
- Fixed lava immunity bug (StrangeOne101)
24+
- Fixed AirSlam using SwiftStream's instructions (MKieburtz)
25+
826
### 2.12.1
927
- Fixed URL being outdated in /b version
1028
- Fixed IceWall not working on snow and ice blocks from the config

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.jedk1</groupId>
66
<artifactId>jedcore</artifactId>
7-
<version>2.12.2-Spigot1.18-PK1.11.0</version>
7+
<version>2.13.0-PK1.11.1</version>
88
<packaging>jar</packaging>
99
<name>JedCore</name>
1010

src/com/jedk1/jedcore/JCMethods.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public class JCMethods {
5151
}
5252
}};
5353

54-
private static List<String> worlds = new ArrayList<String>();
55-
private static List<String> combos = new ArrayList<String>();
54+
private static List<String> worlds = new ArrayList<>();
55+
private static List<String> combos = new ArrayList<>();
5656

5757
public static List<String> getDisabledWorlds() {
5858
return JCMethods.worlds;
@@ -61,10 +61,8 @@ public static List<String> getDisabledWorlds() {
6161
public static void registerDisabledWorlds() {
6262
worlds.clear();
6363
List<String> registeredworlds = ProjectKorra.plugin.getConfig().getStringList("Properties.DisabledWorlds");
64-
if (registeredworlds != null && !registeredworlds.isEmpty()) {
65-
for (String s : registeredworlds) {
66-
worlds.add(s);
67-
}
64+
if (!registeredworlds.isEmpty()) {
65+
worlds.addAll(registeredworlds);
6866
}
6967
}
7068

@@ -78,9 +76,7 @@ public static List<String> getCombos() {
7876

7977
public static void registerCombos() {
8078
combos.clear();
81-
for (String s : ComboManager.getComboAbilities().keySet()) {
82-
combos.add(s);
83-
}
79+
combos.addAll(ComboManager.getComboAbilities().keySet());
8480
}
8581

8682
/**

src/com/jedk1/jedcore/ability/avatar/elementsphere/ESWater.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.projectkorra.projectkorra.command.Commands;
1212
import com.projectkorra.projectkorra.region.RegionProtection;
1313
import com.projectkorra.projectkorra.util.DamageHandler;
14+
import com.projectkorra.projectkorra.util.ParticleEffect;
1415

1516
import org.bukkit.Location;
1617
import org.bukkit.Material;
@@ -49,9 +50,6 @@ public ESWater(Player player) {
4950
if (bPlayer.isOnCooldown("ESWater")) {
5051
return;
5152
}
52-
if (RegionProtection.isRegionProtected(this, player.getTargetBlock(getTransparentMaterialSet(), (int) range).getLocation())) {
53-
return;
54-
}
5553
setFields();
5654
location = player.getEyeLocation().clone().add(player.getEyeLocation().getDirection().multiply(1));
5755
start();
@@ -92,7 +90,7 @@ private void advanceAttack() {
9290
if (!player.isDead())
9391
direction = GeneralMethods.getDirection(player.getLocation(), GeneralMethods.getTargetedLocation(player, range, Material.WATER)).normalize();
9492
location = location.add(direction.clone().multiply(1));
95-
if(RegionProtection.isRegionProtected(this, location)){
93+
if (RegionProtection.isRegionProtected(this, location)){
9694
travelled = range;
9795
return;
9896
}
@@ -102,6 +100,8 @@ private void advanceAttack() {
102100
}
103101

104102
WaterAbility.playWaterbendingSound(location);
103+
if (isWater(location.getBlock()))
104+
ParticleEffect.WATER_BUBBLE.display(location, 3, 0.5, 0.5, 0.5);
105105
new RegenTempBlock(location.getBlock(), Material.WATER, Material.WATER.createBlockData(bd -> ((Levelled) bd).setLevel(0)), 100L);
106106

107107
for (Entity entity : GeneralMethods.getEntitiesAroundPoint(location, 2.5)) {

src/com/jedk1/jedcore/ability/earthbending/EarthKick.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void progress() {
116116
}
117117

118118
private void launchBlocks() {
119-
if (EarthAbility.getMovedEarth().containsKey(block)){
119+
if (getMovedEarth().containsKey(block)) {
120120
block.setType(Material.AIR);
121121
}
122122
if (block.getType() != Material.AIR) {
@@ -125,10 +125,9 @@ private void launchBlocks() {
125125
}
126126

127127
location.setPitch(0);
128-
Vector direction = location.getDirection();
129-
location.add(direction.clone().multiply(1.0));
128+
location.add(location.getDirection());
130129

131-
if (!ElementalAbility.isAir(location.getBlock().getType())) {
130+
if (!isAir(location.getBlock().getType())) {
132131
location.setY(location.getY() + 1.0);
133132
}
134133

src/com/jedk1/jedcore/ability/earthbending/EarthLine.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public class EarthLine extends EarthAbility implements AddonAbility {
5454
private boolean allowChangeDirection;
5555
private CompositeRemovalPolicy removalPolicy;
5656

57-
5857
public EarthLine(Player player) {
5958
super(player);
6059

src/com/jedk1/jedcore/ability/earthbending/MetalFragments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void progress() {
247247
fb.getLocation().getBlock().setBlockData(fb.getBlockData());
248248
}
249249
}
250-
for (ListIterator<Item> iterator = thrownFragments.listIterator(); iterator.hasNext(); ) {
250+
for (ListIterator<Item> iterator = thrownFragments.listIterator(); iterator.hasNext();) {
251251
Item f = iterator.next();
252252

253253
boolean touchedLiving = false;

src/com/jedk1/jedcore/ability/firebending/Combustion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Combustion(Player player) {
5252
return;
5353
}
5454

55-
if(hasAbility(player, Combustion.class)){
55+
if (hasAbility(player, Combustion.class)) {
5656
Combustion c = getAbility(player, Combustion.class);
5757
if (c.state instanceof ChargeState)
5858
return;

src/com/jedk1/jedcore/ability/firebending/FireShots.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class FireShots extends FireAbility implements AddonAbility {
4646
private double damage;
4747
@Attribute("CollisionRadius")
4848
private double collisionRadius;
49-
private Boolean flameInMainHand = null;
49+
private Boolean flameInMainHand = null;
5050

5151
public int amount;
5252

@@ -57,6 +57,9 @@ public FireShots(Player player){
5757
return;
5858
}
5959

60+
if (!player.hasGravity())
61+
player.setGravity(true);
62+
6063
setFields();
6164

6265
amount = startAmount;
@@ -234,14 +237,14 @@ public static void fireShot(Player player) {
234237
}
235238
}
236239

237-
public static void swapHands(Player player) {
238-
FireShots fs = getAbility(player, FireShots.class);
239-
if (fs == null)
240-
return;
241-
if (fs.flameInMainHand == null)
242-
fs.flameInMainHand = true;
243-
else fs.flameInMainHand = !fs.flameInMainHand;
244-
}
240+
public static void swapHands(Player player) {
241+
FireShots fs = getAbility(player, FireShots.class);
242+
if (fs == null)
243+
return;
244+
if (fs.flameInMainHand == null)
245+
fs.flameInMainHand = true;
246+
else fs.flameInMainHand = !fs.flameInMainHand;
247+
}
245248

246249
public void fireShot() {
247250
if (amount >= 1) {
@@ -253,9 +256,9 @@ public void fireShot() {
253256
}
254257

255258
public Location getRightHandPos() {
256-
return (player.getMainHand()==MainHand.RIGHT == ((flameInMainHand == null) || flameInMainHand) ?
257-
GeneralMethods.getRightSide(player.getLocation(), .55) :
258-
GeneralMethods.getLeftSide(player.getLocation(), .55)).add(0, 1.2, 0);
259+
return (player.getMainHand()==MainHand.RIGHT == ((flameInMainHand == null) || flameInMainHand) ?
260+
GeneralMethods.getRightSide(player.getLocation(), .55) :
261+
GeneralMethods.getLeftSide(player.getLocation(), .55)).add(0, 1.2, 0);
259262
}
260263

261264
private void displayFireBalls() {

src/com/jedk1/jedcore/configuration/JedCoreConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,8 @@ private void loadConfigCore() {
621621
config.addDefault("Abilities.Fire.FireShots.Enabled", true);
622622
config.addDefault("Abilities.Fire.FireShots.Description", "To use, tap Sneak (Default: Shift) to summon a "
623623
+ "FireBalls at your hand, then Left Click to shoot off each ball! "
624-
+ "Each shot will follow the cursor until it runs out or hits something!");
624+
+ "Each shot will follow the cursor until it runs out or hits something! "
625+
+ "Tap Sneak again to switch your main hand.");
625626
config.addDefault("Abilities.Fire.FireShots.Cooldown", 3000);
626627
config.addDefault("Abilities.Fire.FireShots.Range", 50);
627628
config.addDefault("Abilities.Fire.FireShots.FireBalls", 4);

0 commit comments

Comments
 (0)