[ECON] GiantShopLocation v1.2 (Drunken Wasp) - Giant Shop location limiter! [1240]

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

  1. Offline

    Giant

    GiantShop
    V1.2
    GiantShopLocation enables you to limit the locations where GiantShop is useable!

    Features
    • Multi world support
    • Multiple shops per world
    Dependencies
    Commands (open)

    • /shop loc - Show GiantShopLocation help page 1
    • /shop loc [h|help|?] (page) - Show GiantShopLocation help page X
    • /shop loc [l|list] - Show available shops
    • /shop loc [s|set] - Set coordinates
    • /shop loc [res|reset] - Reset coordinates
    • /shop loc create|c (name) - Create the shop from the giving coordinates
    • /shop loc [rem|remove] this - Removes the shop the player is currently standing in
    • /shop loc [rem|remove] [id] - Removes the shop with the given id
    • /shop loc [rem|remove] [name] [world] - Removes the shop with the given name in the given world. Note: removes ALL shops by given name.

    Permissions (open)

    • giantshop.location.* - Gives access to all GiantShopLocation permissions
    • giantshop.location.access - Gives access to GiantShopLocation
    • giantshop.location.list - Enables list command
    • giantshop.location.set - Enables setting of coordinates
    • giantshop.location.reset - Enables resetting of coordinates
    • giantshop.location.create - Allows creating shops
    • giantshop.location.remove - Allows shop removal
    • giantshop.location.override - Overrides location requirement
    * When using SuperPerms override is not included in the group!

    Example conf (open)

    Code:
    GiantShopLocation:
        Global:
            perPag: 5
        Database:
            type: SQLite
            database: minecraft
            table: GiantShop
            prefix: location_
            MySQL:
                host: localhost
                port: 3306
                user: root
                password: none
                prefix: location_
        protect:
            worlds:
                disableOffList: true
                protected:
                - world1
                allowed:
                - world1
            commands:
            - buy
            - b
            - gift
            - g
            - sell
            - s
            - list
            - l
            - check
            - c
    

    Download Jar
    source - not available as of yet

    Changelog:
    v1.2
    • Added sending message to player on entering/exiting shop.
    • Made /shop loc list look cleaner.
    v1.0.1
    • Fixed override permission not working as meant
    v1.0
    • initial release
    Todo:
    • Tell Player he just entered shop X - implented
    • Create setting for previous telling player - implemented
    • Make tutorial on how to use
     
  2. Offline

    GoSox2525

    it seems when i try to download, i'm just getting the original GiantShop plugin again
     
  3. Offline

    Giant

    Oh whoops, I see the issue :rolleyes: I'll fix it for you, standby!

    edit: fixed
     
  4. Offline

    Sh00ck

    Question :
    Did i need to use the SAME DB for giant shop and this or others ? ..

    Sry for bad English
     
  5. Offline

    Giant

    While using MySQL you can set it to use the same database(not required), they however still will use their own tables. When using SQLite however, both GiantShop and GiantShopLocation have their own database, wich is located in their plugin folder.
     
  6. Offline

    Giant

    Anyone find any bugs yet? It's kinda quiet @ tech support........
     
  7. Offline

    morizuki

    well none i guess.. i have a suggestion..

    on a location of a shop, can u add a what u can only bought on that location?

    let say i have a location called Foods, and i want them and see the list that they can buy only foods like porks etc.

    in another location let call it Tools, they can only buy tools like pickaxe, axe etc..
     
  8. Offline

    Giant

    Hmm, it might be possible, but at the same time, this would be a huge bloat....
    I'll consider it, but probably won't do it, because this means that either GiantShopLocation will have to do alot of validating because the shop would be sort of moved to it. Or GiantShop needs an update, because it needs more validation thingies, which I don't really want because this means more risk that it won't work standalone....

    The biggest issue I'm having with this though, is that you would need to add each allowed item to the given area, sure I could make presets, but then still, it would be a bloat in the db....

    So as you can see, it's not that practical, but none the less me being me, I'll look into it.
     
  9. Offline

    morizuki

    sure then.. it's not very important.. just a suggestion XD
     
  10. Offline

    Giant

    I know, just explained why it probably won't be in GiantShopLocation anytime soon hehe
     
    morizuki likes this.
  11. Offline

    morizuki

    errr,, problem.. I tried setting up a location.. and a player tried to go to that location and tried /shop list, bit it says ur not in a shop.. if i tried looking at the /shop loc list, it's right there..
     
  12. Offline

    Giant

    /shop list limits only shop items, if you want this to be allowed edit the example config
    /shop loc list shows the shop location thingies.

    Also, was the player standing in the shop?
     
  13. Offline

    morizuki

    yeah the player is standing in the shop

    and they can access /shop list if i remove giantshoplocation, if i tried enable it and stand on the shop, i can't access it too
     
  14. Offline

    Giant

    hmm, that is weird. When removing the - list and - l entries from the config, it should be allowed.
    Do other commands fail aswell? Or is it just list?
     
  15. Offline

    morizuki

    err it's like u can't do any buying or selling, it's not like ur not in the shop, but ur standing in the shop..
     
  16. Offline

    Giant

    Hmm, mind trying to create another location doing the following:
    look @ the floor and set point 1 (/shop loc set)
    now, go 4 blocks in a diagonal direction
    build a tower of anything but water, lava or air of 4 blocks high.
    Look @ the the top block, and set point 2 (/shop loc set)
    now do /shop create [name] to create the shop.

    Stand in the shop, and try a protected command. Does it work then?
    If not: care to send me a screeny of the shop list. And one of the debug overlay? (F3 key)
    Ps. If you do not want to post it here out of privacy concerns, you are free to pm it to me! :)
     
  17. Offline

    morizuki

    ok imma do it that..
     
  18. Offline

    MonsieurApple

    Approved!
     
  19. Offline

    Giant

    Haha, that took a while :D
     
  20. Offline

    Giant

    So any results on this?
     
  21. Offline

    mrvertigo27

    Is there any chance of integration into World Guard regions, Towney, or Residences? this would lessen server admins command bloat, and hopefully simplify your life as you would have an existing library to work with. Just an idea
     
  22. Offline

    morizuki

    oh it seems it's working.. imma report again when it's not working..
     
  23. Offline

    Giant

    Alright :)
    Case closed for now! :D
     
  24. Offline

    morizuki

    oh.. I give them the permissions

    - giantshop
    - giantshop.shop.buy
    - giantshop.shop.sell
    - giantshop.location.access
    - giantshop.location.list

    but they can't still use the list, buy and sell in the shop..
     
  25. Offline

    Giant

    Any error?
     
  26. Offline

    morizuki

    nope.. there's no error..
     
  27. Offline

    Giant

    I will look into it later....
     
  28. Offline

    Michael_Lee

    It seems as if the giantshop.location.override permission fixes this. I want users to only be able to buy/sell in a store building. I made the shop and the shop location, but only I was able to buy/sell from it. Members could not. I looked at the permissions and figured that if I gave the members access to the giantshop.location.override permission, they would be able to use the shop. And bingo! The members can now buy/sell from the shop. And the good news is that it won't allow any of us to use the shop outside of the shop location. But judging from the description of the node, I'm guessing that it is not functioning as it was originally intended to be.
     
  29. Offline

    Giant

    That indeed sounds like I sort of have it the wrong way around O__o, thanks for searching that out for me! :)
    I shall look into right away!

    edit:
    yep, seems I used an OR instead of AND... :rolleyes:

    edit2:
    please confirm that it is now working properly using build 1.0.1
     
  30. Offline

    Michael_Lee

    No problem :cool:! It is now working properly. Members have access to shop only within the shop region. Players with the override node can use the shop anywhere. Awesome.
     

Share This Page