premium logic finished

This commit is contained in:
ajgeiss0702
2021-07-28 14:25:05 -07:00
parent a88a142348
commit 15fd7f61ad
26 changed files with 267 additions and 91 deletions
@@ -3,8 +3,6 @@ package us.ajg0702.queue.api;
import us.ajg0702.queue.api.commands.IBaseCommand;
import us.ajg0702.queue.api.commands.ICommandSender;
import us.ajg0702.queue.api.players.AdaptedPlayer;
import us.ajg0702.queue.api.players.QueuePlayer;
import us.ajg0702.queue.api.queues.QueueServer;
import java.util.List;
@@ -34,6 +32,14 @@ public interface PlatformMethods {
List<String> getServerNames();
String getImplementationName();
List<IBaseCommand> getCommands();
/**
* Checks if a plugin is installed
* @param pluginName The name of the plugin to check for (case in-sensitive)
* @return if the plugin is on the server
*/
boolean hasPlugin(String pluginName);
}
@@ -6,6 +6,7 @@ import org.jetbrains.annotations.NotNull;
import us.ajg0702.queue.api.server.AdaptedServer;
import us.ajg0702.queue.api.util.Handle;
import java.util.List;
import java.util.UUID;
/**
@@ -70,4 +71,6 @@ public interface AdaptedPlayer extends Handle, Audience {
* @return the player's username
*/
String getName();
List<String> getPermissions();
}
@@ -65,7 +65,7 @@ public interface QueuePlayer {
/**
* Gets the max number of seconds this player is allowed to be offline before getting removed from the queue.
* @return
* @return the max number of seconds this player can be offline before being removed from the queue
*/
int getMaxOfflineTime();
}