Skip to content

Commit

Permalink
Display the root command upon startup and to translate all & color co…
Browse files Browse the repository at this point in the history
…des.
  • Loading branch information
rbluer committed Jul 2, 2022
1 parent 0520bb4 commit 3e2deff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/royalblueranger/mgpq/RBRPlugIn.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public void log( String message, Object... args )
message = logPrefix() +
String.format( message, args );

message = ChatColor.translateAlternateColorCodes('&', message);

if ( !logsColor )
{
message = ChatColor.stripColor( message );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public CommandHandler( RBRPlugIn plugin ) {
"&7Ensure that you're using the latest version of Spigot and this plugin.");
e.printStackTrace();
}

this.plugin.log( "&3Root command: &7/%s &3fallback-prefix: &7%s",
DefaultSettings.COMMAND_PRIMARY_ROOT_COMMAND, DefaultSettings.COMMAND_FALLBACK_PREFIX );
}


Expand Down

0 comments on commit 3e2deff

Please sign in to comment.