1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-03 23:08:06 +08:00
parent 55fbcd6fc3
commit 4b83346f36
4 changed files with 22 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ func (s *Server) QuitSelf(a int) error {
s.quit = true
if a != 0 {
player.Mainplayer.Range(func(key uint32, value *player.Player) bool {
value.Kick(1)
value.KickMessage()
return false
})
} else {
@@ -60,7 +60,7 @@ func (s *Server) QuitSelf(a int) error {
<-time.After(10 * time.Minute)
player.Mainplayer.Range(func(key uint32, value *player.Player) bool {
value.Kick(1)
value.Kick()
return false
})
}()