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

dev.the_fireplace.grandeconomy.io.AccountData Maven / Gradle / Ivy

There is a newer version: 4.1.0+1.16.5
Show newest version
package dev.the_fireplace.grandeconomy.io;

import dev.the_fireplace.grandeconomy.GrandEconomy;
import dev.the_fireplace.lib.api.storage.lazy.ThreadsafeLazySavable;

import java.util.UUID;

public abstract class AccountData extends ThreadsafeLazySavable {
    protected static final int SAVE_INTERVAL_IN_MINUTES = 5;
    private final UUID accountId;
    private final String dataTableName;
    protected AccountData(UUID accountId, String dataTableName) {
        super();
        this.accountId = accountId;
        this.dataTableName = dataTableName;
    }

    @Override
    public String getDatabase() {
        return GrandEconomy.MODID;
    }

    @Override
    public String getTable() {
        return dataTableName;
    }

    @Override
    public String getId() {
        return accountId.toString();
    }

    public UUID getAccountId() {
        return accountId;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy