Updated potatoes

This commit is contained in:
alisolarflare 2016-11-19 21:14:17 -05:00
parent c4e79bd449
commit b21ce61d7f
5 changed files with 89 additions and 88 deletions

View file

@ -11,7 +11,6 @@ public abstract class ModCommand extends BaseCommand{
public String[] GetHelpText(String alias){
return new String[] {
"This command doesn't have help text, ask a dev to add one",
" using public String[] GetHelpText. ",
"If you're a dev, write the help text you lazy bastard. -Ali"
};
}

View file

@ -15,9 +15,9 @@ public abstract class PlayerCommand extends BaseCommand{
@Override
public String[] GetHelpText(String alias){
return new String[] {
"This command doesn't have help text, ask a mod to ask a ",
"dev to add one using public String[] GetHelpText. ",
"If you're a mod, ask a dev to write the help text.",
"This command doesn't have help text. ",
"If you're a player, ask a mod to write one",
"If you're a mod, ask a dev to write one",
"If you're a dev, write the help text you lazy bastard. -Ali"
};
}

View file

@ -8,6 +8,7 @@ import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import buttondevteam.lib.DebugPotato;
import buttondevteam.lib.DebugPotatoAPI;
public abstract class Insurance {
@ -56,7 +57,9 @@ public abstract class Insurance {
Insurance.class.getPackage().getName() + ".",
"Contact a developer with a screenshot of this message"
);
insuranceItem = DebugPotatoAPI.CreateDebugPotato(lore);
DebugPotato potato = new DebugPotato();
potato.setMessage(lore);
insuranceItem = potato.toItemStack();
}
insuranceItem.addUnsafeEnchantment(Enchantment.DURABILITY, 10);
ItemMeta meta = insuranceItem.getItemMeta();

View file

@ -9,9 +9,7 @@ public class BoomBowDeathListener implements Listener{
@EventHandler
public void onBoomBowDeath(PlayerDeathEvent event){
Player player = event.getEntity();
if (player.getLastDamage() > 7.42420 && player.getLastDamage() < 7.42429){
player.sendMessage("42!");
event.setDeathMessage(player.getName() + " got trigger happy with the [Boom Bow]");
}
}

View file

@ -99,7 +99,8 @@ public class BoomBowListener implements Listener {
boomBow.setDurability((short) (boomBow.getDurability() + 3));
if(boomBow.getDurability() < 0){
player.getInventory().setItemInMainHand(null);
player.getWorld().playSound(playerLocation, Sound.ENTITY_ITEM_BREAK, 0, 0);
player.getWorld().playSound(playerLocation, Sound.ENTITY_ITEM_BREAK, 0, 0)
;
}
}