mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
v0.4:
- Fixed custom channel chat not showing in the console.
This commit is contained in:
1 parent
3180d767ce
commit
bb326c93dd
3 files changed
+4
-1
No files matched your search
@@ -7,3 +7,5 @@ v0.2:
|
|||||||
v0.3:
|
v0.3:
|
||||||
- TownyChat now only enables itself if Towny successfully starts.
|
- TownyChat now only enables itself if Towny successfully starts.
|
||||||
- Fixed missing {} around modplayername.
|
- Fixed missing {} around modplayername.
|
||||||
|
v0.4:
|
||||||
|
- Fixed custom channel chat not showing in the console.
|
||||||
@@ -146,6 +146,7 @@ public class TownyPlayerHighestListener extends PlayerListener {
|
|||||||
TownyChatEvent chatEvent = new TownyChatEvent(event, resident);
|
TownyChatEvent chatEvent = new TownyChatEvent(event, resident);
|
||||||
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
||||||
|
|
||||||
|
TownyUniverse.plugin.log(chatEvent.getFormat().replace("%1$s", event.getPlayer().getDisplayName()).replace("%2$s", event.getMessage()));
|
||||||
for (Player test : plugin.getTownyUniverse().getOnlinePlayers()) {
|
for (Player test : plugin.getTownyUniverse().getOnlinePlayers()) {
|
||||||
if (!plugin.isPermissions() || (plugin.isPermissions() && TownyUniverse.getPermissionSource().hasPermission(test, TownySettings.getChatChannelPermission(command))))
|
if (!plugin.isPermissions() || (plugin.isPermissions() && TownyUniverse.getPermissionSource().hasPermission(test, TownySettings.getChatChannelPermission(command))))
|
||||||
TownyMessaging.sendMessage(test, chatEvent.getFormat().replace("%1$s", event.getPlayer().getDisplayName()).replace("%2$s", event.getMessage()));
|
TownyMessaging.sendMessage(test, chatEvent.getFormat().replace("%1$s", event.getPlayer().getDisplayName()).replace("%2$s", event.getMessage()));
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: TownyChat
|
name: TownyChat
|
||||||
main: com.palmergames.bukkit.TownyChat.Chat
|
main: com.palmergames.bukkit.TownyChat.Chat
|
||||||
version: 0.3
|
version: 0.4
|
||||||
author: ElgarL
|
author: ElgarL
|
||||||
website: http://code.google.com/a/eclipselabs.org/p/towny/
|
website: http://code.google.com/a/eclipselabs.org/p/towny/
|
||||||
description: >
|
description: >
|
||||||
|
|||||||
Reference in new issue
Block a user