Documentation ¶
Overview ¶
https://github.com/zaigie/palworld-server-tool/tree/main
Index ¶
- Variables
- func BanPlayer(config config.Config, steamID string) error
- func Broadcast(config config.Config, message string) error
- func CheckAndKickPlayers(config config.Config)
- func CreateAndRunPSScript(config config.Config) error
- func DoExit(config config.Config) error
- func GetCurrentOnlinePlayers(db *bbolt.DB) ([]string, error)
- func Info(config config.Config) (map[string]string, error)
- func IsPlayerInWhitelist(player PlayerW, whitelist []*config.PlayerW) bool
- func KickPlayer(config config.Config, steamID string) error
- func ScheduleTask(db *bbolt.DB, config config.Config)
- func ShowPlayers(config config.Config) ([]map[string]string, error)
- func Shutdown(config config.Config, seconds string, message string) error
- func UpdateLastOnlineForPlayer(db *bbolt.DB, steamID string) error
- func UpdatePlayerData(db *bbolt.DB, playersData []map[string]string)
- type ExecuteCloser
- type Executor
- type Player
- type PlayerW
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPasswordEmpty = errors.New("未设置密码,检查config.yaml中的password配置")
)
Functions ¶
func CheckAndKickPlayers ¶
func CreateAndRunPSScript ¶
UpdateServer 使用SteamCMD更新服务端
func GetCurrentOnlinePlayers ¶
GetCurrentOnlinePlayers 返回当前在线玩家的列表
func IsPlayerInWhitelist ¶
Types ¶
type ExecuteCloser ¶
Click to show internal directories.
Click to hide internal directories.