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