Fixed tree Decon

This commit is contained in:
Cooldude2606
2018-01-05 23:32:25 +00:00
parent a052af6d1e
commit ca394012d6
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ Event.register(-1,function(event)
local player = Game.get_player(event)
local rank = Ranking.get_rank(player)
if rank:allowed('tree-decon') then self.data.chache[event.player_index] = {'tree-decon',false}
elseif not rank:allowed('decon') then self.data.chache[event.player_index] = {'no-decon',false} end
elseif not rank:allowed('decon') then self.data.chache[event.player_index] = {'no-decon',false}
else self.data.chache[event.player_index] = {'decon',false} end
chache = self.data.chache[event.player_index]
end
if not event.entity.last_user then

View File

@@ -124,7 +124,7 @@ groups['User']:add_rank{
tag='[Regular]',
time=180,
colour={r=24,g=172,b=188},
power=4
power=3
}
local ranks = Ranking._ranks(true)