Permalink
Browse files

Update addEndpoint.js

  • Loading branch information...
dzotic9 committed Mar 15, 2018
1 parent 45626b8 commit b1a76ccb751c6dd680b74fb7077604b87a48fc7d
Showing with 7 additions and 18 deletions.
  1. +7 −18 scripts/addEndpoint.js
@@ -17,22 +17,11 @@ var scripting = hivext.local.exp.wrapRequest(new Scripting({
serverUrl : "http://" + window.location.host.replace("app", "appstore") + "/"
}));
var text = "Your Minecraft server has been successfully deployed. </br> Please use the following server address to connect your Minecraft client: <a href='tcp://" + url + "'>" + url + "</a>.";
resp = scripting.eval({
script : "InstallApp",
targetAppid : '${env.appid}',
session: session,
manifest : {
"jpsType" : "update",
"application" : {
"id": "sendEmail",
"name": "Minecraft Server",
"success": {
"text": text,
"email": text
}
}
return {
result: 0,
onAfterReturn : {
sendEmail : {
url : url
}
}
});
return resp;
}

0 comments on commit b1a76cc

Please sign in to comment.