Giter Club home page Giter Club logo

latch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dryxen

latch's Issues

can't lock doot in biomes o' plenty mod

input That is not a lockable block: tile.fir_door_block.name
but me add the fir_door's item id:"biomesoplenty:fir_door" into config latch.conf
please fix it

Anyone can open a chest

If you shift right click with an empty hand on a locked chest, it will open it and you can remove items!

Only one of the chest's in a double chest is protected.

I'm running latch-0.4.2-S6.0.0 on spongevanilla-1.11.2-7.0.0-BETA-269

If I lock a double chest only the section I clicked on will be protected. Anyone could still click on the other half and take the items. If I try to lock the second half it says "There is already a lock here".

The other plugins I have is:
LuckPerms
Prism
Nucleous
SleepVote
FastAsyncWorldEdit

It doesn't work on my server

`[Server thread/ERROR] [Sponge]: Could not pass ChangeBlockEvent$Break$Impl to Plugin{id=latch, name=latch, version=0.5.0, description=An extensive container locking plugin., url=https://github.com/IchorPowered/Latch, source=.\mods\Latch-0.5.0-S7.1.0.jar}
java.lang.NullPointerException: null
at com.meronat.latch.entities.LockManager.getLock(LockManager.java:59) ~[LockManager.class:?]
at com.meronat.latch.listeners.ChangeBlockListener.onBreakBlockByPlayer(ChangeBlockListener.java:197) ~[ChangeBlockListener.class:?]
at org.spongepowered.common.event.listener.BreakListener_ChangeBlockListener_onBreakBlockByPlayer341.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:383) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.extendedPost(SpongeModEventManager.java:443) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:404) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:447) [SpongeEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:225) [SpongeImpl.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.TrackingUtil.iterateChangeBlockEvents(TrackingUtil.java:606) [TrackingUtil.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.TrackingUtil.processBlockCaptures(TrackingUtil.java:499) [TrackingUtil.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.TrackingUtil.processBlockCaptures(TrackingUtil.java:454) [TrackingUtil.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.phase.packet.InteractionPacketState.unwind(InteractionPacketState.java:130) [InteractionPacketState.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.phase.packet.InteractionPacketState.unwind(InteractionPacketState.java:72) [InteractionPacketState.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.PhaseTracker.completePhase(PhaseTracker.java:265) [PhaseTracker.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.PhaseContext.close(PhaseContext.java:565) [PhaseContext.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:94) [PacketUtil.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zle000(SourceFile:539) [hv$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:293) [SpongeImplHooks.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.server.MinecraftServer.redirect$onRun$zjj000(MinecraftServer.java:3963) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]

[Server thread/ERROR] [Sponge]: Could not pass ClickInventoryEvent$Shift$Primary$Impl to Plugin{id=latch, name=latch, version=0.5.0, description=An extensive container locking plugin., url=https://github.com/IchorPowered/Latch, source=.\mods\Latch-0.5.0-S7.1.0.jar}
java.lang.NullPointerException: null
at com.meronat.latch.entities.LockManager.getLock(LockManager.java:59) ~[LockManager.class:?]
at com.meronat.latch.listeners.InteractBlockListener.onClickInventory(InteractBlockListener.java:91) ~[InteractBlockListener.class:?]
at org.spongepowered.common.event.listener.ClickInventoryEventListener_InteractBlockListener_onClickInventory346.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:383) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.extendedPost(SpongeModEventManager.java:443) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:404) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:447) [SpongeEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:225) [SpongeImpl.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.phase.packet.BasicInventoryPacketState.unwind(BasicInventoryPacketState.java:195) [BasicInventoryPacketState.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.phase.packet.BasicInventoryPacketState.unwind(BasicInventoryPacketState.java:56) [BasicInventoryPacketState.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.PhaseTracker.completePhase(PhaseTracker.java:265) [PhaseTracker.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.event.tracking.PhaseContext.close(PhaseContext.java:565) [PhaseContext.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:94) [PacketUtil.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zle000(SourceFile:539) [hv$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:293) [SpongeImplHooks.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.server.MinecraftServer.redirect$onRun$zjj000(MinecraftServer.java:3963) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]

[Server thread/ERROR] [Sponge]: Could not pass InteractBlockEvent$Secondary$MainHand$Impl to Plugin{id=latch, name=latch, version=0.5.0, description=An extensive container locking plugin., url=https://github.com/IchorPowered/Latch, source=.\mods\Latch-0.5.0-S7.1.0.jar}
java.lang.NullPointerException: null
at com.meronat.latch.entities.LockManager.getLock(LockManager.java:59) ~[LockManager.class:?]
at com.meronat.latch.listeners.InteractBlockListener.onPlayerClick(InteractBlockListener.java:179) ~[InteractBlockListener.class:?]
at org.spongepowered.common.event.listener.InteractBlockEventListener_InteractBlockListener_onPlayerClick349.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:383) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:347) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at org.spongepowered.mod.event.SpongeModEventManager.extendedPost(SpongeModEventManager.java:435) [SpongeModEventManager.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.server.management.PlayerInteractionManager.func_187251_a(PlayerInteractionManager.java:1189) [or.class:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onProcessRightClickBlock$zin000(NetHandlerPlayServer.java:2410) [pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_184337_a(NetHandlerPlayServer.java:739) [pa.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:55) [ma.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:11) [ma.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:92) [PacketUtil.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zle000(SourceFile:539) [hv$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:293) [SpongeImplHooks.class:1.12.2-2705-7.1.0-BETA-3361]
at net.minecraft.server.MinecraftServer.redirect$onRun$zjj000(MinecraftServer.java:3963) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]`
Sponge version:7.1.0-BETA-3164
Forge version:14.23.4.2705

Auto Lock Suggestion

Hey! It would be great if you would be able to add an auto-locking feature when the users place the items such as chests,furnaces etc.

Player Name Length, and Sign line length.

So uh, not really sure if this counts as an issue, but Playernames can contain more characters than what will fit on one line of a sign, thus, making them unable to access any containers they have locked.

Donation Chests Don't Function

Hey Latch Team!
I have been experimenting with your plugin, and the donation chests do not work. Do you have any reason why this command could be messing up?
Thanks!

Public locks with redstone protection issue

The public locks don't seem to follow the same rules as private locks when it comes to the new redstone protection whitelist feature. I tried to use a public pressure plate to open a public fence gate, and the gate opened once but wouldn't close after stepping off the place. After that it wouldn't trigger at all.

Latch-0.3.1
spongeforge-1.10.2-2202-5.1.0-BETA-2093

Latest everything, Forge, SpongeForge and Latch and I am crashing with the following error in console.

01.08 13:12:59 [Multicraft] Server stopped 01.08 13:12:59 [Multicraft] Server shut down 01.08 13:12:59 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_72] 01.08 13:12:59 [Server] INFO at org.spongepowered.mod.plugin.SpongeModPluginContainer.constructMod(SpongeModPluginContainer.java:296) ~[spongeforge-1.8.9-1890-4.2.0-BETA-1625.jar:1.8.9-1890-4.2.0-BETA-1625] 01.08 13:12:59 [Server] INFO at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051) ~[spongeforge-1.8.9-1890-4.2.0-BETA-1625.jar:1.8.9-1890-4.2.0-BETA-1625] 01.08 13:12:59 [Server] INFO at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025) ~[spongeforge-1.8.9-1890-4.2.0-BETA-1625.jar:1.8.9-1890-4.2.0-BETA-1625] 01.08 13:12:59 [Server] INFO 1 error 01.08 13:12:59 [Server] INFO while locating com.ichorcommunity.latch.Latch 01.08 13:12:59 [Server] INFO at org.spongepowered.common.guice.SpongePluginGuiceModule.configure(SpongePluginGuiceModule.java:68) 01.08 13:12:59 [Server] INFO at com.ichorcommunity.latch.Latch.<init>(Latch.java:81) 01.08 13:12:59 [Server] INFO 1) Error injecting constructor, java.util.NoSuchElementException: No value present 01.08 13:12:59 [Server] INFO com.google.inject.ProvisionException: Unable to provision, see the following errors: 01.08 13:12:59 [Server] Server thread/ERROR [FML]: Caught exception from latch 01.08 13:12:59 [Server] Server thread/ERROR [FML]: The following problems were captured during this phase

Loading Issue for SpongeForge 7.1.0

Hello Monsieur Meronat!

I have my bug report for you. Latch seems to be providing a couple of error during the server loading process. I don't mean to bother you, I would just be happy if you get to it when you have some spare time. ^^

Full Server Log - https://pastebin.com/BPMCPKTy
Stack Trace - https://pastebin.com/F8YasxZd

Just to note, I run this on custom modpack server with a number of mods, so I'm not sure if the problem is relevant to that or not. Either way, thank you for your time!

Bug - 0.3.1 still destroys inventory of chests

Hey there ;]

Newest version did not fixed the problem completly.
Sometimes items get droped from the chest when destroy, but NOT ALL items and sometimes nothing drops.

Using spongeforge-1.11.2-2226-6.0.0-BETA-2110, the newest one.

Greetz,
Hannes from Germany

Redesign lock info command

It's super ugly right now. Let's try to find a better design for it and include the new last accessed information.

Hopper minecart

With minecart with hopper i can easly withdraw items from locked chest. Plugin with lastest version ofc

Password doors won't open

http://prntscr.com/fo2zf3

I am on an alternate account trying to unlock this password door, but the door never opens. SV 289 on the SCS.

Incorrect passwords still operate normally, meaning I still have to enter the correct password in order for the bug to happen. But when I click the door it auto-shuts itself back, and then clicking again starts the lock again :(

So it's like it gives us one instance to go through the open door, but the door is never open for us because of the auto-shut. I have tried walking through while it's in action, but it shuts faster than movement happens normally in MC.

open chest locked for admin

hello

Can the admin see what there are in a chest locked by a player ?

because I am /op but I have the sentence You cannot access this lock

thanks to add that admin with permission can open locked chest

thanks ;)

have a nice day

Opening furnace when locked and interacting with the GUI closes it

Ok, so a user on my server recently let me know that they kept getting kicked out of the GUI of all furnaces every time they tried to place an item in to smelt. The furnace worked fine, but they got kicked out immediately after placing or removing items. I had them /latch delete on it and the furnace went back to normal functionality and not closing on every interaction.

GriefPrevention and Guild Compatibility

I imagine this would be very handy to have a chest only members in a town and guild can open etc. Lots of configuration should be around this. Most likely better to expose an API as blood doesn't mind supporting it from GP.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.