Skip to content

Commit

Permalink
Update example.js
Browse files Browse the repository at this point in the history
Add new
  • Loading branch information
Trollhunters501 authored Oct 14, 2023
1 parent 2651db3 commit 29a4d5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ script.getScriptByName("here the name of the script!");
//code...
})();

//import libraries by URL:
//import libraries from java by URL:
LoadLib("https://github.com/MCFT-Server/Mskyblock/raw/master/Mskyblock.jar", "mskyblock.Main");
//first URL parameter where is the bookshop, second: class to import

//import library:
//import library from java:
var test = Packages.mskyblock.Main;

//import libraries by URL
load("https://example.com/exam.js");
//Done!

0 comments on commit 29a4d5c

Please sign in to comment.