2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public class WordFilterWord {
|
2018-07-06 15:30:00 +02:00
|
|
|
public final String key;
|
|
|
|
public final String replacement;
|
|
|
|
public final boolean hideMessage;
|
|
|
|
public final boolean autoReport;
|
|
|
|
public final int muteTime;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public WordFilterWord(ResultSet set) throws SQLException {
|
|
|
|
this.key = set.getString("key");
|
2018-07-06 15:30:00 +02:00
|
|
|
this.replacement = set.getString("replacement");
|
|
|
|
this.hideMessage = set.getInt("hide") == 1;
|
2019-05-26 20:14:53 +02:00
|
|
|
this.autoReport = set.getInt("report") == 1;
|
|
|
|
this.muteTime = set.getInt("mute");
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public WordFilterWord(String key, String replacement) {
|
|
|
|
this.key = key;
|
2018-07-06 15:30:00 +02:00
|
|
|
this.replacement = replacement;
|
|
|
|
this.hideMessage = false;
|
2019-05-26 20:14:53 +02:00
|
|
|
this.autoReport = false;
|
|
|
|
this.muteTime = 0;
|
2018-07-06 15:30:00 +02:00
|
|
|
}
|
|
|
|
}
|