GUI Shop

GUI Shop

273k Downloads

[meta] Upcoming API change in SilkSpawners v4

timbru31 opened this issue ยท 1 comments

commented

Hi there,

I just wanted to give you a short shoutout about an upcoming API change in SilkSpawners (v4). The update will take some time, but I'll refactor the whole SilkUtil.
I will increase the major version number to v4 since it might (or mostly will) be a breaking change.
Deprecated methods will be removed, so make sure you update your method here:

p.getInventory().addItem(new ItemStack[]{su.setSpawnerType(dupeitem2, Short.parseShort(mobid), String.valueOf(Spawners.getMobName(Integer.parseInt(mobid))) + " Spawner")});

Additionally, I recommend to call the hookIntoSilkSpawners just once and keep the SilkUtil as an instance variable.

commented

Thank you so much for this timbru. I will look into this change and adjust my plugin accordingly.