mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-18 08:52:07 +01:00
Fixing death drop stat and keepSoulboundOndeath settings!
This commit is contained in:
parent
99e893801d
commit
626aa4fc74
@ -66,7 +66,7 @@ public class PlayerListener implements Listener {
|
|||||||
*/
|
*/
|
||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
public void onDeathForSoulbound(PlayerDeathEvent event) {
|
public void onDeathForSoulbound(PlayerDeathEvent event) {
|
||||||
if (event.getKeepInventory() || !MMOItems.plugin.getLanguage().keepSoulboundOnDeath)
|
if (event.getKeepInventory() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Player player = event.getEntity();
|
Player player = event.getEntity();
|
||||||
@ -90,7 +90,7 @@ public class PlayerListener implements Listener {
|
|||||||
* using a JsonParser followed by map checkups in the SoulboundData
|
* using a JsonParser followed by map checkups in the SoulboundData
|
||||||
* constructor
|
* constructor
|
||||||
*/
|
*/
|
||||||
else if (nbt.hasTag("MMOITEMS_SOULBOUND") && nbt.getString("MMOITEMS_SOULBOUND").contains(player.getUniqueId().toString())) {
|
else if (MMOItems.plugin.getLanguage().keepSoulboundOnDeath && nbt.hasTag("MMOITEMS_SOULBOUND") && nbt.getString("MMOITEMS_SOULBOUND").contains(player.getUniqueId().toString())) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
soulboundInfo.add(item);
|
soulboundInfo.add(item);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user