Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import org.jsoup.Jsoup;
- import org.jsoup.nodes.Document;
- public class FunctionsGetter {
- String wikiUrl = "https://wiki.multitheftauto.com/wiki/";
- public FunctionsGetter() {
- }
- public String getSyntax(String functionName) throws IOException {
- Document doc = Jsoup.connect(wikiUrl + functionName).validateTLSCertificates(false).get();
- return doc.select(".lang-lua").get(0).text();
- }
- public static void main(String[] args) throws Exception {
- FunctionsGetter getter = new FunctionsGetter();
- System.out.println(getter.getSyntax("PlaySound"));
- // outputs : element playSound ( string soundPath, [ bool looped = false, bool throttled = true ] )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement