Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Java 

Custom Plugin problem

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?

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.
(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!



Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by BarretNov 11, 2017 09:53 AM 3 374 Nov 11, 2017 09:53 AM
Last Post: StaPol
[C#] by Ki‎d‎'sJan 17, 2016 06:24 AM 46 9,344 Jan 17, 2016 06:24 AM
Last Post: Rawrrasaurus
[C#] by TreeTopSkyOct 20, 2013 12:29 PM 5 563 Oct 20, 2013 12:29 PM
Last Post: Only3