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

Commit b521233

Browse files
authored
Merge pull request #16 from StrangeOne101/master
Updated to PK 1.10.0
2 parents 81df9fb + d4e19ad commit b521233

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>me.simplicitee</groupId>
44
<artifactId>projectaddons</artifactId>
5-
<version>1.2.2</version>
5+
<version>1.2.4</version>
66
<name>ProjectAddons</name>
77

88
<repositories>
@@ -23,7 +23,7 @@
2323
<dependency>
2424
<groupId>com.projectkorra</groupId>
2525
<artifactId>projectkorra</artifactId>
26-
<version>1.9.3</version>
26+
<version>1.10.2</version>
2727
<scope>provided</scope>
2828
</dependency>
2929
</dependencies>

src/me/simplicitee/project/addons/ProjectAddons.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.io.File;
44
import java.util.Arrays;
55

6+
import com.projectkorra.projectkorra.configuration.ConfigManager;
67
import org.bukkit.ChatColor;
78
import org.bukkit.configuration.file.FileConfiguration;
89
import org.bukkit.entity.EntityType;
@@ -38,13 +39,7 @@ public void onEnable() {
3839

3940
this.config = new Config(new File("project_addons.yml"));
4041
this.setupConfig();
41-
soundElement = new SubElement("Sound", Element.AIR, ElementType.BENDING, this) {
42-
@Override
43-
public ChatColor getColor() {
44-
return Element.AIR.getSubColor();
45-
}
46-
};
47-
42+
soundElement = new SubElement("Sound", Element.AIR, ElementType.BENDING, this);
4843
CoreAbility.registerPluginAbilities(this, "me.simplicitee.project.addons.ability");
4944

5045
this.setupCollisions();
@@ -89,7 +84,9 @@ public Config config() {
8984
private void setupConfig() {
9085
FileConfiguration c = config.get();
9186

92-
c.addDefault("Properties.MetallicBlocks", Arrays.asList("GOLD_BLOCK", "IRON_BLOCK"));
87+
c.addDefault("Chat.Colors.Sound", "#3e4d52"); //Make soundbending have a color
88+
89+
c.addDefault("Properties.MetallicBlocks", Arrays.asList("GOLD_BLOCK", "IRON_BLOCK", "NETHERITE_BLOCK"));
9390

9491
// ---- Avatar ----
9592
// EnergyBeam

src/me/simplicitee/project/addons/ability/water/LeafStorm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ public Object createNewComboInstance(Player player) {
176176
public ArrayList<AbilityInformation> getCombination() {
177177
ArrayList<AbilityInformation> combo = new ArrayList<>();
178178

179-
combo.add(new AbilityInformation(Element.WATER.getSubColor() + "RazorLeaf", ClickType.LEFT_CLICK));
180-
combo.add(new AbilityInformation(Element.WATER.getSubColor() + "RazorLeaf", ClickType.LEFT_CLICK));
181-
combo.add(new AbilityInformation(Element.WATER.getSubColor() + "VineWhip", ClickType.SHIFT_DOWN));
179+
combo.add(new AbilityInformation(Element.PLANT.getColor() + "RazorLeaf", ClickType.LEFT_CLICK));
180+
combo.add(new AbilityInformation(Element.PLANT.getColor() + "RazorLeaf", ClickType.LEFT_CLICK));
181+
combo.add(new AbilityInformation(Element.PLANT.getColor() + "VineWhip", ClickType.SHIFT_DOWN));
182182

183183
return combo;
184184
}

src/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: ProjectAddons
22
author: Simplicitee
33
api-version: 1.16
4-
version: 1.2.3
4+
version: 1.2.4
55
main: me.simplicitee.project.addons.ProjectAddons
66
depend: [ProjectKorra]
77
commands:

0 commit comments

Comments
 (0)