All pastes #99672 Raw Edit

Miscellany

public text v1 · immutable
#99672 ·published 2006-07-25 14:46 UTC
rendered paste body
		if(Config.USE_SAY_FILTER) 
		{
			for(String pattern : Config.FILTER_LIST)
			{
				// /*
				if (_text.contains(pattern) && !(_type == ALLIANCE || _type == PARTY || _type == CLAN)) {
					//_punishcount++;
					_log.fine("Player "+activeChar.getName()+" was jailed for word \""+pattern+"\"");
					if (!activeChar.isInJail()) {
						activeChar.sendMessage("You're jailed for word : "+pattern);
						activeChar.setInJail(true, 3);
					}
					else {
						_jtime = 3 + activeChar.getJailTimer();
						activeChar.setJailTimer(_jtime);
						activeChar.sendMessage("Your jail time increased to "+Math.round(_jtime/60000)+" minutes for word : "+pattern);
					}
					/*if (_punishcount > 4){
						activeChar.setKarma(activeChar.getKarma() + ((int)_punishcount)*activeChar.getLevel());
						activeChar.sendMessage("You've gained Karma for frequently insults.");
					}*/
				}
				// */
				_text = _text.replaceAll(pattern,"^_^");
	  		}
		}