mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -05:00
Added 'runeblast' pm, and reports to the alert system.
This commit is contained in:
parent
40b78d9254
commit
b76d909658
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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>();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user