Removed mcmmo ability check

Took 40 seconds
This commit is contained in:
Kiran Hart 2023-12-05 17:50:13 -05:00
parent 3bb48f134f
commit 03520e61b7
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -26,7 +26,6 @@ import ca.tweetzy.auctionhouse.auction.AuctionPlayer;
import ca.tweetzy.auctionhouse.auction.AuctionedItem;
import ca.tweetzy.auctionhouse.auction.enums.PaymentReason;
import ca.tweetzy.auctionhouse.events.AuctionStartEvent;
import ca.tweetzy.auctionhouse.hooks.McMMOHook;
import ca.tweetzy.auctionhouse.managers.SoundManager;
import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.hooks.EconomyManager;
@ -71,11 +70,11 @@ public final class AuctionCreator {
}
// Hooks & Special Cases
if (McMMOHook.isUsingAbility(seller)) {
instance.getLocale().getMessage("general.mcmmo_ability_active").sendPrefixedMessage(seller);
result.accept(auctionItem, CANNOT_LIST_WITH_MCMMO_ABILITY_ACTIVE);
return;
}
// if (McMMOHook.isUsingAbility(seller)) {
// instance.getLocale().getMessage("general.mcmmo_ability_active").sendPrefixedMessage(seller);
// result.accept(auctionItem, CANNOT_LIST_WITH_MCMMO_ABILITY_ACTIVE);
// return;
// }
if (!Settings.ALLOW_SALE_OF_DAMAGED_ITEMS.getBoolean() && AuctionAPI.getInstance().isDamaged(auctionItem.getItem())) {
instance.getLocale().getMessage("general.cannot list damaged item").sendPrefixedMessage(seller);