Looking for a plugin

Discussion in 'Plugin Requests' started by mercury19, Feb 14, 2015.

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


    So my friends and I want to start a private server with a sort of factions system. However, I'm not sure that the existing factions plugin will do the job, and if not, i would like to know if there is another one that might work.

    The basics of the server is three factions, Nomads, Civilized, and Dwarves. They each have certain restrictions. Civies and Nomads cannot mine Diamond or redstone, but they can trade for them while dwarves can mine anything. There are a few others, but we basically need the ability to restrict mining and possibly crafting powers, depending on the group a player is a part of.

    Any help would be appreciated.

    Thanks, m19
  2. I think its possible to restrict mining but i dont think you can restrict crafting unless you'd be clearing all recipes and re-adding them customly trough bukkit but that would take an inmense amount of work clearing all recipes and initializing them aigan with certain groups.
  3. Offline


    Not necessarily. You could just listen for the inventory in an "InventoryClickEvent" and if the item in the finished crafting slot is a certain item just cancel it so they can't select it.
  4. Yeah i guess so but i think its not practical in any way to restrict crafting. You'll have to mess arround with a lot of things that prohibit minecraft from running native responses to do so.
    It would require messing with NMS code.
  5. Offline


  6. Offline


    @loslobos1234 Voila :
    public void onCraft (PrepareItemCraftEvent event) {
        if (event.getRecipe().getResult().isSimilar(new ItemStack(Material.DIAMOND_PICKAXE))) {
    In 5 lines, and not messing with any NMS.
    Not totally sure that it works (didn't test it), but it should.
    loslobos1234 likes this.
  7. Offline


    @au2001 I don't see any issues with that. You can configure Factions to the max to suit your needs for this. Just take away the ability to create a faction but leave the permission to join one...
    Last edited: Feb 24, 2015
Thread Status:
Not open for further replies.

Share This Page