Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[implementation] Admin exploitation warning message #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ function sellTo(thePlayer, commandName, targetPlayerName)
outputChatBox("This interior was purchased via a token and therefore cannot be sold to other players. Use /sellproperty instead.", thePlayer, 255, 0, 0)
return
end

if thePlayer == targetPlayer then
exports.global:sendMessageToAdmins("[INTERIOR]: "..getPlayerName(thePlayer).." has transfered interior #"..dbid.." ("..getElementData(interiorElement,"name")..") to himself.")
end
if interiorStatus.owner == getElementData(thePlayer, "dbid") or exports.integration:isPlayerAdmin(thePlayer) then
if getElementData(targetPlayer, "dbid") ~= interiorStatus.owner then
if exports.global:hasSpaceForItem(targetPlayer, 4, dbid) then
Expand Down Expand Up @@ -1363,4 +1365,4 @@ addEventHandler("onPlayerQuit", root, function()
killTimer(interiorPreviews[source].timer)
interiorPreviews[source] = nil
end
end)
end)