I have changed the config and saved it yet it shows the default message for the plugin.
Welcome Message and Notifications [Abandoned]
Discussion in 'Plugin Support' started by Taffy, Oct 16, 2014.
-
-
-
Make sure the config is valid after editing it by running it through www.jsonlint.com or something similar. -
Wulf Community Admin
-
This plugin does not say welcome after player reconnects, how to fix?
-
Wulf Community Admin
-
Code:tmpuser = ( ply.displayName ) self.DisplayedWelcome[tmpuser] = nil
-
Wulf Community Admin
-
-
Hi! Update plugin for new version please.
-
Doesn't works on new version...
-
Hello developers! I see that Taffy not online, but we all need his plugin "Welcome Message and Notifications" on new version.
Maybe anyone can update it or made new one? Thanks.
http://oxidemod.org/resources/welcome-message-and-notifications.652/ -
None of the print to chat functions work, so wait for an oxide fix..
-
It loads fine but it won't show up in the chat haha.
Lets give time to dev -
Wulf Community Admin
-
the welcome msg wont work
[DOUBLEPOST=1422711519][/DOUBLEPOST]Code:PLUGIN.Title = "User Connection Notification" PLUGIN.Version = V(1, 1, 4) PLUGIN.Description = "Welcome message" PLUGIN.Author = "Taffy" PLUGIN.HasConfig = true PLUGIN.ResourceId = 652function PLUGIN:Init() self.DisplayedWelcome = {} self:LoadDefaultConfig() endfunction PLUGIN:LoadDefaultConfig() self.Config.MultipleLineMessage = self.Config.MultipleLineMessage or { "Hi USERNAME! Welcome to the server","Enjoy you time with us." } self.Config.ChatName= self.Config.ChatName or "SERVER" self.Config.AllUserMessage = self.Config.AllUserMessage or "USERNAME has connected" self.Config.AllUserMessageBye = self.Config.AllUserMessageBye or "USERNAME has disconnected" self.Config.ShowConnected = self.Config.ShowConnected or "true" self.Config.ShowDisconnected = self.Config.ShowDisconnected or "true" self.Config.ShowWelcomeMessage = self.Config.ShowWelcomeMessage or "true" endfunction PLUGIN:OnPlayerInit(ply) if (self.Config.ShowConnected == "true") then self.tmpuser = (ply.displayName) allusermsg = (self.Config.AllUserMessage):gsub("USERNAME", self.tmpuser) rust.BroadcastChat(self.Config.ChatName, allusermsg) end endfunction PLUGIN:OnPlayerSpawn(ply) if (self.Config.ShowWelcomeMessage == "true") then DName = ply.displayName if self.DisplayedWelcome[DName] == nil then for k,v in pairs (self.Config.MultipleLineMessage) do usermsg = v usermsg = usermsg:gsub("USERNAME", DName) usermsg = UnityEngine.StringExtensions.QuoteSafe(usermsg) rust.SendChatMessage(ply, self.Config.ChatName, usermsg) end self.DisplayedWelcome[DName] = DName end end endfunction PLUGIN:OnPlayerDisconnected(ply, connection) if (ply.displayName and self.Config.ShowDisconnected == "true") then self.tmpuser = (ply.displayName) allusermsg = (self.Config.AllUserMessageBye):gsub("USERNAME", self.tmpuser) rust.BroadcastChat(self.Config.ChatName, allusermsg) else return end if (self.DisplayedWelcome[self.tmpuser] ~= nil) then self.DisplayedWelcome[self.tmpuser] = nil end end
-
Connection message works but the welcome msg isnt displayed. Still ty. Waiting for Fix
-
-
Still busted.