Tidying, bump Towny version in the pom.

This commit is contained in:
Llm Dl committed 2021-04-17 10:03:26 -05:00
1 parent d6ef07081f
commit af02f6571a
2 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@
<dependency> <dependency>
<groupId>com.github.TownyAdvanced</groupId> <groupId>com.github.TownyAdvanced</groupId>
<artifactId>Towny</artifactId> <artifactId>Towny</artifactId>
<version>0.96.5.6</version> <version>0.96.7.0</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
@@ -46,16 +46,20 @@ public class StandardChannel extends Channel {
public void chatProcess(AsyncPlayerChatEvent event) { public void chatProcess(AsyncPlayerChatEvent event) {
channelTypes channelType = this.getType(); channelTypes channelType = this.getType();
Player player = event.getPlayer(); Player player = event.getPlayer();
Set<Player> recipients = null; Set<Player> recipients = null;
String Format = "";
boolean notifyjoin = false;
Resident resident = TownyUniverse.getInstance().getResident(player.getUniqueId()); Resident resident = TownyUniverse.getInstance().getResident(player.getUniqueId());
if (resident == null) if (resident == null)
return; return;
// TODO: When 0.97.0.0 is released, replace 61-68 with:
// Town town = TownyAPI.getInstance().getResidentTownOrNull(resident);
// Nation nation = TownyAPI.getInstance().getResidentNationOrNull(resident);
Town town = null; Town town = null;
Nation nation = null; Nation nation = null;
String Format = "";
try { try {
town = resident.getTown(); town = resident.getTown();
nation = resident.getTown().getNation(); nation = resident.getTown().getNation();
@@ -63,7 +67,6 @@ public class StandardChannel extends Channel {
// Not in a town/nation (doesn't matter which) // Not in a town/nation (doesn't matter which)
} }
boolean notifyjoin = false;
// If player sends a message to a channel it had left // If player sends a message to a channel it had left
// tell the channel to add the player back // tell the channel to add the player back
if (isAbsent(player.getName())) { if (isAbsent(player.getName())) {