mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
Tidying, bump Towny version in the pom.
This commit is contained in:
1 parent
d6ef07081f
commit
af02f6571a
2 files changed
+9
-6
No files matched your search
@@ -74,7 +74,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.TownyAdvanced</groupId>
|
||||
<artifactId>Towny</artifactId>
|
||||
<version>0.96.5.6</version>
|
||||
<version>0.96.7.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
@@ -46,16 +46,20 @@ public class StandardChannel extends Channel {
|
||||
public void chatProcess(AsyncPlayerChatEvent event) {
|
||||
|
||||
channelTypes channelType = this.getType();
|
||||
|
||||
Player player = event.getPlayer();
|
||||
Set<Player> recipients = null;
|
||||
String Format = "";
|
||||
boolean notifyjoin = false;
|
||||
|
||||
Resident resident = TownyUniverse.getInstance().getResident(player.getUniqueId());
|
||||
if (resident == null)
|
||||
return;
|
||||
Town town = null;
|
||||
Nation nation = null;
|
||||
String Format = "";
|
||||
// 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;
|
||||
Nation nation = null;
|
||||
try {
|
||||
town = resident.getTown();
|
||||
nation = resident.getTown().getNation();
|
||||
@@ -63,7 +67,6 @@ public class StandardChannel extends Channel {
|
||||
// Not in a town/nation (doesn't matter which)
|
||||
}
|
||||
|
||||
boolean notifyjoin = false;
|
||||
// If player sends a message to a channel it had left
|
||||
// tell the channel to add the player back
|
||||
if (isAbsent(player.getName())) {
|
||||
|
||||
Reference in new issue
Block a user