Skip to content
This repository has been archived by the owner on Feb 1, 2018. It is now read-only.

Enchants not working #271

Open
Gianluxx opened this issue Jan 13, 2018 · 5 comments
Open

Enchants not working #271

Gianluxx opened this issue Jan 13, 2018 · 5 comments

Comments

@Gianluxx
Copy link

Gianluxx commented Jan 13, 2018

Issue description

The enchants are not working. Knockback doesn't knockback more, Fire aspect doesn't light the enemy, ...

Steps to reproduce the issue

Add enchants to weapons and try pvp

OS and versions

  • Turanic: 73dbbe5
  • PHP: 7.0
  • Server OS: Linux x64
  • Game version: 1.2

Crashdump, backtrace, memory dumps, plugins list or other files

None
@Enes5519
Copy link
Contributor

Work send me your codes

@Gianluxx
Copy link
Author

Which codes?

@Enes5519
Copy link
Contributor

Add Enchant

@Gianluxx
Copy link
Author

$enchantment = new EnchantmentInstance(Enchantment::getEnchantment(0), 3);
$item->addEnchantment($enchantment);

This works. But the problem is when you hit a player. The enchant does nothing (knockback doesn't knockback more than usual, ...)

@Gianluxx
Copy link
Author

Fix please. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants