MCLib
MCLib
This library is required for all my plugins.
I've created this lib so i can easily update my plugins.
Note that Advanced Lucky Block version 1.9.8.5 doesn't require this plugin.
Don't install MCLib 1.5 version until i release a new version of lb.
Installation
- Put the downloaded file in plugins folder.
- Enjoy!
Commands
/mclib version.
Permissions
mclib.version
Classes that can be used in your project
- CustomEntity
- ItemMaker
- ItemNBT
- TellRawSender
Tested versions
bukkit 1.10. bukkit 1.9.
Ça marche pas 😡
The plugin lucky block is 1.8 to 1.11
I am useing 1.8 plugins and i cant use the luckyblock plugin without this plugin, but its only for 1.10 and 1.12
can you make this plugin to 1.8 too pls ?
In reply to Forge_User_72597891:
@SlimeDog
It's not easy to do that.
Some functions and methods have been changed since the last update especially Custom Entities, also lb is not compatible with 1.8 and older versions because of some functions that require 1.10 and 1.9 like PotionData and some particles.
@MCGamer199
What you should do, IMHO, is make MCLib backwards-compatible, so that the latest version can be installed without breaking the current version of LB. I monitor all my plugins automatically, and assume (incorrectly in this case), that I should update when new versions are available. But I do that on a test server, so no harm on my production server.
At the very least, make the compatibility clear in the release notes (which you have now done). Thanks.
@SlimeDog
Currently,latest version of lb depends on 1.3 version of MCLib. 1.5 was made for the new version of lb. I should have released the new version of lb earlier. But there still many things i want to add.
Spigot 1.10.2 latest, all plugins latest pulls including MCLib 1.5 (new) and LB 1.9 (latest).
[07:03:16] [Server thread/INFO]: [LuckyBlock] Enabling LuckyBlock v1.9
[07:03:16] [Server thread/INFO]: [LuckyBlock] LuckyBlock , 1.9 Enabled.
[07:03:16] [Server thread/ERROR]: Error occurred while enabling LuckyBlock v1.9 (Is it up to date?)
java.lang.VerifyError: class com.LuckyBlock.customentities.EntityChestHead overrides final method spawn.(Lorg/bukkit/Location;)V
at java.lang.ClassLoader.defineClass1(Native Method) [?:1.8.0_91]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [?:1.8.0_91]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [?:1.8.0_91]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) [?:1.8.0_91]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) [?:1.8.0_91]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) [?:1.8.0_91]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) [?:1.8.0_91]
at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_91]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) [?:1.8.0_91]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:191) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [?:1.8.0_91]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_91]
at com.LuckyBlock.Engine.LuckyBlock.loadCustomEntities(LuckyBlock.java:489) [?:?]
at com.LuckyBlock.Engine.LuckyBlock.onEnable(LuckyBlock.java:178) [?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugin(CraftServer.java:373) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugins(CraftServer.java:323) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:204) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:535) [spigot-1.10.2.jar-2016-09-05-0508:git-Spigot-f9671b8-48b88ed]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
After the first failure, deleted ./plugins/MCLib/ (including ./plugins/MCLib/CustomEntitltes.yml) manually, as a test. MCLib 1.5 does not (re)create them. Their existence or non-existence does not resolve the error. Not surprising, I guess, since the contents are an empty YAML declaration.
Reverted to MCLib 1.3.
@SlimeDog @TeamAonn Fixed!
External version: 1.3
Internal version: 1.2.
@MCGamer199
Spigot 1.10.2
[10:33:06 ERROR]: Could not pass event EntityDamageByEntityEvent to MCLib v1.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:89) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:572) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:479) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:604) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityLiving.damageEntity0(EntityLiving.java:1238) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityLiving.damageEntity(EntityLiving.java:834) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityMonster.damageEntity(EntityMonster.java:48) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityZombie.damageEntity(EntityZombie.java:180) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityArrow.a(EntityArrow.java:285) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityArrow.m(EntityArrow.java:193) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityTippedArrow.m(EntityTippedArrow.java:68) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.World.entityJoinedWorld(World.java:1629) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.World.g(World.java:1604) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.World.tickEntities(World.java:1430) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.WorldServer.tickEntities(WorldServer.java:632) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:804) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:673) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:572) [spigot.jar:git-Spigot-a9631d2-67b2424] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91] Caused by: java.lang.NullPointerException at org.core.entity.CustomEntityEvents.onDamageEntityWithProjectile(CustomEntityEvents.java:286) [?:?] at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_91] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-a9631d2-67b2424] ... 23 more [10:33:08 ERROR]: Could not pass event EntityDamageByEntityEvent to MCLib v1.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:89) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:572) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:479) [spigot.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:604) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityLiving.damageEntity0(EntityLiving.java:1238) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityLiving.damageEntity(EntityLiving.java:834) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityMonster.damageEntity(EntityMonster.java:48) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityZombie.damageEntity(EntityZombie.java:180) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityArrow.a(EntityArrow.java:285) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityArrow.m(EntityArrow.java:193) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.EntityTippedArrow.m(EntityTippedArrow.java:68) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.World.entityJoinedWorld(World.java:1629) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.World.g(World.java:1604) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.World.tickEntities(World.java:1430) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.WorldServer.tickEntities(WorldServer.java:632) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:804) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:673) [spigot.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:572) [spigot.jar:git-Spigot-a9631d2-67b2424] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91] Caused by: java.lang.NullPointerException at org.core.entity.CustomEntityEvents.onDamageEntityWithProjectile(CustomEntityEvents.java:286) [?:?] at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_91] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-a9631d2-67b2424] ... 23 more
@TeamAonn
Please post error message and your server version here so i can fix it.
Okay so yeah lot's of this on my console window in MCMyAdmin: 9:28:30 AM CONSOLE: ERROR]: Could not pass event EntityDamageByEntityEvent to MCLib v1.2
that comes up with the slimes, luckyblocks can't be upgraded for some odd reason, oh and this error pops up randomly on my console while I'm working on the server computer.
So yeah. Lots more errors pop up, and I'm not sure what's causing them. But it's chewing up ram because it doesn't seem to be flushing correctly.
@TeamAonn
1.9.8.6 and above requires this.
is it 1.9.8.5 and later that doesn't need this?
Fixed!
Internal version is still 1.0. :(
@brokenshadows
Fixed!
Not sure why, but when this plugin is installed on my server right-clicking in the world (e.g. placing a block) causes "testHAND testOFF_HAND" to show up in the message window. Removing MCLib gets rid of the messages.