mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-08-02 03:16:42 -04:00
12 lines
473 B
Groovy
12 lines
473 B
Groovy
import intents.GroupEventIntent
|
|
import resources.objects.SWGObject
|
|
import resources.objects.creature.CreatureObject
|
|
import resources.player.Player
|
|
import services.galaxy.GalacticManager
|
|
|
|
static def execute(GalacticManager galacticManager, Player player, SWGObject target, String args) {
|
|
if (target != null && (args == null || args.length == 0)) {
|
|
new GroupEventIntent(GroupEventIntent.GroupEventType.GROUP_MAKE_LEADER, player, target as CreatureObject).broadcast()
|
|
}
|
|
}
|