Skip to content

Commit

Permalink
floor fluid amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Nov 1, 2024
1 parent a8cd7fd commit 213891a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions banlist/banList.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,19 @@ func CheckBanList(name string) {
return
}

/*
for _, ban := range BanList {
if strings.EqualFold(ban.UserName, pname) {
if fact.PlayerLevelGet(ban.UserName, true) < 2 {
fact.PlayerSetBanReason(ban.UserName, "[FCL] "+ban.Reason, true)
}
return
for _, ban := range BanList {
if strings.EqualFold(ban.UserName, pname) {
if fact.PlayerLevelGet(ban.UserName, true) < 2 {
fact.LogGameCMS(true, cfg.Local.Channel.ChatChannel, "Warning: [FCL] ban detected "+pname+": "+ban.Reason)
}
}*/
return
}
}

if fact.PlayerLevelGet(pname, false) == -1 {
glob.PlayerListLock.Lock()
if glob.PlayerList[pname] != nil {
//fact.WriteFact("/ban " + pname + " " + glob.PlayerList[pname].BanReason)
fact.LogGameCMS(true, cfg.Local.Channel.ChatChannel, "Warning: [FCL] ban "+pname+": "+glob.PlayerList[pname].BanReason)
fact.WriteFact("/ban " + pname + " " + glob.PlayerList[pname].BanReason)
}
glob.PlayerListLock.Unlock()
}
Expand Down

0 comments on commit 213891a

Please sign in to comment.