mirror of
https://github.com/zontreck/AutoMoneyPlugin
synced 2025-06-19 10:23:55 +00:00
Switch to maven
This commit is contained in:
parent
1981ef4276
commit
ee6a359895
12 changed files with 160 additions and 742 deletions
|
@ -1,7 +1,8 @@
|
|||
package dev.zontreck.amp;
|
||||
|
||||
import io.papermc.lib.PaperLib;
|
||||
//import io.papermc.lib.PaperLib;
|
||||
import net.milkbowl.vault.economy.Economy;
|
||||
import net.milkbowl.vault.economy.EconomyResponse;
|
||||
import net.milkbowl.vault.economy.EconomyResponse.ResponseType;
|
||||
|
||||
import java.util.Timer;
|
||||
|
@ -21,7 +22,7 @@ public class AutoMoneyPlugin extends JavaPlugin {
|
|||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
PaperLib.suggestPaper(this);
|
||||
//PaperLib.suggestPaper(this);
|
||||
|
||||
saveDefaultConfig();
|
||||
reloadConfig();
|
||||
|
@ -74,7 +75,7 @@ public class AutoMoneyPlugin extends JavaPlugin {
|
|||
if(Configuration.g_sBankAccount.isEmpty()) {
|
||||
economy.depositPlayer(player, Configuration.g_dPaymentAmount);
|
||||
} else {
|
||||
var ecoReply = economy.bankWithdraw(Configuration.g_sBankAccount, Configuration.g_dPaymentAmount);
|
||||
EconomyResponse ecoReply = economy.bankWithdraw(Configuration.g_sBankAccount, Configuration.g_dPaymentAmount);
|
||||
if(ecoReply.type == ResponseType.SUCCESS) {
|
||||
economy.depositPlayer(player, Configuration.g_dPaymentAmount);
|
||||
} else {
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
package dev.zontreck.amp;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* AutoMoneyPlugin Tests
|
||||
*
|
||||
* @author Copyright (c) zontreck. Licensed under the GPLv3.
|
||||
*/
|
||||
public class AutoMoneyPlugin {
|
||||
|
||||
@Test
|
||||
public void onEnable() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue