Need help converting to 2.0
Thanks OUTCASTCode:PLUGIN.Title = "BlockedNames" PLUGIN.Description = "Block unwanted nicknames from your server" PLUGIN.Version = "1.0" PLUGIN.Author = "OUTCAST"function PLUGIN:Init() print("Loaded BlockedNames!") endfunction PLUGIN:OnUserConnect(netuser) local BlockedNames = {"Server Console", "chat name","yours here"} local name = netuser.displayName for _,v in pairs(BlockedNames) do if (v == name) then rust.SendChatToUser(netuser, "You're not allowed to use this nickname!") netuser:Kick( NetError.Facepunch_Kick_RCON, true) return end end end
Solved Restrict names
Discussion in 'Plugin Requests' started by OUTCAST, Apr 27, 2015.
-
Wulf Community Admin
This one should work out of the box: http://oxidemod.org/plugins/restrict-names.648/
-
For Legacy 2.0? I'll have to test later.
-
Wulf Community Admin
-
Okay, I will have to test later. Not at my computer atm.