Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ holdings: 10.00

maxholdings: -1

prefix: Fe
prefix: '&f[&6Fe&f]'

topsize: 5

Expand All @@ -21,4 +21,4 @@ type: sqlite

updatecheck: true

cacheaccounts: true
cacheaccounts: true
4 changes: 1 addition & 3 deletions src/org/melonbrew/fe/Fe.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,7 @@ public Account getShortenedAccount(String name) {
}

public String getMessagePrefix() {
String third = Phrase.TERTIARY_COLOR.parse();

return third + "[" + Phrase.PRIMARY_COLOR.parse() + "$1" + third + "] " + Phrase.SECONDARY_COLOR.parse();
return Phrase.PRIMARY_COLOR.parse() + "$1" + Phrase.SECONDARY_COLOR.parse();
}

public String getEqualMessage(String inBetween, int length) {
Expand Down
4 changes: 2 additions & 2 deletions src/org/melonbrew/fe/Phrase.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public String parseWithoutSpaces(String... params) {
}

private String parseWithPrefix(String... params) {
return plugin.getMessagePrefix().replace("$1", plugin.getConfig().getString("prefix")) + parse(params);
return plugin.getMessagePrefix().replace("$1", ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString("prefix"))) + parse(params);
}

public void send(CommandSender sender, String... params) {
Expand All @@ -127,4 +127,4 @@ public void send(CommandSender sender, String... params) {
public void sendWithPrefix(CommandSender sender, String... params) {
sender.sendMessage(parseWithPrefix(params));
}
}
}