Log Player tried to say

This commit is contained in:
Sn0wStorm
2013-10-25 17:59:21 +02:00
parent 3935486e52
commit 731fe40b0e
5 changed files with 12 additions and 2 deletions
+4
View File
@@ -14,6 +14,7 @@ public class Words {
public static ArrayList<Words> words = new ArrayList<Words>();
public static FileConfiguration config;
public static Boolean log;
private String from;
private String to;
@@ -68,6 +69,9 @@ public class Words {
}
if (!words.isEmpty()) {
String message = event.getMessage();
if (log) {
P.p.log(P.p.languageReader.get("Player_TriedToSay", event.getPlayer().getName(), message));
}
for (Words word : words) {
if (word.alcohol <= bPlayer.getDrunkeness()) {
message = word.distort(message);