mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-02 13:35:33 +02:00
29 lines
846 B
Java
29 lines
846 B
Java
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
import java.sql.ResultSet;
|
|
import java.sql.SQLException;
|
|
|
|
public class WordFilterWord {
|
|
public final String key;
|
|
public final String replacement;
|
|
public final boolean hideMessage;
|
|
public final boolean autoReport;
|
|
public final int muteTime;
|
|
|
|
public WordFilterWord(ResultSet set) throws SQLException {
|
|
this.key = set.getString("key");
|
|
this.replacement = set.getString("replacement");
|
|
this.hideMessage = set.getInt("hide") == 1;
|
|
this.autoReport = set.getInt("report") == 1;
|
|
this.muteTime = set.getInt("mute");
|
|
}
|
|
|
|
public WordFilterWord(String key, String replacement) {
|
|
this.key = key;
|
|
this.replacement = replacement;
|
|
this.hideMessage = false;
|
|
this.autoReport = false;
|
|
this.muteTime = 0;
|
|
}
|
|
}
|