Add Lagoon proximity chat plugin with player initialization and utilities
This commit is contained in:
8
scripts/entities/player.js
Normal file
8
scripts/entities/player.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import utils from "utils";
|
||||
export function InitPlayer(p) {
|
||||
if (!p.initialized) {
|
||||
p.initialized = true;
|
||||
p.lagoonCode = utils.generateCode();
|
||||
p.sendMessage(utils.prefix + '§aVotre lagoon code : ' + p.lagoonCode + '\n§r§oMerci de ne pas divulguer ce code, il vous est propre !');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user