private void kickPlayerAction(ActionEvent e) {
TextInputDialog dial = new TextInputDialog("No reason indicated");
dial.setTitle("Kick player");
dial.setHeaderText("Do you really want to kick " + player.getName() + " ?");
dial.setContentText("Reason ");
Optional<String> result = dial.showAndWait();
if (result.isPresent()) {
try {
server.kickPlayer(player, result.orElse("No reason indicated"));
} catch (RCONServerException e1) {
server.logError(e1);
}
}
}
PlayerView.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:titanium
作者:
评论列表
文章目录