Add in more implementation
This commit is contained in:
parent
fc0c1c7e7a
commit
1b2ec0e74d
14 changed files with 62 additions and 35 deletions
|
@ -10,7 +10,6 @@ import 'package:libac_flutter/packets/packets.dart';
|
|||
import 'package:libac_flutter/utils/IOTools.dart';
|
||||
import 'package:libac_flutter/utils/uuid/NbtUUID.dart';
|
||||
import 'package:libac_flutter/utils/uuid/UUID.dart';
|
||||
import 'package:rcon/rcon.dart';
|
||||
import 'package:servermanager/statemachine.dart';
|
||||
import 'package:servermanager/structs/credentials.dart';
|
||||
import 'package:servermanager/structs/mod.dart';
|
||||
|
@ -274,11 +273,7 @@ class Settings {
|
|||
}
|
||||
|
||||
Future<String> sendRconCommand(String command) async {
|
||||
Client cli =
|
||||
await Client.create("127.0.0.1", inst!.serverSettings.RconPort);
|
||||
Message msg = Message.create(cli, PacketType.command, command);
|
||||
|
||||
return cli.send(msg).payload;
|
||||
createSocket("127.0.0.1", port: inst!.serverSettings.RconPort);
|
||||
}
|
||||
|
||||
Future<void> initializeProton() async {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue