mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-08-01 02:15:58 -04:00
18 lines
492 B
Groovy
18 lines
492 B
Groovy
import intents.chat.ChatAvatarRequestIntent
|
|
import resources.objects.SWGObject
|
|
import resources.player.Player
|
|
import services.galaxy.GalacticManager
|
|
|
|
static def execute(GalacticManager galacticManager, Player player, SWGObject target, String args) {
|
|
if (args == null) {
|
|
return
|
|
}
|
|
|
|
def name = args.split(" ")[0].toLowerCase(Locale.ENGLISH)
|
|
|
|
if (name == null) {
|
|
return
|
|
}
|
|
|
|
new ChatAvatarRequestIntent(player, name, ChatAvatarRequestIntent.RequestType.IGNORE_REMOVE_TARGET).broadcast()
|
|
} |