@@ -172,9 +172,29 @@ private void helpCommand(Player sender, StatusPlugin plugin, String[] args) {
172
172
} else {
173
173
plugin .sendPluginMessages (sender , "title" );
174
174
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
+ }
176
197
}
177
- }
178
198
179
199
/**
180
200
* Displays the available color and formatting codes to the sender.
0 commit comments