| @@ 105-111 (lines=7) @@ | ||
| 102 | */ |
|
| 103 | public function create($group) |
|
| 104 | { |
|
| 105 | if (is_string($group)) { |
|
| 106 | $group = $this->groupFactory->createForPlayer($group); |
|
| 107 | } else { |
|
| 108 | if (is_array($group)) { |
|
| 109 | $group = $this->groupFactory->createForPlayers($group); |
|
| 110 | } |
|
| 111 | } |
|
| 112 | ||
| 113 | if (!is_null($this->guiHandler->getManialink($group, $this))) { |
|
| 114 | $this->update($group); |
|
| @@ 136-142 (lines=7) @@ | ||
| 133 | */ |
|
| 134 | public function update($group) |
|
| 135 | { |
|
| 136 | if (is_string($group)) { |
|
| 137 | $group = $this->groupFactory->createForPlayer($group); |
|
| 138 | } else { |
|
| 139 | if (is_array($group)) { |
|
| 140 | $group = $this->groupFactory->createForPlayers($group); |
|
| 141 | } |
|
| 142 | } |
|
| 143 | ||
| 144 | $ml = $this->guiHandler->getManialink($group, $this); |
|
| 145 | if ($ml) { |
|