[INACTIVE][ECON] BetterShop 1.6.5- iConomy Global Command-based Shop [602 & 677]

Discussion in 'Inactive/Unsupported Plugins' started by jjfs85, Feb 4, 2011.

  1. Offline

    jjfs85

    BetterShop - The "better" global command-based shop that ties into iConomy:
    Version: v1.6.5 (1.6.5.3)
    Download: (static jar) BetterShop.jar
    (older, 602 compatible) BetterShop_1.6.2.8.jar
    (older, 556 compatible) BetterShop_1.6.2.5.jar
    (older versions are not supported, sorry)
    Authors: jascotty2, and jjfs85, with a little help from lologarithm.

    Webpage coming soon.

    Want the most up-to-date info on usage, features, the changelog, and more?
    Read the README!

    Plugin Information (as of v1.6.5.3 - 4/11/11)

    Commands (open)

    • /shop
      • for those used to a plugin having one command, this is another way to get to the following commands
    • /shophelp (shelp) [command]
      • shows you all the commands you can use
      • can show specific help for a command
    • /shoplist (sl,slist) [pagenum]
      • shows a listing of items for sale
      • (if -1, all, or full given, will show full list. (mainly for console use))
    • /shopitems (sitems)
      • show full listing of items in shop, without prices
    • /shopcheck (sc,scheck) <item>
      • lookup a specific item so you don't have to read through pages of prices
    • /shopbuy (buy,sbuy) <item> [amount]
      • buy an item for the price in the shopshop ("all" is accepted as an amount)
    • /shopbuyall (buyall,sbuyall) <item>
      • buy all of an item that you can hold
    • /shopsell (sell,ssell) <item> [amount]
      • sell an item for the price in the shop
    • /shopadd (sadd): <item> <buy> [sell]
      • add an item to or update an item in the price list
    • /shopremove (sremove): <item>
      • remove an item from the price list
    • /shopload (sload):
      • reload prices from pricelist database
    • /shopsellall (sellall): [inv] [item [...]]
      • Sell all of item from your inventory (alias to command /shop sell all)
      • (inv will not search lower 9 slots)
    • /shopbuystack (buystack): <item> [item | amount]
      • buy a stack of an item (usually 64)
    • /shopsellstack (sellstack) <item> [amount]
      • sell a stack of an item (usually 64)
    • /shopbuyagain (buyagain,sba):
      • repeat last buy action
    • /shopsellagain (sellagain,ssa):
      • repeat last sell action
    • /shopkits (skits):
      • show a listing of avalliable kits (will be elaborated later)


    Dependencies (open)

    BetterShop's dependencies:

    Economy plugins supported:


    iConomy
    - or
    BOSeconomy

    Supported Plugins:

    • Permissions v2.5.0+ by people - permissions and groups plugin
    or​
    • GroupManager by not Zenexer after all- a replacement for Permissions that is fully compatible with plugins that require it (using FakePermissions)
    • Help 0.2+
    • MinecraftIM


    Features (open)

    Features:
    configurable
    • Fully configurable colors and message text in config.yml file
    • shoplist can have text alignment (read config for more info): <item> <l(eft-aligned)> <buy and sell info>
      • - uses minecraft font character spacing, so is very close to perfectly aligned in chat
    • shoplist can optionally not show listing tail (or head, but recommended to leave <page> of <pages>)
    • Items can be colored in the new itemsdb.yml file
    • also in itemsdb.yml: kits!
      • - define your own kits that the shop can sell
      • - three examples provided, edit and add to your liking
    • Configurable Options:
      • -max pagesize when printing shoplist
      • -whether to broadcast all transactions publicly
      • -name of the pricelist file/table
      • -customsort: a custom sorting order, so you can have items at the top of the shop list
      • -allowbuyillegal: if someone without BetterShop.admin.illegal can buy illegal items
      • -whether maxstack should be honored
      • -if used tools can be bought back
      • -default color for items
    shop flexibility
    • shopcheck will run a name comparison check, and return all matching items
    • Item sub-type support for dye colors, cloth colors, etc: magentacloth = 35:2 = cloth:magenta
    • "all" is a valid amount when buying or selling: "/sell cobblestone all" or "/sell all cobblestone"
    • damaged tools can be resold for an adjusted value of sellprice*(1-(damage/maxdamage))
    • buystack can be given multiple items, or number of stacks: "/buystack wool 5" or "/buystack wool blackdye reddye"
    • shopsellall can be given multiple items (/sell all cobble gravel flint dirt)
    • plural-insensitive items: if not found, will check if plural & remove "s"
    • not just items can be bought anymore: can now buy LivingEntities, like dogs (wolf)
    • signs can be used for buying & selling
      • Code:
         [*][BetterShop]
         [*]buy [amt], buyall, buystack, sell [amt], sellall, sellstack
         [*]item name (recommended) or id:data, or for sellall: onhand, inv
         [*](unused line)
         [*]
      • to activate, someone with BetterShop.admin.makesign must left-click the sign.. the first line will change color when active
      • left-click for price check (or activate), right-click to buy/sell
      • if a unauthorized player destroys a block a sign is on, is canceled
      • can scan for uxexpected sign destruction (tnt) & replace it
    administration
    • Every item and subtype can be priced differently
    • Disable buying or selling of an item by giving it a price of -1 (0 makes it free)
    • command aliases to stop carpal tunnel
    • many commands have sub-aliases.. eg. shoplist kits will run shoplistkits
    • MySQL pricelist support
    • MySQL pricelist can be cached for a given timespan (decreases table selects)
      • (flatfile is cached until manually updated)
    • Transaction records (MySQL or flatfile as .csv)
    • Downloads mysql-bin.jar dependency automatically
    • buy/sell cap in program set to 999,999,999 (not that you'd be using that much, but the cap is to prevent other errors)
    • if encounters errors while editing a player's account, will attempt to reload iConomy (i've had issuses with it before)
    • can backup the current pricelist: /shop backup
    • on start, can check the download page to see if there is an update available
    • /shop ver[sion] shows version # and if is up-to-date
    • shop can be given a finite stock from which to buy & sell
    • /shop ver[sion] to check the current version & see if there's an update
    • MinecraftIM support: forward errors or all messages
    • checks for missing & unused configuration nodes
    • strings have default values if missing
    • auto error reporting added (can be disabled)
    • help main page integration can be disabled
    • global shop can be disabled & only allow signs to be used


    Installing (open)

    Installation instructions:

    New Installation?
    Upgrading?

    • lots more added to config.yml all the time..
    • to 1.6.3+ ? Itemsdb.yml has been expanded to include entities
    • from before v1.6.1.3 ? Itemsdb.yml has been expanded:
      • not required to update, but recommended
      • if you've already edited yours, you can look here and see what i've added
        • mainly: leaves, charcoal, tools & armor damage, some more aliases
    • from version 1.5.9b - 1.6.1.0 and use MySQL transaction logging?
      • ALTER TABLE BetterShopMarketActivity ADD COLUMN PRICE DECIMAL(11,2);
      • ALTER TABLE BetterShopMarketActivity CHANGE COLUMN SOLD SOLD TINYINT;
        • optional, but useful for php
    • from version between 1.5.5 - 1.5.9 and use MySQL pricelist?
      • ALTER TABLE minecraft.BetterShop CHANGE COLUMN BUY BUY DECIMAL(11,2);
      • ALTER TABLE minecraft.BetterShop CHANGE COLUMN SELL SELL DECIMAL(11,2);
    • from an earlier version?
      • Will import your old pricelist.yml into the db you have setup in the config :)
      • Items.db is no longer used - delete it :)
    Permissions:

    Just add the following nodes to Permissions' world.yml file (or data.yml file for GroupManager):


    - 'BetterShop.user.*'
    ^ Allows the user to use the list, sell, buy, and help commands
    - 'BetterShop.admin.*'
    ^ Allows the user to use the add, remove, and load commands

    Alright, so you have the plugins in place and set up, and permissions nodes added to the Permissions' config.yml. Now just place the BetterShop.jar file in the server's plugins directory. Then just start the server and add things to the shop. That's all!

    Adding Items:
    There are two ways to add things to the shop:
    1. Recommended, but slow: use /shopadd [item] [buy-price] [sell-price]
    2. Faster: use a text editor or spreadsheet program to edit the pricelist.csv


    TODO (open)

    features listed here may already be in the works, or may be on the back burner
    if you want a new feature, or want something sooner, ask :)

    • calculated/derived item prices
    • /shopvalue item[@amount] item to show the current trade value for two items
    • discount system: users or groups can be charged less/more for an item or all items (sell prices also affected)
    • dynamic market pricing, based off of logged market activity
    • region shops (items added while in a region defined as a shop are only added to that shop)
    • add option for amount in stock for surplus decreases how much item is worth to the shop
    • /shop alias <item> - show the itemname, with a list of aliases
    • add pages for /shopitems
    • more descriptive kit listing, similar to shoplist:
      • - pages
      • - show what makes up a kit
      • - enable admin.add to see avaliable kits
    • SQLite support?
    • tie item prices to stock quotes?
    • craftables' stock is tied to source material stock (if using sell craftables)
    • make LivingEntities follow the owner around?
    • change buystock if itemStock is enabled so that if trying to buy multiple stacks (buystack item 20) and stock runs out to stop buying (stop showing "out of stock")
    • individually-customizable restock stock values per-item
    • chest shop interface ?
    • automatically add missing config nodes (preserving comments)
    • add a simple builtin economy system, if none found?
    • add categories to items
      • - can search, buy, & sell with category
    • user-owned shops (signs, linked to chests)
    • 4th line for configurable prices or shop profit owner


    Changelog (open)

    Changelog:
    (the (?) means plugin didn't report that as the version.. sorry :))

    Version 1.6.5.3 - 4/11/11 - jascotty2
    • added option to disable sign protection
    • added sign action wait, to prevent sign click spamming
    • fixed a nullpointer error when selling
    Version 1.6.5.2 - 4/11/11 - jascotty2
    • removed spawnwolf debugging line
    • wolves bought have correct health
    Version 1.6.5.1 - 4/10/11 - jascotty2
    • removed a debugging line
    • wolfs bought have their owner already set (need to increase health)
    Version 1.6.5.0 - 4/10/11 - jascotty2
    • corrected new settings (missed some previously)
    • fixed default sign pricecheck showing wrong one
    • fixed messenger formatting error
    • misc. null fixes
    • BOSEconomy support added
    • changed block protection from scan to save (should improve performance)
    • added tnt protection, in the form of a scanner that routinely checks that all shop signs & their anchors still exist
    • added syntax check for /buy & /sell # [item] (like the sign syntax)
    • allowbuyillegal now defaults to true
    • fixed color set (hidden logic error)
    • signs can have the item name colored according to the defined item color
    Version 1.6.4.2 - 4/9/11 - jascotty2
    • fixed sign destroy permission check to only check bettershop signs
    Version 1.6.4.1 - 4/8/11 - jascotty2
    • "inhand" and "inv" added as valid sellall/buyall items (signs only)
      • - "in hand" buys/sells all of the type of item in the player's hand
    • sign destroy protection algorithm improved (still can't check for explosions :( )
    Version 1.6.4.0 (?) - 4/8/11 - jascotty2
    • stock message error fixed when selling too much
    • fixed <curr> causing a server freeze
    • added amount to pricecheck, so can check the result buy/sell price
    • fixed a buying error when already has some of the item
    • added a sign interface
      • - first line: [BetterShop] (not case-sensitive)
      • - second line: action: buy [amt], buyall, buystack, sell [amt], sellall, sellstack
      • - third line: item (name, id, etc)
      • - fourth line: unused (was going to make price, but decided on pricecheck instead)
      • - to activate, someone with BetterShop.admin.makesign must left-click the sign.. the first line will change color when active
      • - left-click to pricecheck
      • - right-click to run action
    • if a unauthorized player destroys a block a sign is on, is canceled
    • fixed column check for table updating
    • updated for 670
    • configuration nodes are moved to more organised parent nodes (easier to edit if using an intelligent text editor)
      • - older nodes are still supported (for now)
    Version 1.6.3.6 - 4/6/11 - jascotty2
    • again, previously forgot to update the date in last version
    • - added additional checks to prevent future false-positives
    • -- (also checks if comment on download matches plugin, not if plugin >= comment version)
    • figured out the integrity check errors :)
    • now runs checks on changed tables to check if needs updating (and adds columns as necessary)
    • - just transaction log table for now (only table with added columns)
    • another option added: AutoUpdate
      • - if a new update is found, will download & install
      • - can also run manually with /shop updade (OP-only, since forces update & restarts server plugins)
    Version 1.6.3.5 - 4/4/11 - jascotty2
    • fixed a rare null exception in integretycheck?
    • fixed saving errors when transaction logging disabled
    • implemented infinite stock (setting stock to -1 makes infinite)
    • # 1,000+ downloads in one day!
    Version 1.6.3.4 - 4/3/11 - jascotty2
    • fixed a rare invalid function signature error
    • fixed if a player tries to buy/sell air
    • OPs now completely bypass security checks
    • more changes to error reporting format: added a custom message
    • # 10,000+ lines of code :)
    Version 1.6.3.3 - 4/2/11 - jascotty2
    • renamed monstertamer package, to avoid conflicts if you're using the monstertamer plugin
    • should have a reported bug in integrety check taken care of.. not sure of the cause, though
    Version 1.6.3.2 - 4/2/11 - jascotty2
    • fixed more error reporting bugs (still can't find one stupid stock flatfile bug)
    • added stock messages to config
    Version 1.6.3.1 - 4/1/11 - jascotty2
    • fixed chickens & buying more than one animal
    • updated error reporting(again)
    • rand libary update for my (jascotty2's) version of CookieMonster
    Version 1.6.3 - 4/1/11 - jascotty2
    • fixed buy/sell == 0 ? no (in shoplist, 0 incorrectly showed as no)
    • updated for 612 (and 600+ .. had accidently been using the wrong libary)
    • LivingEntities can now be purchased! :D
      • special thanks to fullwall for the MonsterTamer plugin, from which this ability comes from (1.3)
      • if capable, will attack the anything attacking the purchaser (if nearby)
    Version 1.6.2.8 - 3/31/11 - jascotty2

    • nullpointer fixed if running 602 with old groupmanager
    • other misc. null fixes
    • removed redundant reload points for iConomy
    • repaired a mysql totalTransactionLog format error
    • error reporting now begins with a portion of the date, so i can see them listed in order
    • more info added to error reports.. still can't figure out the stock flatfile save bug
    Version 1.6.2.7 - 3/30/11 - jascotty2

    • improved error reporting format & removed a few unnecessary send triggers
    Version 1.6.2.6 - 3/30/11 - jascotty2

    • now checks for missing & unused configuration nodes
    • strings have default values if missing
    • auto error reporting added (can be disabled)
    • now compatible with bukkit 602
    • help main page integration can be disabled
    • hidden changes to get one step closer to dynamic pricing
    Version 1.6.2.5 - 3/28/11 - jascotty2

    • forgot to update the date in the last release, so a false 'newer release' was showing up
    • fixed help support when help loaded before bettershop
    Version 1.6.2.4 - 3/25/11 - jascotty2

    • Added support for my new plugin: MinecraftIM :)
    • removed a stock debugging line i forgot to remove
    • manually set locale for updating date format.. should fix non-us countries?
    Version 1.6.2.3 - 3/23/11 - jascotty2

    • added stock db to reload
    • fixed a stock update on sell
    • updated plugin commands to include sellstack (oops :oops:)
    Version 1.6.2.2 - 3/23/11 - jascotty2

    • more commands added to register with help
    • fixed a MySQL update syntax error for stock
    Version 1.6.2.1 - 3/23/11 - jascotty2

    • fixed a plural search bug
    • added /sellstack (much like buystack)
    • fixed a buyagain logic error
    • /shop import <file> - insert values from file in plugin folder
    • /shop restore <file> - clear shop & load from saved backup file
    • flatfile itemstock repaired
    Version 1.6.2 - 3/23/11 - jascotty2

    • stock option - items can have a finite amount
      • selling to the shop increases the stock, buying decreases
      • can have a minimum update interval: time before will reset stock to initial amounts
      • maximum stock: most will hold
      • noOverStock: will not allow selling if item stock is full
    • note on stock: does not track each item's damage values (if tools)
      • (selling a damaged good allows 1 intact to be bought)
    • /shop restock (permission BetterShop.admin.restock) to update how much stock the shop has
    • permission node BetterShop.admin.backup added for backing up the pricelist
    • added Help plugin integration: will automatically register commands with help
    • added some more MySQL db connection reconnect points (autoReconnect=true not working is becomming irritating)
    • more checking for iConomy account editing failures (i've had more problems with it)
    • fixed a format error if using a replacement char in listing (like <l.>)
    • retructured sellall inventory editing
    • # passed 7500 lines of code! (430KB)
    Version 1.6.1.4 - 3/21/11 - jascotty2

    • (hopefully) fixed MySQL region formatting errors (such as europe where the decimal is a comma)
    • addto/updated help menu
    • added [command] to help: lookup a specific command (also accepts aliases)
    • fixed flatfile total transactions log
    • shop ver[sion] also shows if the plugin is up-to-date
    Version 1.6.1.3 - 3/20/11 - jascotty2

    • default color for items
    • plural-insensitive items: if not found, will check if plural & remove "s"
    • fixed transaction log insert missing the price
    • was having problems reading bit from php, so shanged SOLD column from bit to tinyint
      • alter table BetterShopMarketActivity change column SOLD SOLD TINYINT;
    • finished flatfile support for transaction logging
    Version 1.6.1.2 - 3/20/11 - jascotty2

    • runs MySQL connection check before executing database queries, and manually attempts reload if not connected
      • (still trying to iron out MySQL connection bugs, but this should end those errors)
    • removed list debugging lines i forgot to remove earlier
    Version 1.6.1.1 - 3/19/11 - jascotty2

    • removed double negative add check.. can add an item for -1, -1
    • fixed some Item errors: color and .equals(ItemStack).. fixes itemdb colors and sellall
    • fixed page numbering for when there are hidden items
    • fixed sell for 0: a <= instead of < .. thought i'd fixed that, but apparently not all of those.
    Version 1.6.1 - 3/19/11 - jascotty2

    • update check is optional (in config)
    • /shop backup to save pricelist to a backup csv file
    • updates itemsdb on shopload, in case the admin wanted to update colors/kits and such
    • added price column in marketHistory table
      • upgrading from older version?
      • ALTER TABLE BetterShopMarketActivity ADD COLUMN PRICE DECIMAL(11,2);
    • added flatfile support for transaction logging (uses csv)
    • removed pricelist save file on close (is already saved on edit)
    • if an item is marked as no buy, no sell, don't show on shoplist
    • itemsdb names can be saved (and outputted) with title formatting (eg RedstoneTorch)
    • - included itemsdb also expanded & names formatted
    • case-insensitive item matching
    Version 1.6.1 alpha - 3/18/11 - jascotty2

    • Checks git to see if there is a newer version avaliable
    • fixed price = 0 to be free
    • fixed null in sellall if selling all sellable
    Version 1.6.0f - 3/18/11 - jascotty2

    • better error check for config & importing old yml pricelist
    • MySQL pricelist can be cached for a given timespan (decreases table selects)
    • fixed sell bug (selling one would credit for amount in the first stack)
    Version 1.6.0e - 3/17/11 - jascotty2

    • fixed a removal error - there was a typecast exception previously
    Version 1.6.0d - 3/17/11 - jascotty2

    • if the old PriceList.yml file exists, will import into whatever db is enabled, then rename the file
    • fixed public message bug - would send broadcast (num_players-1) times
    Version 1.6.0c (?) - 3/17/11 - jascotty2

    • added more options: allowbuyillegal, usemaxstack, buybacktools
    • fixed buystack history
    • major buystack logic error repaired - previously didn't work correctly
    • buystack can now be given multiple items, or number of stacks: "/buystack wool 5" or "/buystack wool blackdye reddye"
    • damaged tools can now be resold for an adjusted value of sellprice*(1-(damage/maxdamage))
    Version 1.6.0b (?) - 3/16/11 - jascotty2

    • fixed a minor buy error if tried to buy more than they can hold, and could hold 0 more
    • major MySQL problem fixed - pricelist table wasn't being created
    Version 1.6.0 - 3/16/11 - jascotty2

    • major code restructure & reorganization
    • changed item db to a more descriptive yml file
      • can define what items make an item (for calculated/dynamic costs)
      • can change what color it will be outputted as in the listing
      • define kits (sold.. store won't buy them)
    • MySQL buy & sell fields increased to decimal(11,2), and cap in program set to 999,999,999
    • shoplist can now optionally not show listing tail (or head, but recommended to leave <page> of <pages>)
    • removed value check - can now "sell" items that sell for 0
    • added /shop command alias - for if a user is more used to "/shop help" than "/shophelp"
    • many commands have sub-aliases.. eg. shoplist kits will run shoplistkits
    • now does pre-check for if user can hold as much as they're trying to buy
      • and "all" to try to buy as many as they can hold
    • items can be marked as illegal, and can only be purchased by a select few (using permissions)
      • also not shown to users who cannot buy them, except with pricecheck
    • option in config to make transactions publicly broadcasted
    • option in config to have a custom sort order
    • shopsellall can be given multiple items (/sell all cobble gravel flint dirt)
    • now shows what items were sold when using shopsellall
    • fixed bug where single sell parameter would == sell [item] all
    • all, full, -1 added as a pricelist pagenumber: will print the full list (intended for console use)
    • marketactivity table truncate logic repaired..
    • marketactivity MySQL table changed with primary key(DATE, USER, ID) (instead of DATE, USER) to resolve conflicts with sellall
    • items can be marked as 'legal: false', and only those with permissions can buy them (can still sell)
    • if encounters errors while editing a player's account, will attempt to reload iConomy
    • sellall can be given "inv" as first parameter to only sell from inventory (not in quick access slots)
    • shopcheck given partial name matching: "/shopcheck wool" (not "shopcheck 35") will show all colored wool prices :)
    • fixed sellall bug when an item not for sale
    • /shopbuystack (buystack): buy a stack of an item (usually 64)
    • /shopbuyagain (buyagain,sba): repeat last buy action
    • /shopsellagain (sellagain,ssa): repeat last sell action
    • /shopkits (skits): show a listing of avalliable kits (will be elaborated later)
    • can now buy kits :)
    • /add now has sell as an optional parameter.. will set to -1 if not given (or if is a kit)
    Version 1.5.9b - 3/11/11 - jascotty2

    • width outputting in minecraft chat (for /shoplist): now can have item (or listing) right-align, left-align, or centered
    • implemented transaction log and total transactions record
    • no longer dependent on permissions: if missing, ops have .admin.* & everyone has .user.*
    • bugs: MySQL buy & sell is decimal(6,2), limiting price to 9,999 (plus a nondescriptive error)
      • to fix (db minecraft, table BetterShop):
      • alter table minecraft.BetterShop change column buy buy decimal(11,2);
      • alter table minecraft.BetterShop change column sell sell decimal(11,2);
    • unknown error: MySQL connection seems to get dropped & won't connect until restart plugin
      • seems to stem from iConomy (v4.4 (Arcadia)) or v0.2 [Coelho].. i only have 4.4, but .2 is being logged
      • shopload should fix this, but iconomy will still be down.. if you have a plugin like hotswap, reload iConomy
    • not a bug, but forgot to remove: debug output of select statements being executed
    Version 1.5.8(?) - 3/10/11 - jascotty2

    • fixed a sell error for one parameter
    • major-ish code restructure - removed data redundancy
    • / shopsell all [item] (alias to /shopsell [item] all)
    Version 1.5.7(?) - 3/10/11 - jascotty2

    • / shopsell [item] all added: sell all of an item that you have
    • fixed total sell value min to .01 instead of 1 (if your server uses low prices)
      • before this fix, one could get around this check by trying to sell alot of an item
    • now automatically downloads mysql dependency (zip from mysql mirror & unzip or from iConomy mirror)
    Version 1.5.5(?) - 3/9/11 - jascotty2

    • Pricelist can now be in a MySQL database
    Version 1.5.4 - 3/2/11

    Fixed some lingering bugs with lologarithm's help.


    Version 1.5.3
    Fixed sell 0 < sellprice < 1 bug.


    Version 1.5.2
    Now it'll convert your old pricelist.yml to the new 1.5.x format automagically!


    Version 1.5.1
    Fixed the bug where setting a price to -1 didn't disable it
    Fixed the "LOLWTFDOESN'TWORK" bug.
    Made price-list listing configurable in config.yml. The way it was 'sposta be.

    (older versions not shown..)

     
  2. Offline

    moistjunk

    When I try to use a command ingame, I get this error: "BetterShop is missing a dependency. Check the console."
    How do I fix that and what is console?



    Also my pricelist is completely empty, Should it be like that or should it atleast have an example because i have no idea on how to use it.
     
  3. Offline

    Astro MacGuffin

    To anyone looking for a quick 'n dirty PriceList.yml:

     
  4. Offline

    Shady1337

    Console is the Serveroutput window. Popping up when you start your server.

    If u didnt add something with "/shopadd Item value value" pricelist will be empty.
     
  5. Offline

    moistjunk

    The error I get in console says "[SEVERE] [BetterShop] Missing: Permissions" but I have permissions. Any idea?
    --- merged: Mar 7, 2011 10:22 PM ---
    The error I get in console says "[SEVERE] [BetterShop] Missing: Permissions" but I have permissions. Any idea?
     
  6. Offline

    mixxit

    how can i download 1.4 of this? The current version doesnt function in #440 due to the missing bank class error mentioned above.

    I was on 493 working fine with this but had to roll back to 440 due to a major bug in 493 towny atm where you can destroy anything without permissions
     
  7. Offline

    john286

    2011-03-07_17.40.06.png 2011-03-07_17.40.11.png 2011-03-07_17.40.06.png 2011-03-07_17.40.11.png
    When I try to add an item it doesnt work heres the before and after:
    --- merged: Mar 7, 2011 11:50 PM ---
    I also get this error when I try to add an item
    17:39:44 [INFO] himynamis234 used command shopadd
    17:39:44 [SEVERE] while parsing a block collection
    in "<reader>", line 44, column 13:
    - 'essentials.spawn'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 46, column 16:
    - 'iConomy.payment'
    ^
    17:39:44 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequen
    ceEntry.produce(ParserImpl.java:520)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
    Impl.java:163)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
    rImpl.java:148)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceN
    ode(Composer.java:203)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:158)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(
    Composer.java:122)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
    mposer.java:105)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
    gleData(BaseConstructor.java:124)
    17:39:44 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    17:39:44 [SEVERE] at org.bukkit.util.config.Configuration.load(Configurati
    on.java:73)
    17:39:44 [SEVERE] at com.nijiko.permissions.Control.load(Control.java:149)
    17:39:44 [SEVERE] at com.nijiko.permissions.Control.loadWorld(Control.java
    :112)
    17:39:44 [SEVERE] at com.nijiko.permissions.Control.permission(Control.jav
    a:311)
    17:39:44 [SEVERE] at com.nijiko.permissions.Control.has(Control.java:273)
    17:39:44 [SEVERE] at com.nhksos.jjfs85.BetterShop.BSutils.hasPermission(BS
    utils.java:52)
    17:39:44 [SEVERE] at com.nhksos.jjfs85.BetterShop.BSCommand.add(BSCommand.
    java:44)
    17:39:44 [SEVERE] at com.nhksos.jjfs85.BetterShop.BetterShop.onCommand(Bet
    terShop.java:165)
    17:39:44 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:31)
    17:39:44 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:80)
    17:39:44 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:183)
    17:39:44 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHand
    ler.java:619)
    17:39:44 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:582)
    17:39:44 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:576)
    17:39:44 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    17:39:44 [SEVERE] at net.minecraft.server.NetworkManager.a(SourceFile:230)
    17:39:44 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:75)
    17:39:44 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    17:39:44 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    17:39:44 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    17:39:44 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    17:40:09 [INFO] himynamis234 used command shopadd
    17:40:09 [SEVERE] while parsing a block collection
    in "<reader>", line 44, column 13:
    - 'essentials.spawn'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 46, column 16:
    - 'iConomy.payment'
    ^
    17:40:09 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequen
    ceEntry.produce(ParserImpl.java:520)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
    Impl.java:163)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
    rImpl.java:148)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceN
    ode(Composer.java:203)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:158)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeDocument(
    Composer.java:122)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
    mposer.java:105)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
    gleData(BaseConstructor.java:124)
    17:40:09 [SEVERE] at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    17:40:09 [SEVERE] at org.bukkit.util.config.Configuration.load(Configurati
    on.java:73)
    17:40:09 [SEVERE] at com.nijiko.permissions.Control.load(Control.java:149)
    17:40:09 [SEVERE] at com.nijiko.permissions.Control.loadWorld(Control.java
    :112)
    17:40:09 [SEVERE] at com.nijiko.permissions.Control.permission(Control.jav
    a:311)
    17:40:09 [SEVERE] at com.nijiko.permissions.Control.has(Control.java:273)
    17:40:09 [SEVERE] at com.nhksos.jjfs85.BetterShop.BSutils.hasPermission(BS
    utils.java:52)
    17:40:09 [SEVERE] at com.nhksos.jjfs85.BetterShop.BSCommand.add(BSCommand.
    java:44)
    17:40:09 [SEVERE] at com.nhksos.jjfs85.BetterShop.BetterShop.onCommand(Bet
    terShop.java:165)
    17:40:09 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:31)
    17:40:09 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:80)
    17:40:09 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:183)
    17:40:09 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHand
    ler.java:619)
    17:40:09 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:582)
    17:40:09 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:576)
    17:40:09 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    17:40:09 [SEVERE] at net.minecraft.server.NetworkManager.a(SourceFile:230)
    17:40:09 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:75)
    17:40:09 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    17:40:09 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    17:40:09 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    17:40:09 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    >
     
  8. Offline

    NFFPokemon

    it would be nice with a pre-filled Pricelist. i dont understand why we have to make it ourself? would be better to just modify a complete list.
     
  9. Offline

    jjfs85

    I read that as a problem with communicating with the SQL server used for iConomy.
    --- merged: Mar 8, 2011 2:20 AM ---
    You're right. As soon as I release the next update that I've been teasing you with which was SUPPOSED to be done Saturday and I get word from everyone that it's nice and stable with the latest iConomy, Permissions, and Bukkit, I'll generate a Buy: -1 Sell: -1 pricelist.yml for all items and sub-types.
    Hmmmm... I'll try to reproduce the issue and solve it.
    You sir definitely have a YAML syntax error in your Permission's worldname.yml file. Check line 44 or thereabouts.
    --- merged: Mar 8, 2011 2:22 AM ---
    DOH! I'll try to fix that. Can I have a copy of your pricelist.yml file? It converted mine just fine and I'd like to compare the two.
    --- merged: Mar 8, 2011 2:24 AM ---
    If it says it's missing a dependency, then it's not finding either Permissions or iConomy or both.
    --- merged: Mar 8, 2011 2:24 AM ---
    Thanks. I'll get to the bottom of that :D
    --- merged: Mar 8, 2011 2:26 AM ---
    I hear ya. I shall add it to the TODO.
     
  10. Offline

    john286

  11. Offline

    jjfs85

  12. Offline

    john286

    so I should just copy paste the RAW data one?
     
  13. Offline

    moistjunk

    Ok Well it says "[SEVERE] [BetterShop] Missing: Permissions" But I have the permissions and it works fine for everthing else. Any ideas?
     
  14. Offline

    mixxit

    You sir are a gent
     
  15. Offline

    Shady1337

    so you have the plugin permissions, but did you also add the permission nodes?

    which permission version do you have?
     
  16. Offline

    jjfs85

    Try updating the version of Permissions you have.
     
  17. Offline

    moistjunk

    I'm still getting the same error an i reinstalled permissions and made sure the permission nodes were in.
     
  18. Offline

    Shady1337

    pls post your Craftbukkit Version and your Permissions version.
     
  19. Offline

    moistjunk

    My craft bukkit version is 499 and my Permissions version is 2.1
     
  20. Offline

    jjfs85

    Ahhhhh upgrade to Permissions 2.5.x.
    Edit: Link
     
  21. Offline

    moistjunk

    Can i use the same permissions config or do i have to use a new one?
     
  22. Offline

    jjfs85

    You can use the same one, but rename it to the name of the world (if it isn't already). Typically, it's world.yml or nether.yml.
     
  23. Offline

    moistjunk

    Now its saying I don't have permission but I'm set to admin in the permissions.
     
  24. Offline

    Shady1337

    pastebin of your world.yml would help here (http://pastebin.com/)
     
  25. Offline

    moistjunk

  26. Offline

    john286

    Code:
    17:35:15 [INFO] Loading BetterShop version 1.5.4...
    17:35:15 [INFO] config.yml found!
    17:35:15 [INFO] Loading PriceList.yml
    17:35:15 [SEVERE] while parsing a block mapping
     in "<reader>", line 2, column 3:
          item1sub0:
          ^
    expected <block end>, but found BlockMappingStart
     in "<reader>", line 42, column 4:
           item22sub0:
           ^
    
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappin
    gKey.produce(ParserImpl.java:576)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
    Impl.java:163)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
    rImpl.java:148)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:228)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeDocument(
    Composer.java:122)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
    mposer.java:105)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
    gleData(BaseConstructor.java:124)
    17:35:15 [SEVERE]       at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    17:35:15 [SEVERE]       at org.bukkit.util.config.Configuration.load(Configurati
    on.java:73)
    17:35:15 [SEVERE]       at com.nhksos.jjfs85.BetterShop.BSPriceList.load(BSPrice
    List.java:43)
    17:35:15 [SEVERE]       at com.nhksos.jjfs85.BetterShop.BSCommand.<init>(BSComma
    nd.java:28)
    17:35:15 [SEVERE]       at com.nhksos.jjfs85.BetterShop.BetterShop.onEnable(Bett
    erShop.java:101)
    17:35:15 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:118)
    17:35:15 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:414)
    17:35:15 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:187)
    17:35:15 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:83)
    17:35:15 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:61)
    17:35:15 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:204)
    17:35:15 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:191)
    17:35:15 [SEVERE]       at net.minecraft.server.MinecraftServer.d(MinecraftServe
    r.java:131)
    17:35:15 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:246)
    17:35:15 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    17:35:15 [WARNING] cannot load PriceList.yml
    17:35:15 [INFO] BetterShop now unloaded
    17:35:15 [WARNING] [BetterShop] WARNING: iConomy not yet found...
    17:35:15 [WARNING] [BetterShop] WARNING: Permissions not yet found...
    17:35:15 [WARNING] Plugin 'BetterShop' (ver 1.5.4) is registering events before
    it is enabled. It may be misbehaving and the author needs to fix this.
    17:35:15 [INFO] BetterShop version 1.5.4 is enabled!
    17:35:15 [INFO] Big Catch version 0.4 is enabled!
    how do I fix this error? i have no idea waht i did wrong.. but I did manually add them in the pricelist.yml but the first and second items were added ingame heres my list http://pastebin.com/qJeaH019
     
  27. Offline

    NFFPokemon

    There should also be a way to set the shop to only work in a configured space.. so you can make a town shop.
     
  28. Offline

    zehkaiser

    Whenever I try to sell an item for a very low price (like 0.06) it will say the item is of no value to the merchant. If I attempt to sell 99 (and I only have one) it will give me 0.06 coins for my item.
     
  29. Offline

    jascotty2

    i decided to add a MySQL pricelist database to this myself, as my first plugin mod :)
    sent an email (2 :rolleyes:) with my modifications, so you can add that to this plugin
    .. also fixed the page error not showing the last element, and minor enhancements per my programming style.. hope you like :D

    ... edit: found extra bugs in my code.. so much for an all-night coding session. i'll post to git when i fix them

    .. edit#2.. nevermind, was a bug in itemDb.getName(double): when using your method of 35:1 = 35.01, the second value became .999999 when (d-(int)d)*100
    adding Math.round() fixes that
     
  30. Offline

    but2002

    Can we get a MySQL version of this? I want to integrate the shoplist into our website but it would be extremely difficult, as the website is not on the same host as the server, therefore unable to access the YML flatfile.
     
  31. Offline

    moistjunk

    "BetterShop is missing a dependency. Check the console." I didn't do anything to the world.yml file and im getting this error again.
     

Share This Page