mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-07 07:25:34 +02:00
32 lines
878 B
Java
32 lines
878 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;
|
||
|
}
|
||
|
}
|