All pastes #1579088 Raw Edit

GeneralChatHandler

public java v1 · immutable
#1579088 ·published 2009-09-25 12:08 UTC
rendered paste body
/*    KryptoDEV Maplestory Source Coded in Java Part of KryptoDEV Community    	Copyright (C) 2009 KryptoDEV	(xcheater3161) Robert Carpenter <rjctlc3@hotmail.com>    This program is free software. You may not however, redistribute it and/or    modify it without the sole, written consent of KryptoDEV Team.    This program is distributed in the hope that it will be useful to those of    the KryptoDEV Community, and those who have consent to redistribute this.    Upon reading this, you agree to follow and maintain the mutual balance    between the Author and the Community at hand.    */package org.handlers;import org.communication.MapleClient;import org.packet.MaplePacketCreator;import org.server.commands.CommandProcessor;import org.tools.StringUtil;import org.tools.data.input.SeekableLittleEndianAccessor;public class GeneralchatHandler extends AbstractMaplePacketHandler {	@Override	public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {		String text = slea.readMapleAsciiString();		int show = slea.readByte();		if (!CommandProcessor.getInstance().processCommand(c, text)) {			c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text, c.getPlayer().isGM(), show));		}	}}