mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-31 01:15:50 -04:00
11 lines
409 B
JavaScript
11 lines
409 B
JavaScript
function executeCommand(galacticManager, player, target, args) {
|
|
var TicketPurchaseIntent = Java.type("intents.travel.TicketPurchaseIntent");
|
|
params = args.split(" ");
|
|
|
|
destinationPlanet = params[2];
|
|
destinationName = params[3].replaceAll("_", " ");
|
|
roundTrip = params[4].equals("1");
|
|
|
|
new TicketPurchaseIntent(player.getCreatureObject(), destinationPlanet, destinationName, roundTrip).broadcast();
|
|
}
|