Problem when "paying" with PointsAPI Points #265


  • New
  • Defect
Open
  • _ForgeUser24460960 created this issue Apr 15, 2016

    Short description about the bug/ problem:
    When using points form PointsAPI as "payment method" within the BossShop, the points of players are not reduced when PointsAPI is connected to a mySQL database. Even when not connected to mySQL, the shop "limits" purchases by the amount of points that a certain player has, but does not reduce the points at the end of the transaction. That means that if a player has earned 200 points by winning a bewares macht (via Bedwars an Points API) and tries to buy items for 300 points, the transaction is rejected by Bosshop (which is OK). When he buys Items for 150 points, the shop does not reduce the points that the player owns, which means that he keeps his 200 points after the transaction. When PointsAPI is connected to mySQL, then the shop does not reduce the points of the player and has no limiting effect at all. A player with 100 points can buy articles worth 100000 points.

    What steps will reproduce the problem?
    1.Run Bosshop with points as "payment method". -> Points Plugin is "auto_detect", Price Type of items is set to "Points"
    2.Install PointsAPI (v 1.5.1) and Bedwars or any other PointsAPI supported mini game plugin under Bukkit v1.9.2 (or 1.8/ 1.9).
    3.Run PointsAPI with and without connection to a mySQL database (leads to different effects).

    What is the expected output? What do you see instead?
    The shop should reduce the points the player "owns" in his PointsAPI "account" by the amount he used to pay his purchases in the BossShop.

    What version of BossShop are you using?
    2.3.3

    Do you have an error log of what happened? Please paste it at pastie.org!

    Please provide any additional information below.

  • _ForgeUser24460960 added the tags New Defect Apr 15, 2016

To post a comment, please login or register a new account.