Git Product home page Git Product logo

petblocks's Introduction

PetBlocks

branch status download
master PetBlocks Download latest release
development PetBlocks Download snapshots

Information: PetBlocks has been recoded from scratch to support the latest Minecraft version.

Description

PetBlocks is a spigot plugin to use blocks and custom heads as pets in Minecraft.

Features

  • Use blocks as pets in minecraft
  • The GUI and pets are completely customizable
  • Version support 1.8.R1 - 1.21.R1
  • Check out the PetBlocks-Spigot-Page to get more information.

Installation

Screenshots

alt tag

petblocks's People

Contributors

anihadh avatar archeri2000 avatar brainstone avatar dependabot-preview[bot] avatar shynixn avatar yudonglin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

petblocks's Issues

Cannot place/break blocks with pet on head

When you put a pet block on your head, you can't place or break blocks because the armor stand is in the way. Not sure if this can be fixed but thought I should report it.

Annoying SLF4J messages from Hikari

SLF4J seem to irritate users of PetBlocks and should be hidden or fixed without adding the logging framework as it increases the size of Petblocks.jar

Particleeffects crash when using PaperSpigot

ava.lang.NoSuchFieldException: playerConnection 06.11 11:41:16 [Server] INFO at java.lang.Class.getDeclaredField(Class.java:2070) ~[?:1.8.0_91] 06.11 11:41:16 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.persistence.entity.ParticleEffectData.sendPacket(ParticleEffectData.java:728) ~[PetBlocks.jar:?] 06.11 11:41:16 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.persistence.entity.ParticleEffectData.applyTo(ParticleEffectData.java:620) [PetBlocks.jar:?] 06.11 11:41:16 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.persistence.entity.ParticleEffectData.apply(ParticleEffectData.java:555) [PetBlocks.jar:?] 06.11 11:41:16 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.helper.PetBlockHelper.doTickSounds(PetBlockHelper.java:198) [PetBlocks.jar:?] 06.11 11:41:16 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.helper.PetBlockHelper.doTick(PetBlockHelper.java:139) [PetBlocks.jar:?] 06.11 11:41:16 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.v1_12_R1.CustomGroundArmorstand.doTick(CustomGroundArmorstand.java:92) [PetBlocks.jar:?] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.EntityLiving.n(EntityLiving.java:2107) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.EntityLiving.B_(EntityLiving.java:1960) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.EntityArmorStand.B_(EntityArmorStand.java:564) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.World.entityJoinedWorld(World.java:1752) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.World.h(World.java:1722) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.World.tickEntities(World.java:1543) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.WorldServer.tickEntities(WorldServer.java:675) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:913) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [patched_1.12.2.jar:git-Paper-1244] 06.11 11:41:16 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91] 06.11 11:41:16 [Server] WARN Failed to send packet. 06.11 11:41:16 [Server] INFO

Minecraft Heads always changes

When there are new minecraft-heads.com skins available, the permissions tend to point at wrong slots before updating.

EntityRegistry prints error when being used in some cases

[PetBlocks] Disabling PetBlocks v6.0.1
[03:06:43 WARN]: Failed to unregister entity!
java.lang.NoSuchFieldException: c
at java.lang.Class.getDeclaredField(Unknown Source) ~[?:1.8.0_144]
at com.github.shynixn.petblocks.lib.LightRegistry$WrappedEntityRegistry.unregister(LightRegistry.java:106) ~[PetBlocks.jar:?]
at com.github.shynixn.petblocks.lib.LightRegistry.unregister(LightRegistry.java:47) [PetBlocks.jar:?]
at com.github.shynixn.petblocks.business.bukkit.nms.NMSRegistry.unregisterAll(NMSRegistry.java:60) [PetBlocks.jar:?]
at com.github.shynixn.petblocks.business.bukkit.PetBlocksPlugin.onDisable(PetBlocksPlugin.java:43) [PetBlocks.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:361) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:421) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:414) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.disablePlugins(CraftServer.java:346) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at net.minecraft.server.v1_12_R1.MinecraftServer.stop(MinecraftServer.java:464) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:612) [spigot-1.12.jar:git-Spigot-99c2a37-9a82fa7]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_144]

Hat Ride Transition

Wenn man ein beliebiges Pet ruft, dann reitet, und während man es eigentlich noch reitet als Hut aufsetzt, hängt man unter dem Pet und kann sich so durch Terrain buggen, und auch sich selbst lebendig begraben.

Translated:
When you are riding a pet and use the hat item, you can glitch through terrain and burry yourself alive.

PetBlock & Spawns compatibility

"This is the plugin I use: https://dev.bukkit.org/projects/spawns
Even the dev has been trying to help me config a way to prevent this.
Only thing I have done so far was raising the mob cap to around 1500. XD
Even he noticed that the mobs are spawned custom from your plugin.

Im not sure if that info will help but if you need my spawns configs etc let me know."

Disconnect on Join after enabling my petblock

[11:50:05 INFO]: MWFIAE[/47.68.100.102:59128] logged in with entity id 292 at ([mw_testwelt]14.27701800520191, 130.0, 0.8900479674627422)
[11:50:07 INFO]: MWFIAE lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.IllegalArgumentException: Unknown mob network type id -1

Using Spigot 1.12.2, latest petblocks, latest version of protocollib and protocolsupport.
It doesn't seem to occur if tested without protocolsupport.

Filtering causes shutdown crash

[19:06:31 INFO]: Saving chunks for level 'world'/overworld
[19:06:32 INFO]: Saving chunks for level 'world_nether'/the_nether
[19:06:32 INFO]: Saving chunks for level 'world_the_end'/the_end

2017-07-25 19:06:32,368 pool-1-thread-1 ERROR Caught exception executing shutdown hook null java.lang.AbstractMethodError: com.github.shynixn.petblocks.lib.Filtering$1.stop()V
at org.apache.logging.log4j.core.filter.CompositeFilter.stop(CompositeFilter.java:145)
at org.apache.logging.log4j.core.filter.AbstractFilterable.stop(AbstractFilterable.java:163)
at org.apache.logging.log4j.core.filter.AbstractFilterable.stop(AbstractFilterable.java:150)
at org.apache.logging.log4j.core.config.AbstractConfiguration.stop(AbstractConfiguration.java:315)
at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:351)
at org.apache.logging.log4j.core.LoggerContext$1.run(LoggerContext.java:279)
at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry$RegisteredCancellable.run(DefaultShutdownCallbackRegistry.java:109)
at org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry.run(DefaultShutdownCallbackRegistry.java:74)
at java.lang.Thread.run(Unknown Source)

Press any key to continue . . .

Bug on Spigot 1.12.2.

[21:32:20] [Server thread/WARN]: Failed to unregister entity!
java.lang.NoSuchFieldException: c
at java.lang.Class.getDeclaredField(Class.java:2070) ~[?:1.8.0_72]
at com.github.shynixn.petblocks.lib.LightRegistry$WrappedEntityRegistry.unregister(LightRegistry.java:105) ~[PetBlocks.jar:?]
at com.github.shynixn.petblocks.lib.LightRegistry.unregister(LightRegistry.java:46) [PetBlocks.jar:?]
at com.github.shynixn.petblocks.business.bukkit.nms.NMSRegistry.unregisterAll(NMSRegistry.java:60) [PetBlocks.jar:?]
at com.github.shynixn.petblocks.business.bukkit.PetBlocksPlugin.onDisable(PetBlocksPlugin.java:51) [PetBlocks.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:361) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at us.Myles.PWP.TransparentListeners.PerWorldPluginLoader.disablePlugin(PerWorldPluginLoader.java:140) [PerWorldPlugins.jar:?]
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:421) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:414) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.disablePlugins(CraftServer.java:352) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at net.minecraft.server.v1_12_R1.MinecraftServer.stop(MinecraftServer.java:465) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:613) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

Wrong casting object

[Craft Scheduler Thread - 27/WARN]: [GGMinigame] Plugin GG1 v1.1 generated an exception while executing task 7424
java.lang.ClassCastException: com.github.shynixn.petblocks.bukkit.logic.persistence.entity.PlayerData cannot be cast to com.github.shynixn.petblocks.bukkit.logic.persistence.entity.PetData
at com.github.shynixn.petblocks.bukkit.logic.persistence.controller.PetDataRepository.store(PetDataRepository.java:57) ~[?:?]
at com.github.shynixn.petblocks.bukkit.logic.persistence.controller.PetDataRepository.store(PetDataRepository.java:26) ~[?:?]
at ggetenirya.MainClass$3.run(MainClass.java:136) ~[?:?]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[patched_1.11.2.jar:git-Paper-1104]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [patched_1.11.2.jar:git-Paper-1104]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [patched_1.11.2.jar:git-Paper-1104]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_141]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_141]

1.9 itemHand access fails in 1.8.8

20:24:49] [Server thread/WARN]: [PetBlocks] Failed to gather item in 19 hand. java.lang.NoSuchMethodException: org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.getItemInHand() at java.lang.Class.getDeclaredMethod(Class.java:2130) ~[?:1.8.0_141] at com.github.shynixn.petblocks.bukkit.lib.ReflectionUtils.invokeMethodByObject(ReflectionUtils.java:167) ~[PetBlocks.jar:?] at com.github.shynixn.petblocks.bukkit.lib.ReflectionUtils.invokeMethodByObject(ReflectionUtils.java:139) ~[PetBlocks.jar:?] at com.github.shynixn.petblocks.bukkit.nms.NMSRegistry.getItemInHand19(NMSRegistry.java:161) [PetBlocks.jar:?] at com.github.shynixn.petblocks.bukkit.logic.business.listener.PetBlockListener.entityRightClickEvent(PetBlockListener.java:227) [PetBlocks.jar:?] at sun.reflect.GeneratedMethodAccessor344.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_141] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_141] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1315) [spigot.jar:git-Spigot-21fe707-e1ebe52] at de.robingrether.idisguise.management.channel.InjectedPlayerConnection183.a(InjectedPlayerConnection183.java:53) [iDisguise.jar:?] at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:52) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:11) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-21fe707-e1ebe52] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-21fe707-e1ebe52] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]

GUI setup fails to display correctly

Having an issue on update to 1.12/6.0.0 - the GUI is not working with my set up any longer.

This is the GUI on PB 5.7.0/Spigot 1.11.2:
[​IMG]
With the config: https://pastebin.com/SDHJSKsA

And the GUI on update to PB 6.0.0/Spigot 1.12 with the same config:
[​IMG]

My best guess is the owner line being the issue, as everything that is not showing has that set to none or blank - but they shouldn't be using that anyway, they should be using the item IDs. I have sat for a while trying to figure it out but I can't get it to work with my GUI setup - any help please?

Deprecated Event

It doesn't appear as if it'll affect gameplay, but a nasty little warning pops up on the plugin load that claims the method you're using to monitor chat input may cause lag to the main chat thread.

Here's the output; maybe there's a way you could suppress it?

Thank you.

Server Version: 1.11.2
Plugin Version: 5.7.0

Whitelist causes player.getWorld to be null

.11 13:10:44 [Server] WARN Cannot create petblock.
16.11 13:10:44 [Server] INFO java.lang.reflect.InvocationTargetException: null
16.11 13:10:44 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_131]
16.11 13:10:44 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_131]
16.11 13:10:44 [Server] INFO at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_131]
16.11 13:10:44 [Server] INFO at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_131]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.lib.ReflectionUtils.invokeConstructor(ReflectionUtils.java:95) ~[?:?]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.NMSRegistry.createPetBlock(NMSRegistry.java:71) ~[?:?]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.business.controller.PetBlockRepository.create(PetBlockRepository.java:58) ~[?:?]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.business.listener.PetDataListener.lambda$null$2(PetDataListener.java:187) ~[?:?]
16.11 13:10:44 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:58) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:356) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:833) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
16.11 13:10:44 [Server] INFO Caused by: java.lang.NullPointerException
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.v1_12_R1.CustomRabbit.(CustomRabbit.java:34) ~[?:?]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.v1_12_R1.CustomGroundArmorstand.(CustomGroundArmorstand.java:54) ~[?:?]
16.11 13:10:44 [Server] INFO ... 15 more
16.11 13:10:44 [Server] WARN Task #79821 for PetBlocks v6.3.1 generated an exception
16.11 13:10:44 [Server] INFO java.lang.NullPointerException: null
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.business.controller.PetBlockRepository.store(PetBlockRepository.java:93) ~[?:?]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.business.controller.PetBlockRepository.store(PetBlockRepository.java:45) ~[?:?]
16.11 13:10:44 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.business.listener.PetDataListener.lambda$null$2(PetDataListener.java:188) ~[?:?]
16.11 13:10:44 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:356) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:833) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [Paper.jar:git-Paper-1256]
16.11 13:10:44 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

Add "buff" effects to engines

For example, if you were to have a cow, pig, or chicken pet active, it could slow your hunger by half, or if you had a creeper pet active, it would give you additional blast protection, or fire protection if you had a blaze pet, have infinite water breathing whilst you have a guardian pet, or night vision whilst you have a spider pet.

Toggle command to petblock

Can you add a /Petblock toggle where you can toggle your own pet without going into the gui.
Thanks

  • Daniel

Pets can be used to enter restricted plots

Thank you!
Also have a issue

Code (Text):
[7/25/17, 2:37:23 PM] Brett: Zach
[7/25/17, 2:37:29 PM] Brett: if you ride a pet u can go into a plot
[7/25/17, 2:57:58 PM] nυllвloх | zacнrywιlѕn:: Will tell developer this.
So we need some kinda protection on riding mods into regions.

Cannot play 1.12 sound on 1.12?

[10:14:03 WARN]: [PetBlocks] Cannot play ambient sound ENTITY_PIG_AMBIENT of Pig.
[10:14:03 WARN]: [PetBlocks] Is this entity or sound supported by your server version? Disable it in the config.yml

Error on Spigot 1.12.2 using PetBlocks Snapshot.

[23:21:41] [Craft Scheduler Thread - 1213/WARN]: [PetBlocks] Database error occurred.
org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such column: pet.engine)
at org.sqlite.core.DB.newSQLException(DB.java:909) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.DB.newSQLException(DB.java:921) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.DB.throwex(DB.java:886) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.NativeDB.prepare_utf8(Native Method) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.NativeDB.prepare(NativeDB.java:127) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.DB.prepare(DB.java:227) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.core.CorePreparedStatement.(CorePreparedStatement.java:41) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.jdbc3.JDBC3PreparedStatement.(JDBC3PreparedStatement.java:30) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.jdbc4.JDBC4PreparedStatement.(JDBC4PreparedStatement.java:19) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.jdbc4.JDBC4Connection.prepareStatement(JDBC4Connection.java:48) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:263) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:235) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at com.zaxxer.hikari.proxy.ConnectionProxy.prepareStatement(ConnectionProxy.java:265) ~[?:?]
at com.zaxxer.hikari.proxy.HikariConnectionProxy.prepareStatement(HikariConnectionProxy.java) ~[?:?]
at com.github.shynixn.petblocks.bukkit.lib.ExtensionHikariConnectionContext.executeQuery(ExtensionHikariConnectionContext.java:169) ~[?:?]
at com.github.shynixn.petblocks.bukkit.lib.ExtensionHikariConnectionContext.executeStoredQuery(ExtensionHikariConnectionContext.java:150) ~[?:?]
at com.github.shynixn.petblocks.bukkit.logic.persistence.controller.PetDataRepository.getByPlayer(PetDataRepository.java:107) ~[?:?]
at com.github.shynixn.petblocks.bukkit.logic.business.listener.PetDataListener.lambda$handleChatMessage$14(PetDataListener.java:496) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_72]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_72]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
[23:21:41] [Craft Scheduler Thread - 1213/WARN]: [PetBlocks] Plugin PetBlocks v6.3.1-SNAPSHOT generated an exception while executing task 1032198
java.lang.NullPointerException: null
at com.github.shynixn.petblocks.bukkit.logic.persistence.controller.PetDataRepository.getByPlayer(PetDataRepository.java:122) ~[?:?]
at com.github.shynixn.petblocks.bukkit.logic.business.listener.PetDataListener.lambda$handleChatMessage$14(PetDataListener.java:496) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot-1.12.2.jar:git-Spigot-5695bca-53fccdf]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_72]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_72]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

Let pets stay a certain amount of blocks away from the player

Hello, I was wondering if you can add a way for the pets
to stay a certain amount of blocks from a player.
The reason for this is many players who use these PVP.
An when in PvP the pet gets in the way most times.
We have gun pvp on my server, so any way to set the pet to like 3-6 blocks from the player would be
ideal.
No rush and no worries if you can not add this, just let me know.

petblock call command causes errors

15.11 17:15:06 [Server] ERROR null
15.11 17:15:06 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing 'petblock call' in com.github.shynixn.petblocks.bukkit.logic.business.commandexecutor.PetDataCommandExecutor(petblock)
15.11 17:15:06 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:160) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:676) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1471) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1276) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
15.11 17:15:06 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843) [Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
15.11 17:15:06 [Server] INFO Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer cannot be cast to org.bukkit.Location
15.11 17:15:06 [Server] INFO at com.github.shynixn.petblocks.bukkit.nms.v1_12_R1.CustomGroundArmorstand.teleport(CustomGroundArmorstand.java:389) ~[?:?]
15.11 17:15:06 [Server] INFO at com.github.shynixn.petblocks.bukkit.logic.business.commandexecutor.PetDataCommandExecutor.onPlayerExecuteCommand(PetDataCommandExecutor.java:43) ~[?:?]
15.11 17:15:06 [Server] INFO at com.github.shynixn.petblocks.bukkit.lib.SimpleCommandExecutor$UnRegistered.execute(SimpleCommandExecutor.java:331) ~[?:?]
15.11 17:15:06 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[Paper.jar:git-Paper-1256]
15.11 17:15:06 [Server] INFO ... 14 more

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.