Files
Holocore/scripts/commands/generic/groupMakeLeader.js
T
Skyler Lehan 311cb5b693 Leadership changes for NGE-111
groupMakerLeader.js
- serves as the command hook for the make leader command

GroupService.java
- now handles the GROUP_MAKE_LEADER intent
- added handleMakeLeader to take care of switching the leader to another character
- refactored sending invites out to sendInvite, one that allows the passage of the current groupID, and one that sets it to -1 for group creation
- handleGroupLeave also filled in
2016-05-19 12:59:59 -04:00

9 lines
358 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_MAKE_LEADER, player, target).broadcast();
}
}