Is it possible?

Discussion in 'Plugin Development' started by mason1370, May 29, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    So i have been looking for a simple plugin where i say block ____ can not be crafted
    is it possible with out all these permissions and stuff? I would still like the block to be able to be spawned in. If its possible maybe point me in the right direction?

  2. Offline


    I already made a plugin that can do this. I'll give you the code in about a half an hour when I get home if you want

        public void craftItem(CraftItemEvent event){
            Player player = (Player) event.getWhoClicked();
            if(event.getCurrentItem().getType() == Material.WOOL) {
                Wool wool = (Wool) event.getCurrentItem().getData();
                if (wool.getColor() == DyeColor.BLUE){
    but change it for whatever you want them not to craft obviously.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 26, 2016
Thread Status:
Not open for further replies.

Share This Page