mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
v0.69:
- Fix missing spaces from {title} & {surname} & {townypostfix}.
This commit is contained in:
1 parent
65bd972090
commit
4a9c7a52ad
3 files changed
+7
-5
No files matched your search
@@ -7,7 +7,7 @@
|
|||||||
<groupId>com.palmergames.bukkit</groupId>
|
<groupId>com.palmergames.bukkit</groupId>
|
||||||
<artifactId>TownyChat</artifactId>
|
<artifactId>TownyChat</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>0.68</version>
|
<version>0.69</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -296,4 +296,6 @@ v0.66:
|
|||||||
v0.67:
|
v0.67:
|
||||||
- Fix for TownyChat overwriting towny_default_modes player modes on login.
|
- Fix for TownyChat overwriting towny_default_modes player modes on login.
|
||||||
v0.68:
|
v0.68:
|
||||||
- Updated comments to reflect change with toggling chats, courtesy of GenSecrets with PR #25.
|
- Updated comments to reflect change with toggling chats, courtesy of GenSecrets with PR #25.
|
||||||
|
v0.69:
|
||||||
|
- Fix missing spaces from {title} & {surname} & {townypostfix}.
|
||||||
@@ -94,13 +94,13 @@ public class TownyChatFormatter {
|
|||||||
replacer.registerFormatReplacement(Pattern.quote("{title}"), new TownyChatReplacerCallable() {
|
replacer.registerFormatReplacement(Pattern.quote("{title}"), new TownyChatReplacerCallable() {
|
||||||
@Override
|
@Override
|
||||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||||
return event.getResident().hasTitle() ? event.getResident().getTitle() : "";
|
return event.getResident().hasTitle() ? event.getResident().getTitle() + " " : "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
replacer.registerFormatReplacement(Pattern.quote("{surname}"), new TownyChatReplacerCallable() {
|
replacer.registerFormatReplacement(Pattern.quote("{surname}"), new TownyChatReplacerCallable() {
|
||||||
@Override
|
@Override
|
||||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||||
return event.getResident().hasSurname() ? event.getResident().getSurname() : "";
|
return event.getResident().hasSurname() ? " " + event.getResident().getSurname() : "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
replacer.registerFormatReplacement(Pattern.quote("{townynameprefix}"), new TownyChatReplacerCallable() {
|
replacer.registerFormatReplacement(Pattern.quote("{townynameprefix}"), new TownyChatReplacerCallable() {
|
||||||
@@ -124,7 +124,7 @@ public class TownyChatFormatter {
|
|||||||
replacer.registerFormatReplacement(Pattern.quote("{townypostfix}"), new TownyChatReplacerCallable() {
|
replacer.registerFormatReplacement(Pattern.quote("{townypostfix}"), new TownyChatReplacerCallable() {
|
||||||
@Override
|
@Override
|
||||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||||
return event.getResident().hasSurname() ? event.getResident().getSurname() : getNamePostfix(event.getResident());
|
return event.getResident().hasSurname() ? " " + event.getResident().getSurname() : getNamePostfix(event.getResident());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user