Car Lock
About
This plugin is a add-on for the plugin uCars. With this plugin users can lock their own car (minecart) so nobody can ride it only the owner of the car.
The key
How to lock: to lock your vehicle stand next to it very closely and look above the minecart and do left mouse click. Now it says you locked your minecart and nobody can ride it now! only the owner ofcourse.
To unlock: do right mouse click above the minecart (and stand next to the vehicle very closely). Now it says you unlocked the car!
Required plugins
This plugin is made for the uCars plugin as a extra feature.
See in action
You can try the plugin on my server!
What can i do with this error ? please help :
[03:07:51] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to CarLock v1.2
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.craftbukkit.v1_11_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:234) [oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.craftbukkit.v1_11_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:201) [oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.craftbukkit.v1_11_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:197) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:950) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:26) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [oxyland.jar:git-Spigot-625bc00-d09304e]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121]
at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [oxyland.jar:git-Spigot-625bc00-d09304e]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
Caused by: java.lang.NullPointerException
at com.bloodyxninjax.Events.onLockUnlock(Events.java:43) ~[?:?]
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[oxyland.jar:git-Spigot-625bc00-d09304e]
... 18 more
[03:07:51] [Timer-1/INFO]: [WorldGuard] Region data changes made in 'world' have been background saved
[03:08:15] [Server thread/ERROR]: Could not pass event VehicleEnterEvent to CarLock v1.2
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [oxyland.jar:git-Spigot-625bc00-d09304e]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.Entity.o(Entity.java:1869) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.Entity.a(Entity.java:1829) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.EntityPlayer.a(EntityPlayer.java:604) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.Entity.startRiding(Entity.java:1811) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.EntityMinecartRideable.b(SourceFile:31) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.EntityHuman.a(EntityHuman.java:918) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1556) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PacketPlayInUseEntity.a(SourceFile:69) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PacketPlayInUseEntity.a(SourceFile:13) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [oxyland.jar:git-Spigot-625bc00-d09304e]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121]
at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [oxyland.jar:git-Spigot-625bc00-d09304e]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [oxyland.jar:git-Spigot-625bc00-d09304e]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
Caused by: java.lang.NullPointerException
at com.bloodyxninjax.Events.enterVehicle(Events.java:67) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[oxyland.jar:git-Spigot-625bc00-d09304e]
... 21 more
you can upgrade it for 1.11.2 please... i have a non normal error ..
@Teixeirinha26 You can prevent this with Worldguard. Just set the flag "vehicle destroy" to false.
Hi guys, it's a long time ago that I worked on this plugin. I can tell you that I will update the plugin this summer! With new features and bug fixes.
Awesome plugin, but other players still can push and destroy my car ! Any suggestion ?
Heiyy,
cool Plugin, but could you maybe make a config to translate the messages? :)
@ProWco
That's coming up in the next update, the key is a tripwirehook. You can get one through gamemode 1.
@crocro14
I will update it soon.
How i get the key? with what command?
it doesn't work with 1.8.8 please fix i need it fast for roleplay :D
@Thepom360
Uhu. I will take a look at it. Thank you for your report @Extrememc64
@bloodyxninjax
seem like spigot 1.8.3 From the error message.
@Extrememc64
Which Bukkit or Spigot version do you use?
Hey bloodyxninjax here is my error message!
http://pastebin.com/730iSSE4
how you fix the problem ? i have it to...