All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.astrainteractive.astralibs.economy.EmptyEconomyProvider.kt Maven / Gradle / Ivy

There is a newer version: 3.16.1
Show newest version
package ru.astrainteractive.astralibs.economy

import java.util.UUID

/**
 * EmptyEconomyProvider can be used when no other economy provider found
 *
 * It will return failure to every economy operation
 */
class EmptyEconomyProvider : EconomyProvider {
    override fun getBalance(uuid: UUID): Double? = null

    override fun takeMoney(uuid: UUID, amount: Double): Boolean = false

    override fun addMoney(uuid: UUID, amount: Double): Boolean = false

    override fun hasAtLeast(uuid: UUID, amount: Double): Boolean = false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy