mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 14:38:56 +00:00
- Remove some unused code, suppress an essentials deprecation.
This commit is contained in:
1 parent
8aa1ee1a34
commit
cedd657ece
1 file changed
+1
-4
@@ -144,16 +144,12 @@ public class StandardChannel extends Channel {
|
|||||||
* Perform any last channel specific functions
|
* Perform any last channel specific functions
|
||||||
* like logging this chat and relaying to Dynmap.
|
* like logging this chat and relaying to Dynmap.
|
||||||
*/
|
*/
|
||||||
String msg = event.getFormat().replace("%1$s", event.getPlayer().getDisplayName()).replace("%2$s", event.getMessage());
|
|
||||||
|
|
||||||
switch (exec) {
|
switch (exec) {
|
||||||
|
|
||||||
case TOWN:
|
case TOWN:
|
||||||
//plugin.getLogger().info(ChatTools.stripColour("[Town Msg] " + town.getName() + ": " + msg));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NATION:
|
case NATION:
|
||||||
//plugin.getLogger().info(ChatTools.stripColour("[Nation Msg] " + nation.getName() + ": " + msg));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEFAULT:
|
case DEFAULT:
|
||||||
@@ -205,6 +201,7 @@ public class StandardChannel extends Channel {
|
|||||||
* @param list
|
* @param list
|
||||||
* @return Set containing a list of players for this message.
|
* @return Set containing a list of players for this message.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private Set<Player> findRecipients(Player sender, List<Player> list) {
|
private Set<Player> findRecipients(Player sender, List<Player> list) {
|
||||||
|
|
||||||
Set<Player> recipients = new HashSet<>();
|
Set<Player> recipients = new HashSet<>();
|
||||||
|
|||||||
Reference in new issue
Block a user