Skip to content

Commit

Permalink
updated to spigot version 1.12.2-R0.1-SNAPSHOT and blocktyper version…
Browse files Browse the repository at this point in the history
… 1.2.4
  • Loading branch information
AnthonyRuffino committed Jan 1, 2018
1 parent 078519a commit cccd0b7
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 35 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
mvn clean install
#rm -rf $MCS/plugins/Yearmarked
cp target/*dependencies.jar $MCS/plugins/Yearmarked.jar
echo $
20 changes: 3 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.blocktyper</groupId>
<artifactId>yearmarked</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
<name>Yearmarked</name>

<properties>
Expand All @@ -28,28 +28,14 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.11.2-R0.1-SNAPSHOT</version>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--Bukkit API -->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.11.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.blocktyper.localehelper</groupId>
<artifactId>localehelper</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.blocktyper</groupId>
<artifactId>blocktyperplugin</artifactId>
<version>1.2.1</version>
<version>1.2.4</version>
<scope>compile</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;

import com.blocktyper.v1_2_1.BlockTyperListener;
import com.blocktyper.v1_2_1.nbt.NBTItem;
import com.blocktyper.v1_2_4.BlockTyperListener;
import com.blocktyper.v1_2_4.nbt.NBTItem;
import com.blocktyper.yearmarked.items.YMRecipe;

public abstract class YearmarkedListenerBase extends BlockTyperListener {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.blocktyper.yearmarked;

import com.blocktyper.v1_2_1.BlockTyperUtility;
import com.blocktyper.v1_2_4.BlockTyperUtility;
import com.blocktyper.yearmarked.days.listeners.DataMigrationListener_2_0_0;
import com.blocktyper.yearmarked.days.listeners.SendDayInfoListener;
import com.blocktyper.yearmarked.days.listeners.diamonday.DiamondayListener;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/blocktyper/yearmarked/YearmarkedPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitRunnable;

import com.blocktyper.v1_2_1.BlockTyperBasePlugin;
import com.blocktyper.v1_2_1.recipes.IRecipe;
import com.blocktyper.v1_2_4.BlockTyperBasePlugin;
import com.blocktyper.v1_2_4.recipes.IRecipe;
import com.blocktyper.yearmarked.commands.YmCommand;
import com.blocktyper.yearmarked.days.listeners.earthday.EarthdayListener;
import com.blocktyper.yearmarked.items.YMRecipe;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.inventory.ItemStack;

import com.blocktyper.v1_2_1.nbt.NBTItem;
import com.blocktyper.v1_2_4.nbt.NBTItem;
import com.blocktyper.yearmarked.YearmarkedListenerBase;
import com.blocktyper.yearmarked.YearmarkedPlugin;
import com.blocktyper.yearmarked.days.listeners.earthday.EarthdayListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.scheduler.BukkitRunnable;

import com.blocktyper.v1_2_1.BlockTyperUtility;
import com.blocktyper.v1_2_4.BlockTyperUtility;
import com.blocktyper.yearmarked.ConfigKey;
import com.blocktyper.yearmarked.YearmarkedListenerBase;
import com.blocktyper.yearmarked.YearmarkedPlugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;

import com.blocktyper.v1_2_1.nbt.NBTItem;
import com.blocktyper.v1_2_1.recipes.AbstractBlockTyperRecipe;
import com.blocktyper.v1_2_1.recipes.BlockTyperRecipe;
import com.blocktyper.v1_2_4.nbt.NBTItem;
import com.blocktyper.v1_2_4.recipes.AbstractBlockTyperRecipe;
import com.blocktyper.v1_2_4.recipes.BlockTyperRecipe;
import com.blocktyper.yearmarked.ConfigKey;
import com.blocktyper.yearmarked.LocalizedMessage;
import com.blocktyper.yearmarked.YearmarkedListenerBase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.blocktyper.yearmarked.days.listeners.special;

import com.blocktyper.v1_2_1.BlockTyperUtility;
import com.blocktyper.v1_2_4.BlockTyperUtility;
import com.blocktyper.yearmarked.YearmarkedPlugin;
import com.blocktyper.yearmarked.days.listeners.special.marketday.MarketDayListener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.blocktyper.yearmarked.items;

import com.blocktyper.v1_2_1.BlockTyperUtility;
import com.blocktyper.v1_2_4.BlockTyperUtility;
import com.blocktyper.yearmarked.YearmarkedPlugin;
import com.blocktyper.yearmarked.items.listeners.LlamaSpitListener;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.List;
import java.util.Map;

import com.blocktyper.v1_2_4.helpers.InvisHelper;
import org.bukkit.Location;
import org.bukkit.Sound;
import org.bukkit.World;
Expand All @@ -17,8 +18,8 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

import com.blocktyper.v1_2_1.IBlockTyperPlugin;
import com.blocktyper.v1_2_1.helpers.InvisibleLoreHelper;
import com.blocktyper.v1_2_4.IBlockTyperPlugin;
import com.blocktyper.v1_2_4.helpers.InvisHelper;
import com.blocktyper.yearmarked.ConfigKey;
import com.blocktyper.yearmarked.YearmarkedListenerBase;
import com.blocktyper.yearmarked.YearmarkedPlugin;
Expand Down Expand Up @@ -68,11 +69,11 @@ private void spit(Player player, PlayerDropItemEvent event) {
}

int rounds = 0;
List<String> spitRoundLore = InvisibleLoreHelper.getInvisibleLore(wand, ROUNDS_INVIS_LORE_KEY);
List<String> spitRoundLore = InvisHelper.getInvisibleLore(wand, ROUNDS_INVIS_LORE_KEY);
if (spitRoundLore != null && !spitRoundLore.isEmpty()) {
for (String loreLine : spitRoundLore) {
loreLine = loreLine == null ? ""
: InvisibleLoreHelper.convertToVisibleString(loreLine).replace(ROUNDS_INVIS_LORE_KEY, "");
: InvisHelper.convertToVisibleString(loreLine).replace(ROUNDS_INVIS_LORE_KEY, "");
if (loreLine.startsWith("[") && loreLine.endsWith("]")) {
loreLine = loreLine.replace("[", "");
loreLine = loreLine.replace("]", "");
Expand Down Expand Up @@ -112,8 +113,8 @@ public static ItemStack initSpitRounds(ItemStack wand, IBlockTyperPlugin plugin)

public static ItemStack setSpitRounds(ItemStack wand, int rounds) {
ItemMeta itemMeta = wand.getItemMeta();
List<String> lore = InvisibleLoreHelper.removeLoreWithInvisibleKey(wand, ROUNDS_INVIS_LORE_KEY);
lore.add(InvisibleLoreHelper.convertToInvisibleString(ROUNDS_INVIS_LORE_KEY) + "[" + rounds + "]");
List<String> lore = InvisHelper.removeLoreWithInvisibleKey(wand, ROUNDS_INVIS_LORE_KEY);
lore.add(InvisHelper.convertToInvisibleString(ROUNDS_INVIS_LORE_KEY) + "[" + rounds + "]");
itemMeta.setLore(lore);
wand.setItemMeta(itemMeta);
return wand;
Expand Down

0 comments on commit cccd0b7

Please sign in to comment.