fix: compatibility issues with other plugins, like dynmap-towny [fixes #159]

This commit is contained in:
Nikolaos Grammatikos 2023-08-17 19:32:07 +01:00
parent 9ee135010a
commit 895d89cd27
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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;
@ -28,6 +29,8 @@ public class CalculateStartBalanceEvent extends Event {
* @param holder the holder
*/
public CalculateStartBalanceEvent(AccountHolder holder) {
super(!Bukkit.getServer().isPrimaryThread());
this.holder = holder;
}