Discussion in 'Plugin Development' started by JavaNoob, Sep 19, 2020.

  1. Offline


    Hi! So my friend hasn't played minecraft for years, and he wants to play again with me. So I am gonna play with him on my testing server, and I want to make a plugin just to make a couple things weird so he gets confused. Anyways, for recipes, do you have to actually go in and delete them for them to be gone, or can you overwrite them with a custom recipe outputting the same thing?
  2. Offline


    I think you need to listen to prepareItemCraftEvent , check the result and if it's the item you want gone , just cancell the event.
  3. Offline


    Thank you, I will try it!

    Edit: On another note, I was trying to make a command where I can strike my friend with lightning. But I was wondering how to have his name as an argument. Like I want the command to be /l playername, and I want the playername to be any players name. I know how to do the rest, I just have never worked with command arguments before.
    Last edited: Sep 19, 2020
  4. Offline


    1. Bukkit.getOfflinePlayer(String);
    2. Bukkit.getPlayer(String);
    3. Bukkit.getPlayerExact(String);

    Pretty self-explanatory.
  5. Offline


    Thank you
  6. Offline


    When you want to override some ItemRepices or create new one .
    Very Simply


Share This Page