1: | <?php |
2: | /** |
3: | * This file is part of GameQ. |
4: | * |
5: | * GameQ is free software; you can redistribute it and/or modify |
6: | * it under the terms of the GNU Lesser General Public License as published by |
7: | * the Free Software Foundation; either version 3 of the License, or |
8: | * (at your option) any later version. |
9: | * |
10: | * GameQ is distributed in the hope that it will be useful, |
11: | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12: | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13: | * GNU Lesser General Public License for more details. |
14: | * |
15: | * You should have received a copy of the GNU Lesser General Public License |
16: | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17: | */ |
18: | |
19: | namespace GameQ\Protocols; |
20: | |
21: | /** |
22: | * Minecraft Bedrock Edition (BE) Protocol Class |
23: | * |
24: | * @package GameQ\Protocols |
25: | * |
26: | * @author Austin Bischoff <austin@codebeard.com> |
27: | */ |
28: | class Minecraftbe extends Raknet |
29: | { |
30: | /** |
31: | * String name of this protocol class |
32: | * |
33: | * @var string |
34: | */ |
35: | protected $name = 'minecraftbe'; |
36: | |
37: | /** |
38: | * Longer string name of this protocol class |
39: | * |
40: | * @var string |
41: | */ |
42: | protected $name_long = "Minecraft Bedrock Edition"; |
43: | |
44: | /** |
45: | * Normalize settings for this protocol |
46: | * |
47: | * @var array |
48: | */ |
49: | protected $normalize = [ |
50: | // General |
51: | 'general' => [ |
52: | // target => source |
53: | 'dedicated' => 'dedicated', |
54: | 'gametype' => 'edition', |
55: | 'hostname' => 'motd_line_1', |
56: | 'maxplayers' => 'max_players', |
57: | 'mod' => 'gamemode', |
58: | 'numplayers' => 'num_players', |
59: | ], |
60: | ]; |
61: | } |
62: |