Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
Fixed grammar
  • Loading branch information
zientix committed Jul 24, 2020
1 parent c5ed32b commit 97a06d5
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 23 deletions.
6 changes: 3 additions & 3 deletions AdminTools/build/classes/rconclient/gui/LoginWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<children>
<AnchorPane fx:id="loginPane" maxHeight="-Infinity" maxWidth="-Infinity" opacity="0.9" prefHeight="290.0" prefWidth="441.0" styleClass="loginCenter" StackPane.alignment="CENTER">
<children>
<Label layoutX="15.0" layoutY="87.0" styleClass="text" text="IP : " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="87.0" />
<Label layoutX="15.0" layoutY="87.0" styleClass="text" text="IP: " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="87.0" />
<TextField fx:id="ip" layoutX="87.0" layoutY="83.0" prefHeight="29.0" prefWidth="245.0" styleClass="rconTextField" AnchorPane.leftAnchor="87.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="83.0" />
<Label layoutX="15.0" layoutY="137.0" styleClass="text" text="Port : " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="137.0" />
<Label layoutX="15.0" layoutY="137.0" styleClass="text" text="Port: " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="137.0" />
<TextField fx:id="port" layoutX="87.0" layoutY="133.0" prefHeight="29.0" prefWidth="245.0" styleClass="rconTextField" AnchorPane.leftAnchor="87.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="133.0" />
<Label layoutX="15.0" layoutY="187.0" styleClass="text" text="Password : " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="187.0" />
<Label layoutX="15.0" layoutY="187.0" styleClass="text" text="Password: " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="187.0" />
<PasswordField fx:id="password" layoutX="87.0" layoutY="183.0" prefHeight="29.0" prefWidth="245.0" styleClass="rconTextField" AnchorPane.leftAnchor="87.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="183.0" />
<Label fx:id="loginButton" layoutX="299.0" layoutY="488.0" onMouseClicked="#login" styleClass="labelButton" text="Log in" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0" />
<Text layoutX="104.0" layoutY="56.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Admin Tools">
Expand Down
4 changes: 2 additions & 2 deletions AdminTools/build/classes/rconclient/gui/StatusWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<children>
<Text layoutY="14.0" strokeType="OUTSIDE" strokeWidth="0.0" styleClass="borderPaneText" text="Server status" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" />
<ImageView fx:id="sFavicon" fitHeight="64.0" fitWidth="64.0" layoutX="14.0" layoutY="18.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="24.0" />
<Label fx:id="sVer" layoutX="18.0" layoutY="96.0" styleClass="text" text="Version : " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="100.0" />
<Label fx:id="sPlayers" layoutX="18.0" layoutY="127.0" styleClass="text" text="Players online : " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="140.0" />
<Label fx:id="sVer" layoutX="18.0" layoutY="96.0" styleClass="text" text="Version: " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="100.0" />
<Label fx:id="sPlayers" layoutX="18.0" layoutY="127.0" styleClass="text" text="Players online: " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="140.0" />
<Label layoutX="373.0" layoutY="461.0" onMouseClicked="#mcStatusRefresh" styleClass="labelButton" text="Refresh" AnchorPane.bottomAnchor="12.0" AnchorPane.rightAnchor="14.0" />
<ListView fx:id="sOnlinePlayers" layoutX="14.0" layoutY="168.0" onMouseClicked="#handleMouseClick" prefHeight="274.0" prefWidth="384.0" AnchorPane.bottomAnchor="46.0" AnchorPane.leftAnchor="13.0" AnchorPane.rightAnchor="22.0" AnchorPane.topAnchor="167.0" />
</children>
Expand Down
6 changes: 3 additions & 3 deletions AdminTools/src/rconclient/gui/LoginWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<children>
<AnchorPane fx:id="loginPane" maxHeight="-Infinity" maxWidth="-Infinity" opacity="0.9" prefHeight="290.0" prefWidth="441.0" styleClass="loginCenter" StackPane.alignment="CENTER">
<children>
<Label layoutX="15.0" layoutY="87.0" styleClass="text" text="IP : " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="87.0" />
<Label layoutX="15.0" layoutY="87.0" styleClass="text" text="IP:" AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="87.0" />
<TextField fx:id="ip" layoutX="87.0" layoutY="83.0" prefHeight="29.0" prefWidth="245.0" styleClass="rconTextField" AnchorPane.leftAnchor="87.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="83.0" />
<Label layoutX="15.0" layoutY="137.0" styleClass="text" text="Port : " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="137.0" />
<Label layoutX="15.0" layoutY="137.0" styleClass="text" text="Port:" AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="137.0" />
<TextField fx:id="port" layoutX="87.0" layoutY="133.0" prefHeight="29.0" prefWidth="245.0" styleClass="rconTextField" AnchorPane.leftAnchor="87.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="133.0" />
<Label layoutX="15.0" layoutY="187.0" styleClass="text" text="Password : " AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="187.0" />
<Label layoutX="15.0" layoutY="187.0" styleClass="text" text="Password:" AnchorPane.leftAnchor="15.0" AnchorPane.topAnchor="187.0" />
<PasswordField fx:id="password" layoutX="87.0" layoutY="183.0" prefHeight="29.0" prefWidth="245.0" styleClass="rconTextField" AnchorPane.leftAnchor="87.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="183.0" />
<Label fx:id="loginButton" layoutX="299.0" layoutY="488.0" onMouseClicked="#login" styleClass="labelButton" text="Log in" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0" />
<Text layoutX="104.0" layoutY="56.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Admin Tools">
Expand Down
10 changes: 5 additions & 5 deletions AdminTools/src/rconclient/gui/RconWindowController.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,19 @@ public void initialize(URL url, ResourceBundle rb) {
sidePane.setDisable(true);

Data d = Data.getInstance();
writeRconInternal("Connecting to " + d.getHost() + " : " + d.getPort());
writeRconInternal("Connecting to " + d.getHost() + ":" + d.getPort());
try {
CustomRcon cr = CustomRcon.getInstance();
} catch (IOException ex) {
connected = false;
Platform.runLater(() -> {
Dialog.okDialog(DialogImage.error, "Connnection Error", "Couldnt connect to server.\n Probably an incorect IP.");
Dialog.okDialog(DialogImage.error, "Connnection Error", "Couldn't connect to server.\n Probably an incorect IP.");
WindowLoader.loadLogin(rootPane);
});
} catch (AuthenticationException ex) {
connected = false;
Platform.runLater(() -> {
Dialog.okDialog(DialogImage.error, "Connnection Error", "Couldnt authenticate with server. \nIncorrect password.");
Dialog.okDialog(DialogImage.error, "Connnection Error", "Couldn't authenticate with server. \nIncorrect password.");
WindowLoader.loadLogin(rootPane);
});
} catch (Exception ex) {
Expand All @@ -189,14 +189,14 @@ public void initialize(URL url, ResourceBundle rb) {
//Write succsesfull connection
if (connected) {
Platform.runLater(() -> {
writeRconInternal("Connected to " + d.getHost() + " : " + d.getPort());
writeRconInternal("Connected to " + d.getHost() + ": " + d.getPort());
});
rconSend.setDisable(false);
sendButton.setDisable(false);
sidePane.setDisable(false);
} else {
Platform.runLater(() -> {
write("Couldnt connect to " + d.getHost() + " : " + d.getPort(), Color.RED);
write("Couldnt connect to " + d.getHost() + ": " + d.getPort(), Color.RED);
});
}
});
Expand Down
4 changes: 2 additions & 2 deletions AdminTools/src/rconclient/gui/StatusWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<children>
<Text layoutY="14.0" strokeType="OUTSIDE" strokeWidth="0.0" styleClass="borderPaneText" text="Server status" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" />
<ImageView fx:id="sFavicon" fitHeight="64.0" fitWidth="64.0" layoutX="14.0" layoutY="18.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="24.0" />
<Label fx:id="sVer" layoutX="18.0" layoutY="96.0" styleClass="text" text="Version : " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="100.0" />
<Label fx:id="sPlayers" layoutX="18.0" layoutY="127.0" styleClass="text" text="Players online : " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="140.0" />
<Label fx:id="sVer" layoutX="18.0" layoutY="96.0" styleClass="text" text="Version: " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="100.0" />
<Label fx:id="sPlayers" layoutX="18.0" layoutY="127.0" styleClass="text" text="Players online: " AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="140.0" />
<Label layoutX="373.0" layoutY="461.0" onMouseClicked="#mcStatusRefresh" styleClass="labelButton" text="Refresh" AnchorPane.bottomAnchor="12.0" AnchorPane.rightAnchor="14.0" />
<ListView fx:id="sOnlinePlayers" layoutX="14.0" layoutY="168.0" onMouseClicked="#handleMouseClick" prefHeight="274.0" prefWidth="384.0" AnchorPane.bottomAnchor="46.0" AnchorPane.leftAnchor="13.0" AnchorPane.rightAnchor="22.0" AnchorPane.topAnchor="167.0" />
</children>
Expand Down
6 changes: 3 additions & 3 deletions AdminTools/src/rconclient/gui/StatusWindowController.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class StatusWindowController implements Initializable {
private AnchorPane rootPane;
/*
Status dots
Naming scheme is :
Naming scheme is:
sd<number>
s-status
d-tot
Expand Down Expand Up @@ -154,8 +154,8 @@ private void mcStatusRefresh() {

//Set all the text and images
Platform.runLater(() -> {
sVer.setText("Version : " + data.getVersion().getName());
sPlayers.setText("Players : " + data.getPlayers().getOnline() + " / " + data.getPlayers().getMax());
sVer.setText("Version: " + data.getVersion().getName());
sPlayers.setText("Players: " + data.getPlayers().getOnline() + " / " + data.getPlayers().getMax());
sFavicon.setImage(QuerryUtils.convertToImage(data.getFavicon()));
});

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ For more documentation visit the [wiki](https://github.com/LukeOnuke/AdminTools/

Found a bug? Report it [here](https://github.com/LukeOnuke/AdminTools/issues/new)

Download: [here (releases)](https://github.com/LukeOnuke/AdminTools/releases)
Downloadable as:
- **EXE installer** - **recommended way to install**
- JAR file with all dependencies **[.zip]**
- [EXE installer](https://github.com/LukeOnuke/AdminTools/releases) - **recommended way to install**
- [JAR file](https://github.com/LukeOnuke/AdminTools/releases) with all dependencies **[.zip]**

## Setup
- Make sure your server have RCON enabled and running.
Expand All @@ -27,8 +26,8 @@ Downloadable as:

In the configuration file edit these two values to your credentials

rcon.host=<ip of your server that hosts rcon>`
rcon.port=<port of the rcon - 25575>
rcon.host=<rcon ip>`
rcon.port=<rcon port, default 25575>
rcon.password=<rcon password>

## Gallery
Expand Down

0 comments on commit 97a06d5

Please sign in to comment.