mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2025-04-18 05:43:01 +00:00
Changelog: - Added ExpBoost feature - Added Special Rabbit Foot, which increases a user's luck multiplier. - Added ItemBuilder and MiniComponent library classes - Removed Messages#builder in favor of MiniComponent
27 lines
714 B
Java
27 lines
714 B
Java
package io.github.simplex.luck.util;
|
|
|
|
import io.github.simplex.lib.ItemBuilder;
|
|
import org.bukkit.Material;
|
|
import org.bukkit.inventory.ItemStack;
|
|
import org.bukkit.inventory.meta.ItemMeta;
|
|
|
|
public class SpecialFootItem {
|
|
public final ItemStack stack;
|
|
|
|
public SpecialFootItem() {
|
|
stack = ItemBuilder.of(Material.RABBIT_FOOT)
|
|
.setName("Enhanced Rabbit Foot")
|
|
.setAmount(1).setLore("A strange energy radiates from within.",
|
|
"This item will increase your luck multiplier by one.")
|
|
.build();
|
|
}
|
|
|
|
public ItemStack get() {
|
|
return stack;
|
|
}
|
|
|
|
public ItemMeta meta() {
|
|
return stack.getItemMeta();
|
|
}
|
|
}
|