mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-22 09:31:20 +01:00
!Fixed another "Player must be online" error
This commit is contained in:
parent
f4a20057d0
commit
8c59edb229
@ -47,6 +47,7 @@ public class GetMMOItemObjective extends Objective {
|
||||
@EventHandler
|
||||
public void a(CitizenInteractEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
if(!getQuestProgress().getPlayer().isOnline()) return;
|
||||
if (player.equals(getQuestProgress().getPlayer().getPlayer()) && event.getNPC().getId() == npcId && player.getInventory().getItemInMainHand() != null) {
|
||||
NBTItem item = NBTItem.get(player.getInventory().getItemInMainHand());
|
||||
int amount;
|
||||
|
Loading…
Reference in New Issue
Block a user