This repository was archived by the owner on Feb 8, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
src/VectorNetworkProject/TheMix Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2018 VectorNetworkProject. All rights reserved. MIT license.
4
+ *
5
+ * GitHub: https://github.com/VectorNetworkProject/TheMix
6
+ * Website: https://www.vector-network.tk
7
+ */
8
+
9
+ namespace VectorNetworkProject \TheMix \event ;
10
+
11
+
12
+ use pocketmine \event \Listener ;
13
+ use pocketmine \event \player \PlayerLoginEvent ;
14
+ use VectorNetworkProject \TheMix \DataBase ;
15
+ use VectorNetworkProject \TheMix \provider \DataFile ;
16
+
17
+ class ThePlayerLoginEvent implements Listener
18
+ {
19
+ public function event (PlayerLoginEvent $ event )
20
+ {
21
+ $ player = $ event ->getPlayer ();
22
+ DataBase::JsonUserSetting ($ player ->getXuid (), DataFile::PLAYER_LEVEL )->init ();
23
+ }
24
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2018 VectorNetworkProject. All rights reserved. MIT license.
4
+ *
5
+ * GitHub: https://github.com/VectorNetworkProject/TheMix
6
+ * Website: https://www.vector-network.tk
7
+ */
8
+
9
+ namespace VectorNetworkProject \TheMix \provider ;
10
+
11
+
12
+ interface DataFile
13
+ {
14
+ public const PLAYER_LEVEL = 'Level ' ;
15
+ }
You can’t perform that action at this time.
0 commit comments