Skip to content

Commit 277bda0

Browse files
authored
freeroam: Fix method of easily bypassing "Disable warp"
Before this fix, using /gp and copy-pasting coords to /sp in order to warp to players that used F1 "Disable warp", is a much faster and easier way to disturb players than manually locating them in map view. Also, in the latter case you can only spawn close to them, while that method allows you to spawn right on them, making it seem their "Disable warp" had no effect..
1 parent e29f651 commit 277bda0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

[gameplay]/freeroam/fr_client.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,10 +1260,17 @@ function getPosCommand(cmd, playerName)
12601260

12611261
if playerName then
12621262
player = getPlayerFromName(playerName)
1263+
12631264
if not player then
12641265
errMsg('There is no player named "' .. playerName .. '".')
12651266
return
12661267
end
1268+
1269+
if g_PlayerData[player].warping then
1270+
errMsg("You cannot get coordinates of a player that has disabled warping!")
1271+
return
1272+
end
1273+
12671274
playerName = getPlayerName(player) -- make sure case is correct
12681275
sentenceStart = playerName .. ' is '
12691276
else

0 commit comments

Comments
 (0)