Inactive [ECON] GiantShop v2.0 (BETA) (Forniphilia) - The great new SimpleShop [1.3.1-R2.0]

Discussion in 'Inactive/Unsupported Plugins' started by Giant, Jul 19, 2011.

  1. Offline

    Giant

    GiantShop
    V2.0
    GiantShop 2.0 continues where SimpleShop left off! It is great, fast and most importantly: easy to use! GiantShop is a global shop, wich uses a commands based system to sell and buy items.

    BukkitDev
    GiantShop is now located at BukkitDev!

    This thread is outdated! Please see BukkitDev for updates!

    old stuff (open)

    Features
    • Global shop
    • Item gifting
    • SuperPerms!
    • DataType MaterialData supported including names! Now you can add all your wool colours to your shop!
    • Add items from the console!
    Dependencies

    *Use only 1 of these permission engines at a time!

    **Any SuperPerms plugin may work, but only PermissionsBukkit has been tested!

    Commands (open)

    • /shop - Show GiantShop help page 1
    • /shop [h|help|?] (page) - Show GiantShop help page X
    • /shop [l|list] (page) - Show GiantShop item list page X
    • /shop [c|check] [id([:type])] - Search a single item
    • /shop [s|sell] [id([:type])] [amount] - Sell items back to the shop
    • /shop [b|buy] [id([:type])] [amount] - Buy items from the shop
    • /shop [g|gift] [receiver] [id([:type])] [amount] - Gift an item to player [receiver]
    • /shop add [id([:type])] [amount] [sellFor] [buyFor] - Add an item to the shop, leave sellFor or buyFor as 0 to only sell/buy item
    • /shop update [id([:type])] [amount] [sellFor] [buyFor] - Update an item in the shop, leave sellFor or buyFor as 0 to only sell/buy item
    • /shop remove [id([:type])] - Remove an item from the shop
    • /shop truncate - Erase all items from the shop
    • /shop save - Save current configuration
    • shop export - export current SQL database to CSV*
    • shop import - import data from CSV*
    *These commands are only accessible from the console!


    Permissions (open)

    • giantshop.* - Gives access to all GiantShop permissions
    • giantshop.shop.* - Gives access to the GiantShop payout*
    • giantshop.admin.* - Gives access to all GiantShop admin commands*
    • giantshop - Gives access to simple GiantShop commands as list and help
    • giantshop.shop.check - Gives access to check command
    • giantshop.shop.buy - Grants user ability to buy from the shop
    • giantshop.shop.sell - Grants user ability to sell back to the shop
    • giantshop.shop.gift - Grants user ability to gift
    • giantshop.admin.send - Enables admin to send GiantShop help to user
    • giantshop.admin.add - Enables admin to add items to GiantShop
    • giantshop.admin.update - Enables admin to update items in GiantShop
    • giantshop.admin.remove - Enables admin to remove items from GiantShop
    • giantshop.admin.truncate - Enables admin to remove all items from GiantShop
    • giantshop.admin.save - Enables admin to save the current GiantShop config
    * When using SuperPerms all groups contain 'giantshop' permission


    Example conf (open)

    Code:
    GiantShop:
        Global:
            name: GiantShop #Shop name
            usePermissions: true #Should we use permissions? if not, everyone has access to shop, OP is admin
            permissions:
                permissionEngine: SuperPerms #Permission engine, can be: 'SuperPerms' for bukkit SuperPerms, 'Permissions' for theYetis Permissions, 'PEX' for PermissionsEX
            perPage: 5 #Amount of items to list per page
            Broadcast:
                buy: true #Show a global message that player X just bought a shiny new item
                gift: true #Show a global message that player X just gifted player Y a shiny new item
                sell: false #Show a global message that player X just sold a rusty old item
            govt:
                useGovt: false #Should we use a global user as govt.?
                govtName: Government #Name of the govt. bank account
            free:
                useFree: false #Should we use worlds where shopping is free?
                freeWorlds: #Worlds that can use free shopping
                - world1
        Database:
            type: SQLite #Database to use
            database: minecraft #Database name
            table: GiantShop #Database table name
            prefix: shop_ #Database table prefix, handy for when you have alot of tables in 1 database
            MySQL:
                host: localhost #MySQL host
                port: 3306 #MysQL port
                user: root #MySQL user
                password: none #MySQL password
    


    Download Jar
    items.yml* **
    source - not available as of yet

    *Please use right click -> save as
    ** Should be automatically created by GiantShop.

    Changelog:
    v1.6.2
    • Added ability to buy/sell/gift/check by name!
    • Fixed some return messages not having any colour
    v1.6.1
    • Fixed torches throwing an error when trying to sell
    Older versions (open)

    v1.6
    • Added support for other economy engines!
    v1.5.7
    • Updated items.yml to 1.8.1 (Thanks Jiggy)
    v1.5.6
    • Totally forgot to add support for doubles in importing
    v1.5.5
    • Added support for doubles in pricing
    v1.5.4
    • Fixed past 1am coding bug
    • Bumped version nummer to 1.5.4 in jar after forgetting to do so earlier :rolleyes:
    v1.5.3

    • Added configuration setting to give ops all permissions by default.
    • Renamed config file from GiantShop.yml to config.yml, GiantShop should automatically rename this file.
    v1.5.2

    • Added support for free worlds!
    • Fixed a kind of a big bug where the shop was charging per individual item instead of for the set amount. (meaning: if you would say did /shop add 1 10 10 1 and then /shop buy 1, so buying just 1, you would actually pay 100! xD).
    v1.5.1

    • Added support for "government"
    v1.5

    • Fixed bug where not all help pages were available
    • Added API for future location plugin
    • Added colors to shop messages!
    • Fixed bug where removing caused an internal server error
    • Possibly more, but forgotten....
    v1.4

    • Added import/export from/to CSV command to console!
    v1.3.1

    • Fixed bug where update would update entire list instead of item requested
    • Added some missing materialData thingies
    v1.3

    • Added Support for both Permissions (TheYeti's) and PermissionsEX(PEX)
    • Admin permissions now default to op
    v1.2.1

    • Fixed an accidental mistake where the sale and buy parameter where read in the wrong way around
    v1.2

    • Fixed an issue where players could sell back to the shop, even when this was set to disabled
    v1.1

    • Fixed issue where removing item triggered 2 messages telling item was removed
    • Fixed issue where items with no MaterialData were only sellable when bought from the store
    v1.0

    • initial release



    To do
    • Add colours to GiantShop messages ingame - Implented
    • Look into location bound system - Done
    • Put screenshots in this post for andrewpo :D
    Plugins:

    GiantShopLocation

    Handy stuff:


    There will be NO support given on the bukkit forums! Please file a ticket or a comment on my bukkitDev page!
     
    meiamone likes this.
  2. Offline

    captainawesome7

    Where are you getting DataType from? I'm assuming you mean Durability/Damage...
     
  3. Offline

    Giant

    Ah sure if it's not the right term, I just named them that way hehe....
    What I mean is the i.e. 35:5 for lime wool in this case it's the 5.

    Is it clear now? And if you have a better name for it, let me know, I will update it.
     
  4. Offline

    captainawesome7

    Durability is the name for it in the actual code, but durability and damage work fine.
     
  5. Offline

    Giant

    org.bukkit.inventory.ItemStack
    shows it as data, wich is here I got the "dataType" from hehe
     
  6. Offline

    captainawesome7

    org.bukkit.inventory.ItemStack
    shows it as durability, which is where I got the "Durability" from hehe
     
  7. Offline

    Giant

    Actually....

    MaterialData org.bukkit.inventory.ItemStack.getData ()

    Gets the MaterialData for this stack of items.
    Returns:
    MaterialData for this item​

    So I guess I shall call it MaterialData then?

    Sort of critical update released!
    Please redownload JAR

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  8. Offline

    Giant

    Minor question:
    Is any one using this? And if so, did anyone find a bug yet?
     
  9. Offline

    EpicATrain

    Howdy! I use simpleshop on my servers and my players LOVE it. However, it's a huge system hog on my server so I may be moving away from it. I read about the Giant shop but... I'm trying to figure out what in the world it really is... you don't explain what your plugin really does OR give a video. So if you could explain in further detail what it does, it would be most appreciated! Thanks.

    Also, please "reply" to this post so I can get an alert to look back at this plugin later.
     
  10. Offline

    Giant

    Well GiantShop is pretty much SimpleShop (the old nijikokun one) with a few tweaks :p
    On the system hog am not sure, for me it never was an issue...

    This shop also enables dynamically updating your shop ingame with the use of the add, update and remove command.
    meaning: you aren't stuck to using a configuration file for the items in the shop, but can actually add/remove items ingame (or from the console).
    • /shop add [itemID([:materialData])] [amount] [sellFor] [buyFor]
    • /shop update [itemID([:materialData])] [new amount] [new sellFor] [new buyFor]
    • /shop remove [itemID([:materialData])]
    This shop also supports material data (like coloured wool).
    to add for example you would use: /shop add 35:5 [amount] [sellFor] [buyFor]
    Where sellFor is the amount the shop sells it for, and buyFor is the amount the shop buys it for.
    1 of these can also be 0(zero) meaning: not for sale/not being bought.

    So, all in all, it's pretty much a global shop, which uses commands to sell/buy/anything.

    Hope this explains it for you?

    Edit:
    Also, on the video: I will look into that later
     
  11. Offline

    EpicATrain

    Oh oh oh! Please excuse me! I'm so retarded. I got REALLY confused. I thought Simpleshop was my PhysicalShop plugin. I have never used the simple shop. Physicalshop was the plugin that is a system hog. That explains why I am so confused.
     
  12. Offline

    Giant

    Haha, no problem there, everyone makes mistakes.

    The kind of plugin I think you are looking for is:
    iConomyChestShop or SignShop or 1 of the few others around
     
  13. Offline

    morizuki

    found a bug.. i try /shop add 262(arrow) 1 1 0

    so it means it's they can ONLY buy the arrow not sale..

    but whenever they type /shop sell 262 1.. they can still sell it even if I set it to 0 and vice versa..

    also in /shop.. there's no /shop buy blah3..
     
  14. Offline

    Giant

    I'll look into that, care to explain the 2nd?

    Edit:
    V1.2 should fix your issue with the items being able to be sold back.

    Also, on the /shop buy command not showing in /shop:
    It is on page 2, use /shop [?|h|help] 2 to see it.
    To have it on page 1, please change:
    Global.perPage to a higher value in plugins/GiantShop/GiantShop.yml
     
    morizuki likes this.
  15. Offline

    morizuki

    uh.. Why can't I do anything? I'm the OP and Admin.. but I don't have Permission to add, buy remove etc..
     
  16. Offline

    Giant

    Do you have a permissions plugin set up? If so, did you grant the giantshop.admin.* permission?
    If you do not have a permissions plugin set up: Please set Global.usePermissions to false in plugins/GiantShop/GiantShop.yml, this will grant all admin rights to the OP, and will also enable everyone to use the shop.

    Note: This plugin uses bukkit superperms.
     
  17. Offline

    morizuki

    yeah.. the Permissions.. not the superperms.. the Yeti one..
     
  18. Offline

    Giant

    Well, currently GiantShop does not support it, so please set usePermissions to false.
     
    morizuki likes this.
  19. Offline

    morizuki

    Code:
    2011-07-26 00:23:13 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin GiantShop v1.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at nl.tpre.bukkit.GiantShop.Misc.Items.validate(Items.java:327)
        at nl.tpre.bukkit.GiantShop.Listener.add(Listener.java:655)
        at nl.tpre.bukkit.GiantShop.GiantShop.onCommand(GiantShop.java:270)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    This is the error.. also I downloaded the GiantShop again to make sure..
     
  20. Offline

    Giant

    Mind telling me what you did to get that error?
    So I can try to replicate.
     
  21. Offline

    morizuki

    oh sorry i forgot..

    just adding some items on shop
     
  22. Offline

    Giant

    mind posting your config file? (plugins/GiantShop/GiantShop.yml)
     
  23. Offline

    morizuki

    Code:
    GiantShop:
        Global:
            name: Otaku Shop #Shop name
            usePermissions: false #Should we use permissions? if not, everyone has access to shop, OP is admin
            perPage: 5 #Amount of items to list per page
            Broadcast:
                buy: false #Show a global message that player X just bought a shiny new item
                gift: false #Show a global message that player X just gifted player Y a shiny new item
                sell: false #Show a global message that player X just sold a rusty old item
        Database:
            type: MySQL #Database to use
            database: giantshop #Database name
            table: GiantShop #Database table name
            prefix: shop_ #Database table prefix, handy for when you have alot of tables in 1 database
            MySQL:
                host: **** #MySQL host
                port: 50502 #MysQL port
                user: **** #MySQL user
                password: **** #MySQL password
     
  24. Offline

    Giant

    I am unable to replicate the issue.
    Mind showing me the exact command you used when trying to add to the shop?
     
  25. Offline

    morizuki

    /shop add 357 1 0 25
     
  26. Offline

    Giant

    is 'items.yml' present in 'plugins/GiantShop'?
     
  27. Offline

    morizuki

    oh.. it's not.. hahaa.. ill try to reproducet the items.yml
     
  28. Offline

    Giant

    Normally GiantShop should create this file by itself :S
    Did you remove it? Or was it never made?

    edit:
    I just found a minor big wich I fixed, accidentally had the buy and sell param the wrong way around haha.
    I will also place a working copy of items.yml for you.

    Please try the items.yml in the original post.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  29. Offline

    morizuki

    oh and the version is still 1.1
     
  30. Offline

    Giant

    That should be 1.2 in the jar now. Download Jar link should be 1.2.1 now....
     

Share This Page