GlobalShop

A simple global shop which is used through commands.

To use GlobalShop you must install one of the following Economy plugins:

  • iConomy 4,5 or 6
  • BosEconomy 6 or 7
  • Essentials Economy 2.2.17+
  • MultiCurrency

The first found Economy plugin is used. Economy functions are used through Nijikokun's Register API which is implemented in GlobalShop.

Globalshop v0.8 now supports (and requires) Vault

Features

  • Shop that can be accessed from everywhere.
  • Add customizable item names.
  • Damage/Color can be defined in config. So you can sell for example black_wool.
  • Considers the durability of an item to calculate the selling price.
  • Set the sellratio. This defines how much money you get for selling an item. Default is 80%.
  • All commands can be renamed to your wish by re-configuring the aliases in plugin.yml HowTo.

Permissions

There are ParentPermissions for SuperPerms: globalshop.trade.* and globalshop.admin.*

  • 'globalshop.trade.buy' -> Allow /buy and /price
  • 'globalshop.trade.sell' -> Allow /sell and /checksell
  • 'globalshop.admin.reload' -> Allow /shop reload

Commands

  • /price (name|id) -> Show the price you must pay to buy name|id
  • /buy (name|id) [amount] -> Buy name|id (with optional amount)
  • /checksell -> Shows the money you would get for the item you are holding
  • /sell -> Sells the item you are holding
  • /sell <quantity> -> (v0.8) Sell a given quantity of the item held (only applies to stack in hand)
  • /sell all -> (v0.8) Sell all items of the same type throughout inventory
  • /shop reload -> Reloads the config of GlobalShop

Configuration

At moment you must setup all prices in the config file. This is explained here: Configuration

Planned Features

  • Setting up prices with commands
  • Writeout of a HTML-File where all prices can be viewed

Changelog

0.91

0.9 (Zarius)

  • Fix: non-stackable items no longer stack when buying multiple
  • Added: now checks for available inventory space (so you don't waste money if your purchase doesn't fit).

0.8 (Zarius)

  • Support for Vault
  • Added /sell <quantity> (from current held stack only)
  • Added /sell all (sells all of the same item from your inventory)

0.7b2 (modifications by Zarius)

  • fix for new Bukkit Version
  • code cleanup
  • start of coding for buy/sell with exp (doesn't work yet)

GlobalShop uses Metrics for anonymous usage stats (learn more). From v0.91 only.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Brisk568 Brisk568 Aug 15, 2014 at 02:31 UTC - 0 likes

    Hello. How can i add gapples (322:2) and ceggs in the shop.

    When i try to add them it doesnt work because of the extra :

    Thanks.**

  • Avatar of scooby42683 scooby42683 Aug 11, 2014 at 14:53 UTC - 0 likes

    Can you add a sell every item in your inventory command? Something like /sellinv or /sell inv?

  • Avatar of kmancoke1298 kmancoke1298 Aug 10, 2014 at 01:00 UTC - 0 likes

    How do you make it like /buy strp2 which will buy a speed pot or strength idk

  • Avatar of Evaluations Evaluations Jul 08, 2014 at 20:15 UTC - 0 likes

    Is it possible to purchase 2 items with one /buy command?

    Example: "/buy pots" would give you a strength 2 and a swiftness 2. Is this possible to do? I've been messing around with the config but haven't found a solution.

  • Avatar of Aventium Aventium Jun 28, 2014 at 00:11 UTC - 0 likes

    @Cmoor: Go

    Seeing as it is not added as a feature right now, and the author has stopped working on it, I do not think it will ever be possible.

  • Avatar of Cmoor Cmoor May 29, 2014 at 23:36 UTC - 0 likes

    can you use this plugin to work per world? i have skyblock and survival but dont want the prices to be the same. is this possible with this plugin?

  • Avatar of Absentee23 Absentee23 May 01, 2014 at 00:27 UTC - 0 likes

    @Josh15390: Go

    Here's an example of a healing potion:

    - ItemID:ItemName:Amount:Price(:Damage/Color)

    - 373:Healing Potion:1:X.00:8197

    The last number, 8197 is the potion ID which I found a list of here: http://www.minecraftforum.net/topic/826689-minecraft-item-id-list-with-potion-id/

    The "X.00" is the price

    Last edited May 01, 2014 by Absentee23
  • Avatar of Josh15390 Josh15390 Apr 27, 2014 at 04:10 UTC - 0 likes

    Can someone please tell me how I put in potions? They're not working

  • Avatar of Absentee23 Absentee23 Apr 16, 2014 at 08:24 UTC - 0 likes

    Commenting to let anyone who's interested that this plugin works fine! I've finally found a working global /sell that isn't essentials or have some kind of dynamic pricing. I initially skipped this because from the bukkitdev comments it doesn't look as if it's functioning well, and hasn't received updates in a year+. However someone recommended it to me, so I gave it a test and and it works great, just a little complicated and very tedious to configure initially. The downfall being the configurability of messages (a locale.yml file would be nice, but it's gone a year without updates), and the verbosity of errors being a little lacking...

    @UprisingHC: Go

    Works fine on 1.7.2 and 1.7.8 (what I've tried it on)

    I've found the symptoms you said to be the result of a wrongly formatted config file. Remember, color/damage/potion id's go at the END of each item. Read the example in the config and compare the wools to the stone, for example. (I missed moving a couple of these), which is a little confusing. The only error I saw was one:

    [04:58:42] [Server thread/INFO]: [GlobalShop:0.91] Error reading ShopItems.Wrong size of arguments in ShopItems: 1
    

    Which is what indicated the config was formatted wrong, but unfortunately didn't include a line number... >_>

    Last edited Apr 16, 2014 by Absentee23
  • Avatar of UprisingHC UprisingHC Feb 01, 2014 at 09:04 UTC - 0 likes

    This doesn't work. Whenever I do /buy it doesn't bring up anything. Not one thing. Not "this is not a command", not "you do not have permission", its nothing. Help

Facts

Date created
Oct 21, 2011
Category
Last update
May 28, 2013
Development stage
Release
Language
  • enUS
License
Public Domain
Curse link
GlobalShop
Downloads
25,878
Recent files

Authors