diff --git a/control.lua b/control.lua index 861a0057..da7ca0d8 100644 --- a/control.lua +++ b/control.lua @@ -410,8 +410,8 @@ function drawPlayerList() for i, player in pairs(game.connected_players) do playerRank = getRank(player) if playerRank.power <= 3 or playerRank.name == 'Jail' then - if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand..' '}} - else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name..' '}} end + if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand}} + else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name}} end Plist[player.name].style.font_color = playerRank.colour player.tag = playerRank.tag end @@ -419,8 +419,8 @@ function drawPlayerList() for i, player in pairs(game.connected_players) do playerRank = getRank(player) if playerRank.power > 3 and playerRank.name ~= 'Jail' then - if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand..' '}} - else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name..' '}} end + if playerRank.shortHand ~= '' then Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name , ' - '..playerRank.shortHand}} + else Plist.add{type = "label", name=player.name, style="caption_label_style", caption={"", ticktohour(player.online_time), " H - " , player.name}} end Plist[player.name].style.font_color = playerRank.colour player.tag = playerRank.tag end @@ -770,4 +770,4 @@ addTab('Admin+', 'Modifiers', 'Edit in game modifiers', frame.modifierTable.add{name=modifier .. "_current", type="label", caption=tostring(player.force[modifier])} end drawButton(frame.flowNavigation,"btn_Modifier_apply","Apply","Apply the new values to the game") -end) \ No newline at end of file +end)