mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-03 18:13:08 -04:00
Added missing WatchIntent and cmdWatch script
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user