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

    Giant

    It should have a fail safe on the "items.db" file :p But I will add them none the less ;)
     
  3. Offline

    meiamone

    Sorry, Giant. I got the same error you did on the 2007 version, but I fixed it. I'd like to help you get it working, especially if anyone else is having the same problem too. :(
     
  4. Offline

    SAMDAN

    That may be the name in the code, but metadata is the technical term
     
  5. Offline

    captainawesome7

    metadata is a technical term that applies to many things, not just the durability of an ItemStack. Durability is very specific, metadata is not, therefor if you were to refer to the durability of an object it would make alot more sense to say durability than metadata.
     
  6. Offline

    SAMDAN

    But the technical term is still metadata, nonetheless. It is broader, you are right.
     
  7. Offline

    Lama_0

    Does GiantShop support bPermissions? This is what I have for my permissions plugin.
     
  8. Offline

    Giant

    If bPermissions uses Bukkit SuperPerms, then it should be supported! :)
     
  9. Offline

    Lama_0

    *Downloads GiantShop*
     
  10. Offline

    Giant

    Cool! If it does fail, or you get an error or something like that, let me know! I DO take errors and such VERY seriously! :)
     
  11. Offline

    Lama_0

    This should suffice to halt any curiosity, although a little worried at 'Can't find help...'
    [​IMG]
     
  12. Offline

    Giant

    Haha, Don't worry about that :D I sort of made that message like that as a joke...
    It's pretty much searching for a "Help" plugin, like "MyHelp" that's all. This is not needed though, and shouldn't affect any usage stuff.
     
  13. Offline

    Lama_0

    You should update your post so it says its compatible with 'bPermissions' :)
    Any plans to make more plugins?
     
  14. Offline

    Giant

    No need, it already says that :)
    "**Any SuperPerms plugin may work, but only PermissionsBukkit has been tested!" see?

    And yes I do! :)
    You might want to check out GiantShopLocation, and maybe GiantPM! But GiantPM might still be awaiting submission approval....
     
  15. Offline

    Lama_0

    I will look into it :)
     
  16. Offline

    Eckhart

    Giant,

    I've been attempting to use this shop lately and am getting the same error as in Post 217 upon attempting to purchase any items from the shop.

    Build 1185 on Minecraft 1.8.1
    Current plugins:
    PermissionsEX
    iConomy 6.0.5b + Register
    Spout
    McMMO

    Here's the full text of the error from server start with clean install of GiantShop. I boot it, import values from a .csv, list the first page of the contents which works fine. Then it kicks back the long error(s) upon a player attempting a purchase. I notice you have mentioned that the shop's dependant upon iConomy 5.x, however, the player above seems to be using 6.x (Celty) without issues.

    Any help would be appreciated.
     
  17. Offline

    Fogazi


    I have iconomy installed. latest build. I have even reinstalled clean on a new server and still the same error when I go to buy or sell something. I can add items.

    I have even tried with only iConomy and Giantshop plugins installed, still no go.

    Current server mods are essentials, permissionsEX iconomy, giantshop and stargate.
     
  18. Offline

    Giant

    Aah,
    I see iConomy now has a v6.x, GiantShop still uses 5.x!

    iConomy 6.x is currently not officially supported...
    I will look into that! :) Maybe finally add support for BOSEconomy aswell....

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

    Jiggy

    @Giant
    Got 1 question tough, as i look in the sqlite database, i see all fields are integer.
    But why ?
    Because as u see in the csv file:


    351,01 1 1,75 1,23 1 1
    351,02 2 1,75 1,23 1 1
    351,03 3 1,75 1,23 1 1
    351,04 4 1,75 1,23 1 1

    how u wanna put a decimal into a integer ?
    Also if i got prices like this:

    12 -1 0,95 0,67 1 1
    13 -1 0,95 0,67 1 1

    They appear as 0 in the database =/

    [offtopic]Voor de rest is het een goede plugin, snap alleen dit niet :S [/offtopic]
     
  20. Offline

    Giant

    Because it works! :D
     
  21. Offline

    Eckhart

    You might want to look into Register. I'm no plugin expert, to be sure, but it appears to be a generic API which you can hook into which then hooks into all major economy plugins on its own. This way you could support all major plugins with minimal effort, as well as the new iConomy release.
     
  22. Offline

    Giant

    As what do they apear in game?

    I am, so far: no luck :( NULLPointerExceptions made me throw it into a corner for a bit!

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

    Jiggy

    couldnt try that yet as my server is atm down =/
    Will try when server is up, though i only checked that out ;)
    For the rest i havent got any problems as far as i know :)
     
  24. Offline

    Eckhart

    Hopefully not too long of a bit!
     
  25. Offline

    Giant

    Sorry, might take a while, I have a couple other projects that take priority :( I do try to code my plugins when I have time though!
     
  26. Offline

    Jiggy

    How must the csv format be?
    No matter how i do it, ite wont work.
    if i use the xls that helps you, it exports it into cells, not as a csv should be.
    But when i make it like a csv it wont work to
     
  27. Offline

    Giant

    Jiggy, do a /shop export.... That should show you the csv!
     
  28. Offline

    Jiggy

    aaah, thanks for the idea ! :)
    *feels realy stupid -.-' *

    I tried it, but it wont export or import.
    Using it in the console,
    no response, any suggestion ?
     
  29. Offline

    Giant

    explain

    I hereby present you GiantShop v1.6(Sticky Goo)
     
  30. Offline

    Jiggy

    @Giant
    as soon as i typed shop export.
    It was just that line int he console, no report or error i received.
    I removed everything from the folder, and let it run again.
    Now it works :)
    Thanks for the help so far !

    Ok its kinda bugged for me, dunno why
    Screenshot added

    CSV:


    1,-1,1,0.7,1
    2,-1,1.1,0.77,1
    3,-1,1,0.7,1
    4,-1,0.9,0.63,1
    5,-1,0.25,0.18,1
    6,-1,1.2,0.84,1
    12,-1,0.95,0.67,1
    13,-1,0.95,0.67,1

    in the database:
    id itemID dataType sellFor buyFor amount active
    1 1 -1 1 1 1 1
    2 2 -1 1 1 1 1
    3 3 -1 1 1 1 1
    4 4 -1 1 1 1 1
    5 5 -1 0 0 1 1
    6 6 -1 1 1 1 1
    7 12 -1 1 1 1 1
    8 13 -1 1 1 1 1

    why isnt it keeping it at 0.67 =/
    If i use the , instead of the . it is screwing the database up :(
     

    Attached Files:

  31. Offline

    Eckhart

    Works for me! Thanks for the update.
     

Share This Page