mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-08-05 06:18:00 -04:00
GroupEventIntent - Added the GROUP_LEAVE event to the GroupEventType enum to flag for the leaveGroup command GameManager - reenabled the GroupService GroupService - added a check for the GROUP_LEAVE event type - created the method handleGroupLeave which will process a player leaving a group and disband if necessary, currently just stubbed
8 lines
370 B
JavaScript
8 lines
370 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_LEAVE, player, target).broadcast();
|
|
}
|
|
} |