You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-20 07:26:18 +00:00
🆙 Added more rate limiting to the emu
This commit is contained in:
+5
@@ -9,6 +9,11 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
|||||||
|
|
||||||
public class PurchaseTargetOfferEvent extends MessageHandler {
|
public class PurchaseTargetOfferEvent extends MessageHandler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 1000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
final int offerId = this.packet.readInt();
|
final int offerId = this.packet.readInt();
|
||||||
|
|||||||
+5
@@ -4,6 +4,11 @@ import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
|
|
||||||
public class BuyItemEvent extends MessageHandler {
|
public class BuyItemEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 1000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
int offerId = this.packet.readInt();
|
int offerId = this.packet.readInt();
|
||||||
|
|||||||
+5
@@ -4,6 +4,11 @@ import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
|
|
||||||
public class RequestCreditsEvent extends MessageHandler {
|
public class RequestCreditsEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
MarketPlace.getCredits(this.client);
|
MarketPlace.getCredits(this.client);
|
||||||
|
|||||||
+5
@@ -4,6 +4,11 @@ import com.eu.habbo.habbohotel.catalog.marketplace.MarketPlace;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
|
|
||||||
public class TakeBackItemEvent extends MessageHandler {
|
public class TakeBackItemEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 500;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
int offerId = this.packet.readInt();
|
int offerId = this.packet.readInt();
|
||||||
|
|||||||
+5
@@ -7,6 +7,11 @@ import com.eu.habbo.habbohotel.users.Habbo;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
|
|
||||||
public class ModToolIssueDefaultSanctionEvent extends MessageHandler {
|
public class ModToolIssueDefaultSanctionEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
if (this.client.getHabbo().hasPermission(Permission.ACC_SUPPORTTOOL)) {
|
if (this.client.getHabbo().hasPermission(Permission.ACC_SUPPORTTOOL)) {
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ import com.eu.habbo.Emulator;
|
|||||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||||
|
|
||||||
public class ModToolKickEvent extends MessageHandler {
|
public class ModToolKickEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
Emulator.getGameEnvironment().getModToolManager().kick(this.client.getHabbo(), Emulator.getGameEnvironment().getHabboManager().getHabbo(this.packet.readInt()), this.packet.readString());
|
Emulator.getGameEnvironment().getModToolManager().kick(this.client.getHabbo(), Emulator.getGameEnvironment().getHabboManager().getHabbo(this.packet.readInt()), this.packet.readString());
|
||||||
|
|||||||
+5
@@ -12,6 +12,11 @@ import gnu.trove.map.hash.THashMap;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class ModToolSanctionAlertEvent extends MessageHandler {
|
public class ModToolSanctionAlertEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
int userId = this.packet.readInt();
|
int userId = this.packet.readInt();
|
||||||
|
|||||||
+5
@@ -12,6 +12,11 @@ import gnu.trove.map.hash.THashMap;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class ModToolSanctionBanEvent extends MessageHandler {
|
public class ModToolSanctionBanEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
public static final int BAN_18_HOURS = 3;
|
public static final int BAN_18_HOURS = 3;
|
||||||
public static final int BAN_7_DAYS = 4;
|
public static final int BAN_7_DAYS = 4;
|
||||||
public static final int BAN_30_DAYS_STEP_1 = 5;
|
public static final int BAN_30_DAYS_STEP_1 = 5;
|
||||||
|
|||||||
+5
@@ -14,6 +14,11 @@ import java.util.ArrayList;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
public class ModToolSanctionMuteEvent extends MessageHandler {
|
public class ModToolSanctionMuteEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
int userId = this.packet.readInt();
|
int userId = this.packet.readInt();
|
||||||
|
|||||||
+5
@@ -12,6 +12,11 @@ import gnu.trove.map.hash.THashMap;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class ModToolSanctionTradeLockEvent extends MessageHandler {
|
public class ModToolSanctionTradeLockEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
int userId = this.packet.readInt();
|
int userId = this.packet.readInt();
|
||||||
|
|||||||
@@ -8,6 +8,11 @@ import com.eu.habbo.messages.incoming.MessageHandler;
|
|||||||
import com.eu.habbo.plugin.events.support.SupportUserAlertedReason;
|
import com.eu.habbo.plugin.events.support.SupportUserAlertedReason;
|
||||||
|
|
||||||
public class ModToolWarnEvent extends MessageHandler {
|
public class ModToolWarnEvent extends MessageHandler {
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 2000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
if (this.client.getHabbo().hasPermission(Permission.ACC_SUPPORTTOOL)) {
|
if (this.client.getHabbo().hasPermission(Permission.ACC_SUPPORTTOOL)) {
|
||||||
|
|||||||
+4
@@ -13,6 +13,10 @@ import org.slf4j.LoggerFactory;
|
|||||||
public class RequestCreateRoomEvent extends MessageHandler {
|
public class RequestCreateRoomEvent extends MessageHandler {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(RequestCreateRoomEvent.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(RequestCreateRoomEvent.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getRatelimit() {
|
||||||
|
return 3000;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle() throws Exception {
|
public void handle() throws Exception {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user