package com.nisovin.magicspells.spells.instant; import org.bukkit.entity.Player; import com.nisovin.magicspells.spells.InstantSpell; import com.nisovin.magicspells.util.MagicConfig; public class CraftSpell extends InstantSpell { public CraftSpell(MagicConfig config, String spellName) { super(config, spellName); } @Override public PostCastAction castSpell(Player player, SpellCastState state, float power, String[] args) { if (state == SpellCastState.NORMAL) { player.openWorkbench(null, true); } return PostCastAction.HANDLE_NORMALLY; } }