You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 15:06:19 +00:00
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.eu.habbo</groupId>
|
<groupId>com.eu.habbo</groupId>
|
||||||
<artifactId>Habbo</artifactId>
|
<artifactId>Habbo</artifactId>
|
||||||
<version>4.2.30</version>
|
<version>4.2.34</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|||||||
@@ -17,7 +17,22 @@ public class CommandsCommand extends Command {
|
|||||||
message.append("(").append(commands.size()).append("):\r\n");
|
message.append("(").append(commands.size()).append("):\r\n");
|
||||||
|
|
||||||
for (Command c : commands) {
|
for (Command c : commands) {
|
||||||
message.append(Emulator.getTexts().getValue("commands.description." + c.permission, "commands.description." + c.permission)).append("\r");
|
String textKey = "commands.description." + c.permission;
|
||||||
|
String commandText = Emulator.getTexts().getValue(textKey, "");
|
||||||
|
String commandLine = ":" + c.keys[0];
|
||||||
|
String description = "";
|
||||||
|
|
||||||
|
if (commandText.startsWith(":")) {
|
||||||
|
commandLine = commandText;
|
||||||
|
} else if (!commandText.isEmpty() && !commandText.equals(textKey)) {
|
||||||
|
description = commandText;
|
||||||
|
}
|
||||||
|
|
||||||
|
message.append(commandLine).append("\r");
|
||||||
|
|
||||||
|
if (!description.isEmpty()) {
|
||||||
|
message.append(description).append("\r");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gameClient.getHabbo().alert(new String[]{message.toString()});
|
gameClient.getHabbo().alert(new String[]{message.toString()});
|
||||||
|
|||||||
Reference in New Issue
Block a user