You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens whenever a player is added, am I doing something wrong?
Stacktrace:
17:33:20.573 Client is not a valid member of Player "Players.GustavoSchip" - Server
17:33:20.573 Stack Begin - Studio
17:33:20.573 Script '0.7822732031391935.Config.Plugins.Server-HideChatCommands', Line 56 - Studio
17:33:20.573 Script 'required_asset_7510592873.MainModule.Server.Shared.GoodSignal', Line 61 - function acquireRunnerThreadAndCallEventHandler - Studio
17:33:20.573 Script 'required_asset_7510592873.MainModule.Server.Shared.GoodSignal', Line 76 - function runEventHandlerInFreeThread - Studio
17:33:20.573 Stack End - Studio
Code used:
--[[ Author: ccuser44, Sceleratis, Epix Incorporated, and the Adonis Community. Name: Hide chat commands Description: This hides the chat commands for all players. Place in a ModuleScript under Adonis_Loader > Config > Plugins and named "Server-HideChatCommands" License: MIT--]]--[[ MIT License Copyright (c) 2016-2024 Sceleratis (https://github.com/Sceleratis), Epix Incorporated, and the Adonis Community. Copyright (c) 2024 ccuser44/ALE111_boiPNG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.--]]returnfunction(Vargs)
localserver, service=Vargs.Server, Vargs.ServicelocalAdmin, Remote, Core, Settings, Variables=server.Admin, server.Remote, server.Core, server.Settings, server.VariablesAdmin.DoHideChatCmd=function(p:Player, message:string, data: {[string]: any}?)
localhideCommands= (dataorCore.GetPlayer(p)).Client.HideChatCommandsifhideCommands==nilorhideCommands==truethenifVariables.BlankPrefixand
(string.sub(message, 1, 1) ~=Settings.Prefixorstring.sub(message, 1, 1) ~=Settings.PlayerPrefix) thenlocalisCMD=Admin.GetCommand(message)
ifisCMDthenreturntrueelsereturnfalseendelseif (string.sub(message, 1, 1) ==Settings.Prefixorstring.sub(message, 1, 1) ==Settings.PlayerPrefix)
andstring.sub(message, 2, 2) ~=string.sub(message, 1, 1) thenreturntrueendendendservice.HookEvent("CharacterAdded", function(player:Player)
--// Doesn't save unless sent to server by playerifplayer.Client.HideChatCommands==nilthenRemote.Send(player, "SetVariables", { HideChatCommands=true })
endend)
end
The text was updated successfully, but these errors were encountered:
This happens whenever a player is added, am I doing something wrong?
Stacktrace:
Code used:
The text was updated successfully, but these errors were encountered: