Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
osp54 committed Dec 8, 2023
2 parents 32356e8 + c0b3a94 commit 88c7e34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/admintools/AdminTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public void init() {
Call.sendChatMessage("/login " + Core.settings.getString("xcore-login"));
}
if (message.startsWith("/login")) {
Core.settings.put("xcore-login", message.substring(7));
String[] password = message.split(" ");
if (password.length < 2) return;

Core.settings.put("xcore-login", password[1]);
}
});
Events.on(EventType.ClientLoadEvent.class, e -> {
Expand Down

0 comments on commit 88c7e34

Please sign in to comment.