Files
Holocore/scripts/commands/generic/cmdDismissGroupMember.js
T
Skyler Lehan 141b9e651d Implemented group kicking as well
cmdDismissGroupMember
- command hook to send the kick event

GroupEventIntent
- added the GROUP_KICK intent

GroupServices
- fixed the brace on handleMakeLeader
- added handleKick
2016-05-24 14:57:22 -04:00

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();
}
}