This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1.Make purchase/receive ipn2.wait for db check/announcement3.
What is the expected output? What do you see instead?commands should be triggered after announcement
What version of the product are you using?1.8
Do you have an error log of what happened?no
Please provide any additional information below.I have tried changing values, but it seems like it is never finding the correct package.
<p>Obole config</p>
<p>DB entry</p>
Also, if needed, I did make some edits on ipn.php to satisfy my use case, but the information that makes it to the DB seems to be what the plugin is looking for, so that should not play a role. Otherwise, I can post the ipn.php. The changes were in order to automatically detect my sandbox account and act accordingly (too lazy to constantly change the variable manually.) Also, I found that $custom was not receiving the minecraft username (I send on a input type="hidden" based on what I have on the website as their mc name.) I had to use $option_selection1 to input the minecraft name.
Thinking that perhaps there was something wrong with the minecraft name, I tried using a broadcast command to check if any command was being issued. It never fired either.
Your package name ('1','7','00'...) are not good your package name must be the same as package price.
<<reply 1332935>>
That is in fact the problem. Perhaps you should change the sample config file to make this more apparent, maybe instead of:
'5': #package name
this:
'5': #package name (must be the same as the price)
One other problem, I seem to have in this configuration. My prices as you can see are #.99, however if I make the name 0.99 or .99, it will not work. When I download the config it has had all decimals exploded and creates this format:
* '4': * '99': * price: '4.99' * expires: '7' * commands: * - pex user %player group set VIP * - economy give %player 500.00 * - neverbreak %player true * - msg %player Thanks for becoming a VIP! * onlineCommands: * - 'msg %player VIP Status: True!' * - neverbreak %player true * expirescommands: * - pex user %player group set Member * - neverbreak %player false
can I also suggest that you change the package name to equate to the "item_name" var in the ipn file? This would allow multiple items to be the exact same price.
I can work around the current issue by changing all price to the nearest whole dollar. Is this intended or should the decimal place be escaped by something? http://yaml-online-parser.appspot.com/ shows that '0.99' does indeed parse correctly for YAML.
To post a comment, please login or register a new account.