mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-28 23:15:47 -04:00
15 lines
329 B
JavaScript
15 lines
329 B
JavaScript
function executeCommand(galacticManager, player, target, args) {
|
|
var actor = player.getCreatureObject();
|
|
|
|
if(target === null) {
|
|
return;
|
|
}
|
|
|
|
if(actor.equals(target)) {
|
|
// You can't watch yourself, silly!
|
|
return;
|
|
}
|
|
|
|
var WatchIntent = Java.type("intents.WatchIntent");
|
|
new WatchIntent(actor, target, true).broadcast();
|
|
} |