PlaytimeReloaded/src/main/java/li/inc/PlaytimeReloaded/DataStore/DB/IDB.java

40 lines
1.2 KiB
Java
Raw Normal View History

2017-02-09 00:27:20 +00:00
/*
2020-12-28 08:11:09 +00:00
* Copyright (c) 2016
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* This file is part of the spigot Minecraft server plugin 'PlaytimeReloaded'.
*
* PlaytimeReloaded is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlaytimeReloaded is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PlaytimeReloaded. If not, see <http://www.gnu.org/licenses/>.
*/
2017-02-09 00:27:20 +00:00
package li.inc.PlaytimeReloaded.DataStore.DB;
import li.inc.PlaytimeReloaded.DataStore.Config;
import org.bukkit.plugin.Plugin;
import java.util.List;
import java.util.UUID;
2020-12-28 08:11:09 +00:00
public interface IDB {
2017-02-09 00:27:20 +00:00
public void init(Plugin _plugin, Config _config);
2020-12-28 08:11:09 +00:00
2017-02-09 00:27:20 +00:00
public void update(UUID _playerUUID, int _newTime);
2020-12-28 08:11:09 +00:00
2017-02-23 20:04:00 +00:00
public List<String[]> getTopPlayers(int _count);
2020-12-28 08:11:09 +00:00
2017-02-09 00:27:20 +00:00
public int getPlayerTime(UUID _playerUUID);
2020-12-28 08:11:09 +00:00
2020-12-28 08:10:40 +00:00
public void close();
2017-02-09 00:27:20 +00:00
}