mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28:57 +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>
|
<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;
|
||||||
Town town = null;
|
// TODO: When 0.97.0.0 is released, replace 61-68 with:
|
||||||
Nation nation = null;
|
// Town town = TownyAPI.getInstance().getResidentTownOrNull(resident);
|
||||||
String Format = "";
|
// Nation nation = TownyAPI.getInstance().getResidentNationOrNull(resident);
|
||||||
|
|
||||||
|
Town town = null;
|
||||||
|
Nation nation = null;
|
||||||
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())) {
|
||||||
|
|||||||
Reference in new issue
Block a user