mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-10-04 21:12:55 -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();
|
|
}
|
|
} |