mirror of
https://github.com/NamelessMC/Nameless
synced 2026-08-18 06:29:04 -04:00
Co-authored-by: Partydragen <admin@partydragen.com> Co-authored-by: Robin Slot <robin+github@rkslot.nl>
24 lines
574 B
PHP
24 lines
574 B
PHP
<?php
|
|
|
|
class GroupClonedEvent extends AbstractEvent {
|
|
|
|
public Group $group;
|
|
public Group $cloned_group;
|
|
|
|
public function __construct(int $group_id, int $cloned_group_id) {
|
|
$this->group = Group::find($group_id);
|
|
$this->cloned_group = Group::find($cloned_group_id);
|
|
}
|
|
|
|
public static function name(): string {
|
|
return 'cloneGroup';
|
|
}
|
|
|
|
public static function description(): string {
|
|
return (new Language())->get('admin', 'clone_group');
|
|
}
|
|
|
|
public static function internal(): bool {
|
|
return true;
|
|
}
|
|
}
|