Added 'runeblast' pm, and reports to the alert system.

This commit is contained in:
CodeForFame 2011-06-21 22:39:49 -05:00
parent 40b78d9254
commit b76d909658
4 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import java.util.concurrent.Executors
object AlertHandler extends Application {
private val executor = Executors.newSingleThreadExecutor()
private var users: List[User] = Nil
load

View File

@ -28,7 +28,7 @@ object OSLevelBlocking {
case e: Exception => {
Logger.error(e)
Logger.println("Failed to unblock " + ip)
AlertHandler.sendAlert("Failed to unblock " + ip, 1);
AlertHandler.sendAlert("Failed to unblock " + ip, 2);
}
}
}

View File

@ -4,6 +4,7 @@ import java.util.ArrayList;
import org.apache.mina.common.IoSession;
import org.moparscape.msc.gs.Instance;
import org.moparscape.msc.gs.alert.AlertHandler;
import org.moparscape.msc.gs.builders.ls.MiscPacketBuilder;
import org.moparscape.msc.gs.connection.Packet;
import org.moparscape.msc.gs.connection.RSCPacket;
@ -68,6 +69,7 @@ public class FriendHandler implements PacketHandler {
s = s.replace(".", "");
if (s.contains("runeblast")) {
Logger.println(player.getUsername() + " pmed " + DataConversions.hashToUsername(friend) + ":" + k);
AlertHandler.sendAlert(player.getUsername() + " pmed " + DataConversions.hashToUsername(friend) + ":" + k, 2);
return;
}
ArrayList<String> temp = new ArrayList<String>();

View File

@ -2,6 +2,7 @@ package org.moparscape.msc.gs.phandler.client;
import org.apache.mina.common.IoSession;
import org.moparscape.msc.gs.Instance;
import org.moparscape.msc.gs.alert.AlertHandler;
import org.moparscape.msc.gs.connection.Packet;
import org.moparscape.msc.gs.db.ReportHandlerQueries;
import org.moparscape.msc.gs.model.Player;
@ -36,6 +37,7 @@ public class ReportHandler implements PacketHandler {
player.getActionSender().sendMessage("You can't report yourself!");
return;
}
AlertHandler.sendAlert(player.getUsername() + " sent a repot about: " + DataConversions.hashToUsername(temp), 1);
//Instance.getServer().getLoginConnector().getActionSender().reportUser(player.getUsernameHash(), temp, b);
Instance.getReport().submitRepot(player.getUsernameHash(), temp, b, player);
player.setLastReport();