![]() |
|
[Java] Custom Plugin problem - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] Custom Plugin problem (/showthread.php?tid=5332989) |
Custom Plugin problem - st0rmii - Jul 9, 2016 I am currently coding a Shop in Minecraft for my server and I am facing two problems. Since I am too lazy to repeat everything again I will just post the Stackoverflow link to my question here: Click me. What am I doing wrong? * - Ibasol - Jul 9, 2016 Adding debug messages to your code is always a good way to start. In your withdrawPlayer method, print the value of itemMeta to console and see if it matches what you expected. If it doesn't, then I suggest that you post the rest of your Shop class here, or at least the methods prepareBuy and addItemData. * - st0rmii - Jul 9, 2016 (Jul 9, 2016 02:28 PM)Ibasol Wrote: Adding debug messages to your code is always a good way to start. In your withdrawPlayer method, print the value of itemMeta to console and see if it matches what you expected. If it doesn't, then I suggest that you post the rest of your Shop class here, or at least the methods prepareBuy and addItemData. I did more debug messages and it's true, I found the problem. Thanks for helping me! |