Closed jkandasa closed 7 years ago
Example:
JavaScript
var myImports = new JavaImporter(java.io, java.lang, java.util);
with(myImports) {
var location = mcApi.utils().getServerLocationSettings();
}
{
"myImports": {},
"location": {
"name": "Namakkal",
"latitude": "11.2333",
"longitude": "78.1667",
"sunriseTime": 1481677080000,
"sunsetTime": 1481718360000
}
}
Add support to get sunrise and sunset time on script