Removed references to fediauth and fixed strings
This commit is contained in:
10
init.lua
10
init.lua
@@ -58,11 +58,7 @@ bounty.set_nametag_color = function(player_name)
|
|||||||
elseif bounty.data[player_name] > 100 then
|
elseif bounty.data[player_name] > 100 then
|
||||||
player:set_properties({ nametag_color = "#ffff00" })
|
player:set_properties({ nametag_color = "#ffff00" })
|
||||||
else
|
else
|
||||||
if not core.check_player_privs(player_name, { fediauth_authorized = true }) then
|
player:set_properties({ nametag_color = "#00ff00" })
|
||||||
player:set_properties({ nametag_color = "#00ff00" })
|
|
||||||
else
|
|
||||||
player:set_properties({ nametag_color = "#0000ff" })
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -106,12 +102,12 @@ bounty.notify = function(player_name, amount)
|
|||||||
core.chat_send_all(player_name .. " no longer has a bounty")
|
core.chat_send_all(player_name .. " no longer has a bounty")
|
||||||
end
|
end
|
||||||
if type(bounty.prizes) == 'string' then
|
if type(bounty.prizes) == 'string' then
|
||||||
core.chat_send_all(player_name .. "'s bounty is $" .. bounty.get_player_bounty(player_name):split(" ")[1] .. "00")
|
core.chat_send_all(player_name .. "'s bounty is $" .. bounty.get_player_bounty(player_name):split(" ")[2] .. "00")
|
||||||
else
|
else
|
||||||
for key, value in pairs(bounty.prizes) do
|
for key, value in pairs(bounty.prizes) do
|
||||||
if bounty.data[player_name] > key and bounty.data[player_name] - amount < key then
|
if bounty.data[player_name] > key and bounty.data[player_name] - amount < key then
|
||||||
core.chat_send_all(player_name .. "'s bounty has changed to $" ..
|
core.chat_send_all(player_name .. "'s bounty has changed to $" ..
|
||||||
bounty.get_player_bounty(player_name):split(" ")[1] .. "00")
|
bounty.get_player_bounty(player_name):split(" ")[2] .. "00")
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user