Hey this is CoderRex I followed a tutorial to make this far in the plugin The Problem is me trying to add percent chances to it and also make prizes editable in config If you want to help or make a new code pls do so thx in advance ps i can upload code to somewhere else its just too late for me now this is the pastebinn link: http://pastebin.com/EzVe2kW3
Don't use so much bold Put your code inside code tags or to pastebin No one os going tk write code for you. What tutorial do you use? Do you know java?
The tutorial i used is Minecraft - Bukkit Coding: Episode 13 - Crates Part 1 ( BUKKIT CODING ) - YouTube Yes i know java
You obviously don't know Java since you're asking about how to grab data (in this case the price) from a YML configuration file. It's basic.
ive only been coding for a year now and i dont really use config files that much so thats why and this particulaar plugin is hard to make
If you've been coding for a year you should know that there is something called docs, and that you should find your solution there.
@CoderRex The JavaDocs http://docs.codelanx.com/Bukkit/1.8/ Configuration (Move your mouse to reveal the content) Configuration (open) Configuration (close) http://wiki.bukkit.org/Configuration_API_Reference
Dude, I really hope you don't plan to release this "plugin" on bukkit nor spigot. You didn't code any of this your self. The fact you're pretty much taking all of the main code from a video tutorial on youtube, is kinda sad. Do it your self. Don't take credit for other peoples work.
i wasn't planning on releasing it i just needed an alternative to archoncrates because archon crates doesn't work for me so thats all i might recode another one for public use after i create one and beta test on my server
@PresentingTulip @Trimzy @DoggyCode™ If you're going to tell him he's doing something wrong, you should also tell him how to fix it. Bukkit requires you to have a full understanding of Java, which you cannot do by following a tutorial for Bukkit. Please select a resource from the link below, take some time to fully understand Java, and then come back to Bukkit. https://bukkit.org/threads/plugin-dev-sticky-learning-java-where-to-learn.395662/