Skip to content
Permalink
Browse files

Prevent Payment being registered if no economy plugin is available.

  • Loading branch information...
me4502 committed Jul 14, 2019
1 parent f3dc595 commit 31369f6ce3e2a07a0dd7e27312c3bbf1b6f87358
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/main/java/com/sk89q/craftbook/mechanics/Payment.java
@@ -26,6 +26,15 @@
*/
public class Payment extends AbstractCraftBookMechanic {

@Override
public boolean enable() {
if (CraftBookPlugin.plugins.getEconomy() == null) {
CraftBookPlugin.inst().getLogger().warning("An economy plugin and Vault is required for the Payment mechanic!");
return false;
}
return super.enable();
}

@EventHandler(priority = EventPriority.HIGH)
public void onRightClick(SignClickEvent event) {

3 comments on commit 31369f6

@mibby

This comment has been minimized.

Copy link

replied Jul 16, 2019

@me4502 SignCopier mechanic doesn't seem to work with the new 1.14 signs.

@me4502

This comment has been minimized.

Copy link
Member Author

replied Jul 16, 2019

@mibby Yeah it's too much of a performance hit to support both the 1.14 signs and 1.13 at the same time, so we're not supporting them until 1.14 is stable enough to move to.

@mibby

This comment has been minimized.

Copy link

replied Jul 17, 2019

Sure, no problem. Just thought I'd forward your way in case it isn't something known yet. :)

Please sign in to comment.
You can’t perform that action at this time.