Skip to content

Commit 4ffac14

Browse files
committed
# Version 1.3.5
### [bugfix](stupid)<br> - I deleted the help command (i don't know how) ### [changes]<br> / ### [addition]<br> /<br> PS: report any issues Took 16 minutes
1 parent 1d9bd54 commit 4ffac14

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.tubyoub</groupId>
88
<artifactId>StatusPlugin</artifactId>
9-
<version>1.3.4</version>
9+
<version>1.3.5</version>
1010
<packaging>jar</packaging>
1111

1212
<name>Tub's Status Plugin</name>

src/main/java/de/tubyoub/statusplugin/StatusPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* This class extends JavaPlugin and represents the main entry point for the plugin.
1919
*/
2020
public class StatusPlugin extends JavaPlugin {
21-
private final String version = "1.3.4";
21+
private final String version = "1.3.5";
2222
private StatusManager statusManager;
2323
private VersionChecker versionChecker;
2424
//private boolean placeholderAPIPresent;

src/main/java/de/tubyoub/statusplugin/commands/StatusCommand.java

+22-2
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,29 @@ private void helpCommand(Player sender, StatusPlugin plugin, String[] args) {
172172
} else {
173173
plugin.sendPluginMessages(sender, "title");
174174
sender.sendMessage("Here you can see all available commands:");
175-
// The rest of the code is self-explanatory and does not need documentation.
175+
plugin.sendPluginMessages(sender, "title");
176+
sender.sendMessage("Here you can see all available commands:");
177+
sender.sendMessage("/status <status> - Set your own status.");
178+
sender.sendMessage("/status remove - Remove your Status.");
179+
sender.sendMessage("/status help colorcodes - Get all colorcodes to use in your status.");
180+
if (sender.hasPermission("StatusPlugin.admin.setStatus")) {
181+
sender.sendMessage("/status remove <player> - Remove a player's status. (Admin)");
182+
sender.sendMessage("/status <player> <status> - Set a player's status. (Admin)");
183+
}
184+
sender.sendMessage("/status help colors - Show a list of color codes.");
185+
if (sender.hasPermission("StatusPlugin.admin.reload")) {
186+
sender.sendMessage("/status reload - Reload all statuses. (Admin)");
187+
}
188+
if (sender.hasPermission("StatusPlugin.admin.setMaxlength")) {
189+
sender.sendMessage("/status setmaxlength <length> - Set the max length of status. (Admin)");
190+
}
191+
if (sender.hasPermission("StatusPlugin.admin.resetMaxlength")) {
192+
sender.sendMessage("/status resetmaxlength - Reset the max length of status to default. (Admin)");
193+
}
194+
sender.sendMessage("/status info - Show info about the plugin.");
195+
plugin.sendPluginMessages(sender, "line");
196+
}
176197
}
177-
}
178198

179199
/**
180200
* Displays the available color and formatting codes to the sender.

0 commit comments

Comments
 (0)