mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +00:00
Fix bad ServerType encoding and change server type
This commit is contained in:
parent
aa0b895f4b
commit
43a403174f
2 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,8 @@ object WorldStatus extends Enumeration {
|
||||||
val Up, Down, Locked, Full = Value
|
val Up, Down, Locked, Full = Value
|
||||||
}
|
}
|
||||||
|
|
||||||
object ServerType extends Enumeration {
|
// this enumeration starts from one and is subtracted from before processing (0x005FF12A)
|
||||||
|
object ServerType extends Enumeration(1) {
|
||||||
type Type = Value
|
type Type = Value
|
||||||
val Development, Beta, Released = Value
|
val Development, Beta, Released = Value
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ class LoginSessionActor extends Actor with MDCContextAware {
|
||||||
def updateServerList = {
|
def updateServerList = {
|
||||||
val msg = VNLWorldStatusMessage("Welcome to PlanetSide! ",
|
val msg = VNLWorldStatusMessage("Welcome to PlanetSide! ",
|
||||||
Vector(
|
Vector(
|
||||||
WorldInformation(serverName, WorldStatus.Up, ServerType.Development,
|
WorldInformation(serverName, WorldStatus.Up, ServerType.Released,
|
||||||
Vector(WorldConnectionInfo(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 51000))), EmpireNeed.TR)
|
Vector(WorldConnectionInfo(new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 51000))), EmpireNeed.TR)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue