mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-31 01:15:50 -04:00
17 lines
443 B
Groovy
17 lines
443 B
Groovy
import intents.WatchIntent
|
|
import resources.objects.SWGObject
|
|
import resources.player.Player
|
|
import services.galaxy.GalacticManager
|
|
|
|
static def execute(GalacticManager galacticManager, Player player, SWGObject target, String args) {
|
|
if (target == null) {
|
|
return
|
|
}
|
|
|
|
if (player.getCreatureObject().equals(target)) {
|
|
// You can't watch yourself, silly!
|
|
return
|
|
}
|
|
|
|
new WatchIntent(player.getCreatureObject(), target, false).broadcast()
|
|
} |