-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
34 lines (26 loc) · 995 Bytes
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-- Autojoin Server for Palworld v0.1 -- (by Hahabynow)
------------------------------------------------
--- SET YOUR SERVER IP ADDRESS AND PORT HERE ---
------------------------------------------------
-- Set to false to disable autojoin --
Enabled = true
-- Your servers port, IP, and password
ServerPort = 44
ServerIP = "123g"
ServerPassword = "e5"
-----------------------------------------------
--------- Don't touch down here ---------------
-----------VVVVVVVVVVVVVVVVVV------------------
-----------------------------------------------
if Enabled then
PUtility = StaticFindObject("/Script/Pal.Default__PalUtility")
NotifyOnNewObject("/Script/Pal.PalUIJoinGameBase", function()
JoinGame = FindFirstOf("PalUIJoinGameBase")
if PUtility ~= nil then
PUtility:SetPassword(JoinGame, ServerPassword)
end
if JoinGame ~= nil then
JoinGame:ConnectServerByAddress(ServerIP, ServerPort)
end
end)
end