mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Archive update v0.55.2
This commit is contained in:
@@ -567,6 +567,16 @@ export class AdminServerActions implements IAdminServerActions, SocketServer {
|
||||
return server.api.getTimings();
|
||||
}
|
||||
@Method({ promise: true })
|
||||
async setTimingEnabled(serverId: string, isEnabled: boolean) {
|
||||
const server = getServer(serverId);
|
||||
server.api.setTimingEnabled(isEnabled);
|
||||
}
|
||||
@Method({ promise: true })
|
||||
async getWorldPerfStats(serverId: string) {
|
||||
const server = getServer(serverId);
|
||||
return server.api.getWorldPerfStats();
|
||||
}
|
||||
@Method({ promise: true })
|
||||
async teleportTo(accountId: string) {
|
||||
const adminAccountId = this.account._id.toString();
|
||||
await forAllGameServers(server => server.api.teleportTo(adminAccountId, accountId));
|
||||
|
||||
Reference in New Issue
Block a user