D
Deleted member 5254
I have been looking for a while for a slime fun hook. I have not found one.
I recently came across SharpSK which has a hook for slime fun research. But I am looking to hook into slimefun items, such as dusts and ingots.
I know nothing about writing java, but based on this code for hooking in slimefun research, would it be easy to hook into items?
Would someone be able to make this add-on?
Here is the code I saw from SharpSk's git
Please let me know if this could be done, i'd be the FIRST one to download
Thanks
-Shane
I recently came across SharpSK which has a hook for slime fun research. But I am looking to hook into slimefun items, such as dusts and ingots.
I know nothing about writing java, but based on this code for hooking in slimefun research, would it be easy to hook into items?
Would someone be able to make this add-on?
Here is the code I saw from SharpSk's git
Java:
package me.sharpjaws.sharpSK.hooks.Slimefun;
import javax.annotation.Nullable;
import org.bukkit.entity.Player;
import ch.njol.skript.Skript;
import ch.njol.skript.lang.ExpressionType;
import ch.njol.skript.lang.util.SimpleEvent;
import ch.njol.skript.registrations.EventValues;
import ch.njol.skript.util.Getter;
import me.mrCookieSlime.Slimefun.Events.ResearchUnlockEvent;
public class SlimefunRegistry {
public static void registerSlimefun() {
Skript.registerEvent("On slimefun research", SimpleEvent.class, ResearchUnlockEvent.class,
"[(slimefun|sf)] research [unlock]");
EventValues.registerEventValue(ResearchUnlockEvent.class, Player.class,
new Getter<Player, ResearchUnlockEvent>() {
@Override
@Nullable
public Player get(ResearchUnlockEvent e) {
Player p = e.getPlayer();
return p;
}
}, 0);
Skript.registerExpression(ExprSlimefunEvtResearch.class, String.class, ExpressionType.SIMPLE, "event-research");
Skript.registerEffect(EffSlimefunUnlockResearch.class,
"[sharpsk] [(slimefun|sf)] unlock research %string% for %player%");
Skript.registerExpression(ExprSlimefunAllResearches.class, String.class, ExpressionType.SIMPLE,
"[sharpsk] [(slimefun|sf)] all [(of|the)] researches");
}
}
Please let me know if this could be done, i'd be the FIRST one to download
Thanks
-Shane