mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-07-14 23:07:39 -04:00
18 lines
330 B
JavaScript
18 lines
330 B
JavaScript
function executeCommand(galacticManager, player, target, args) {
|
|
var ghost = player.getPlayerObject();
|
|
var waypoint;
|
|
|
|
if(ghost == null || target == null) {
|
|
return;
|
|
}
|
|
|
|
waypoint = ghost.getWaypoint(target.getObjectId());
|
|
|
|
if(waypoint == null) {
|
|
return;
|
|
}
|
|
|
|
waypoint.setName(args);
|
|
|
|
ghost.updateWaypoint(waypoint);
|
|
} |