mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Merge branch 'wordfilter-event-fix' into 'dev'
Fix SupportTicketEvent is fired twice See merge request morningstar/Arcturus-Community!481
This commit is contained in:
commit
e195a108b1
@ -184,8 +184,6 @@ public class ModToolManager {
|
|||||||
|
|
||||||
public void quickTicket(Habbo reported, String reason, String message) {
|
public void quickTicket(Habbo reported, String reason, String message) {
|
||||||
ModToolIssue issue = new ModToolIssue(0, reason, reported.getHabboInfo().getId(), reported.getHabboInfo().getUsername(), 0, message, ModToolTicketType.AUTOMATIC);
|
ModToolIssue issue = new ModToolIssue(0, reason, reported.getHabboInfo().getId(), reported.getHabboInfo().getUsername(), 0, message, ModToolTicketType.AUTOMATIC);
|
||||||
if (Emulator.getPluginManager().fireEvent(new SupportTicketEvent(null, issue)).isCancelled())
|
|
||||||
return;
|
|
||||||
|
|
||||||
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
Emulator.getGameEnvironment().getModToolManager().addTicket(issue);
|
||||||
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
Emulator.getGameEnvironment().getModToolManager().updateTicketToMods(issue);
|
||||||
|
Loading…
Reference in New Issue
Block a user