mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-03-06 02:02:36 +01:00
18 lines
645 B
Java
18 lines
645 B
Java
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
import com.eu.habbo.Emulator;
|
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
|
|
|
public class ScripterManager {
|
|
public static void scripterDetected(GameClient client, String reason) {
|
|
ScripterEvent scripterEvent = new ScripterEvent(client.getHabbo(), reason);
|
|
Emulator.getPluginManager().fireEvent(scripterEvent);
|
|
|
|
if (scripterEvent.isCancelled()) return;
|
|
|
|
if (Emulator.getConfig().getBoolean("scripter.modtool.tickets", true)) {
|
|
Emulator.getGameEnvironment().getModToolManager().quickTicket(client.getHabbo(), "Scripter", reason);
|
|
}
|
|
}
|
|
}
|