mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-05 06:57:35 +01:00
Fixed default config
This commit is contained in:
parent
464daef7a8
commit
95e3d5fef4
@ -106,7 +106,7 @@ public class ItemUse implements Listener {
|
|||||||
final ItemStack weaponUsed = player.getInventory().getItem(((MeleeAttackMetadata) event.getAttack()).getHand().toBukkit());
|
final ItemStack weaponUsed = player.getInventory().getItem(((MeleeAttackMetadata) event.getAttack()).getHand().toBukkit());
|
||||||
final NBTItem item = MythicLib.plugin.getVersion().getWrapper().getNBTItem(weaponUsed);
|
final NBTItem item = MythicLib.plugin.getVersion().getWrapper().getNBTItem(weaponUsed);
|
||||||
final Type itemType = Type.get(item);
|
final Type itemType = Type.get(item);
|
||||||
if (itemType == Type.BLOCK) return;
|
if (itemType == null || itemType == Type.BLOCK) return;
|
||||||
|
|
||||||
// Prevent melee attacks with non-melee weapons
|
// Prevent melee attacks with non-melee weapons
|
||||||
if (!itemType.hasMeleeAttacks()) {
|
if (!itemType.hasMeleeAttacks()) {
|
||||||
|
@ -65,7 +65,6 @@ default-item-capacity:
|
|||||||
default:
|
default:
|
||||||
attack-speed: 0.67
|
attack-speed: 0.67
|
||||||
range: 16
|
range: 16
|
||||||
blunt-rating: 33
|
|
||||||
recoil: 0.1
|
recoil: 0.1
|
||||||
|
|
||||||
# Restart server when changing this option
|
# Restart server when changing this option
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FIGHTING_GAUNTLETS:
|
FIGHTING_GAUNTLETS:
|
||||||
base:
|
base:
|
||||||
material: IRON_HORSE_ARMOR
|
material: IRON_SHOVEL
|
||||||
lore:
|
lore:
|
||||||
- §7Tired of breaking your bones when
|
- §7Tired of breaking your bones when
|
||||||
- §7doing hand-to-hand combat?
|
- §7doing hand-to-hand combat?
|
||||||
|
Loading…
Reference in New Issue
Block a user