Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/modtool/WordFilterWord.java

32 lines
878 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
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;
}
}