mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-31 01:15:50 -04:00
cmdDismissGroupMember - command hook to send the kick event GroupEventIntent - added the GROUP_KICK intent GroupServices - fixed the brace on handleMakeLeader - added handleKick
9 lines
351 B
JavaScript
9 lines
351 B
JavaScript
function executeCommand(galacticManager, player, target, args) {
|
|
var GroupEventIntent = Java.type("intents.GroupEventIntent");
|
|
var GroupEventType = Java.type("intents.GroupEventIntent.GroupEventType");
|
|
|
|
if (target != null && (args == null || args.length == 0)) {
|
|
new GroupEventIntent(GroupEventType.GROUP_KICK, player, target).broadcast();
|
|
}
|
|
}
|