I'm trying to create my own simple join/leave messages plugin, but for some reason I can't make it work. Here is my code so far:
On connect and disconnect through the console I only get "unidentified has joined" or "unidentified has quit" -- not sure how to locate the name through the "player".Code:var notices = { Title : "Notices", Author : "Axy", Version : V(1, 0, 0), HasConfig : false, Init : function () { print("Notices: Plugin Loaded"); }, OnPlayerInit : function(player) { print(player.diplayName + " has joined the server."); }, OnPlayerDisconnected : function(player) { print(player.diplayName + " has quit."); } }
Simple Training - Join/Levave Messages (JS)
Discussion in 'Rust Development' started by Axy, Apr 23, 2015.
-
I know why
u copied the hook from the docs right ?
- },
- OnPlayerInit : function(player) {
- print(player.diplayName + " has joined the server.");
- },
- OnPlayerDisconnected : function(player) {
- print(player.diplayName + " has quit.");
- }
-
OH MY GOD.
-
Yeah remember check everything 3or 5 times
-
Wulf Community Admin
Nice find, corrected it.
