mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-09-28 13:12:59 -04:00
Created a TicketPurchaseIntent which is broadcasted upon purchasing a ticket
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
var execute = function(galManager, 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();
|
||||
};
|
||||
Reference in New Issue
Block a user