Skip to content

API Support #12

@JanReich

Description

@JanReich

We have written our own little minion plugin the minions are responsable for a few task. One of the task is selling from a certain chest. This is the reason we need an API to get the current price of an ItemStack.

NascraftAPI api = NascraftAPI.initialize();
double currentPrice = api.getPrice(Material.OAK_DOOR);

or an method to sell an itemstack and get an Interger not an int as result that when the result is null then the material could not be sold to the marked.

NascraftAPI api = NascraftAPI.initialize();
Integer sellingValue = api.sellItem(itemStack);

We know that the plugin has selling wands but we would like to use our infrastructure that the minions of our players can sell the items with the dynamic prices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions