Fix some remaining issues with supply drops
This commit is contained in:
parent
fd5a09e71b
commit
be3e893b55
@ -128,7 +128,8 @@ public class SupplyDrop
|
||||
{
|
||||
inventory.setItem(i++, item);
|
||||
}
|
||||
_block.setMetadata(SUPPLY_DROP_FILLED_METADATA, new FixedMetadataValue(UtilServer.getPlugin(), true));
|
||||
chest.update(true);
|
||||
chest.setMetadata(SUPPLY_DROP_FILLED_METADATA, new FixedMetadataValue(UtilServer.getPlugin(), true));
|
||||
}, 5);
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,7 @@ import com.mineplex.clansqueue.common.ClansQueueMessenger;
|
||||
import com.mineplex.clansqueue.common.QueueConstant;
|
||||
import com.mineplex.clansqueue.common.messages.ServerOfflineMessage;
|
||||
|
||||
import mineplex.core.Managers;
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.account.permissions.Permission;
|
||||
import mineplex.core.account.permissions.PermissionGroup;
|
||||
@ -36,6 +37,7 @@ import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.RestartServerEvent;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import mineplex.game.clans.clans.ClansManager;
|
||||
import mineplex.game.clans.clans.supplydrop.SupplyDropManager;
|
||||
import mineplex.game.clans.gameplay.safelog.npc.NPCManager;
|
||||
import net.minecraft.server.v1_8_R3.MinecraftServer;
|
||||
|
||||
@ -120,6 +122,10 @@ public class RestartManager extends MiniPlugin
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (Managers.get(SupplyDropManager.class).hasActiveSupplyDrop())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user