Skip to content

Commit

Permalink
fix: compatibility issues with other plugins, like dynmap-towny [fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosgram committed Aug 17, 2023
1 parent 9ee1350 commit 895d89c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.gestern.gringotts.event;

import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.gestern.gringotts.accountholder.AccountHolder;
Expand Down Expand Up @@ -28,6 +29,8 @@ public class CalculateStartBalanceEvent extends Event {
* @param holder the holder
*/
public CalculateStartBalanceEvent(AccountHolder holder) {
super(!Bukkit.getServer().isPrimaryThread());

this.holder = holder;
}

Expand Down

0 comments on commit 895d89c

Please sign in to comment.