mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-10 05:39:19 +01:00
Username change Rsl1122 -> AuroraLS3
This commit is contained in:
parent
ab0f1ec933
commit
94c9dd3f95
@ -30,7 +30,7 @@ import java.util.UUID;
|
||||
* <p>
|
||||
* If a capability is not available, attempting to use the capability might lead to exceptions.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
enum Capability {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import java.util.function.Consumer;
|
||||
* <p>
|
||||
* See {@link Capability} for list of capabilities provided by the current version.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface CapabilityService {
|
||||
|
||||
|
@ -30,7 +30,7 @@ import java.util.regex.Pattern;
|
||||
* eg. "/flyplugin/flying" to avoid collisions with other plugins.
|
||||
* You can also use {@link #getResolver(String)} to check if target already has a resolver.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface ResolverService {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import java.util.function.Supplier;
|
||||
/**
|
||||
* Service for making plugin resources customizable by user or Plan API.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface ResourceService {
|
||||
|
||||
|
@ -34,7 +34,7 @@ import java.util.function.Predicate;
|
||||
* Example: {@code resolverService.registerResolver("/test/", compositeResolver);}
|
||||
* The Resolvers added to CompositeResolver will be given Request with URIPath "/".
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public final class CompositeResolver implements Resolver {
|
||||
|
||||
|
@ -23,7 +23,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Special Resolver that gives responses without user authentication.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface NoAuthResolver extends Resolver {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Interface for resolving requests of Plan webserver.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see NoAuthResolver if resource is always accessible regardless of user.
|
||||
*/
|
||||
public interface Resolver {
|
||||
|
@ -25,7 +25,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Represents a response that will be sent over HTTP.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see MimeType for MIME types that are commonly used.
|
||||
*/
|
||||
public final class Response {
|
||||
|
@ -155,7 +155,7 @@ public class ResponseBuilder {
|
||||
/**
|
||||
* Thrown when {@link ResponseBuilder} is missing some parameters.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public static class InvalidResponseException extends IllegalStateException {
|
||||
public InvalidResponseException(String s) {
|
||||
|
@ -22,7 +22,7 @@ package com.djrapitops.plan.delivery.web.resolver.exception;
|
||||
* Plan will construct bad request error json automatically.
|
||||
* Note that you might need to handle the error page, which is json: {@code {"status": 400, "error": "message"}}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class BadRequestException extends IllegalArgumentException {
|
||||
|
||||
|
@ -21,7 +21,7 @@ package com.djrapitops.plan.delivery.web.resolver.exception;
|
||||
* <p>
|
||||
* Plan will create a "404 Not found" error page automatically.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class NotFoundException extends IllegalArgumentException {
|
||||
public NotFoundException(String message) {
|
||||
|
@ -25,7 +25,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Represents a HTTP request to use with {@link Resolver}.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public final class Request {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Represents URI parameters described with {@code ?param=value¶m2=value2} in the URL.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public final class URIQuery {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import java.nio.charset.StandardCharsets;
|
||||
* <p>
|
||||
* It is assumed that any text based files are encoded in UTF-8.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface WebResource {
|
||||
|
||||
|
@ -21,7 +21,7 @@ package com.djrapitops.plan.extension;
|
||||
* <p>
|
||||
* You can also call the update methods via {@link Caller} manually.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public enum CallEvents {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import java.util.UUID;
|
||||
* <p>
|
||||
* Plan calls the methods in DataExtension based on {@link CallEvents} defined by {@link }
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface Caller {
|
||||
|
||||
|
@ -65,7 +65,7 @@ package com.djrapitops.plan.extension;
|
||||
* - Annotation variable is over 50 characters (Or 150 if description)
|
||||
* - Method name is over 50 characters (Used as an identifier for storage)
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see com.djrapitops.plan.extension.annotation.PluginInfo Required Annotation
|
||||
* @see CallEvents for method call event types.
|
||||
*/
|
||||
|
@ -25,7 +25,7 @@ import java.util.List;
|
||||
* Used for determining in which order elements are placed on a {@link com.djrapitops.plan.extension.annotation.Tab} by
|
||||
* using {@link com.djrapitops.plan.extension.annotation.TabInfo}.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public enum ElementOrder {
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||
* - Register your {@link DataExtension} with {@link ExtensionService#register(DataExtension)}
|
||||
* - Catch a possible IllegalArgumentException in case the DataExtension implementation is invalid.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface ExtensionService {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Enum for determining additional formatter for a value given by a {@link com.djrapitops.plan.extension.annotation.NumberProvider}.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public enum FormatType {
|
||||
|
||||
|
@ -26,7 +26,7 @@ package com.djrapitops.plan.extension;
|
||||
* <p>
|
||||
* This method parameter is used since it is not possible to differentiate String playerName and String groupName.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface Group {
|
||||
|
||||
|
@ -23,7 +23,7 @@ package com.djrapitops.plan.extension;
|
||||
* <p>
|
||||
* Requires Capability#DATA_EXTENSION_NOT_READY_EXCEPTION.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class NotReadyException extends IllegalStateException {
|
||||
|
||||
|
@ -37,7 +37,7 @@ import java.lang.annotation.Target;
|
||||
* {@code @BooleanProvider(condition="example") boolean condition(UUID playerUUID);}
|
||||
* {@code @Conditional("example") @NumberProvider long someValue(UUID playerUUID);}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -27,11 +27,11 @@ import java.lang.annotation.Target;
|
||||
* Condition information is provided with {@link com.djrapitops.plan.extension.annotation.BooleanProvider}.
|
||||
* If {@link com.djrapitops.plan.extension.annotation.BooleanProvider} for the condition is not specified the
|
||||
* method tagged with this annotation will not be called, (Condition is assumed false).
|
||||
*
|
||||
* <p>
|
||||
* Please note that Conditional does not cross method parameter boundaries - (Conditional on a player method does not
|
||||
* take into account conditionals of server).
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -29,7 +29,7 @@ import java.lang.annotation.Target;
|
||||
* <p>
|
||||
* Usage: {@code @DoubleProvider double method(UUID playerUUID)}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -36,7 +36,7 @@ import java.lang.annotation.Target;
|
||||
* <p>
|
||||
* Requires Capability {@code DATA_EXTENSION_GROUPS}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -25,7 +25,7 @@ import java.lang.annotation.*;
|
||||
* Only first 50 characters of the method name are stored.
|
||||
* If you need to change a method name add this class annotation with the old method name.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
|
@ -33,7 +33,7 @@ import java.lang.annotation.Target;
|
||||
* <p>
|
||||
* Usage: {@code @NumberProvider long method(UUID playerUUID)}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -32,7 +32,7 @@ import java.lang.annotation.Target;
|
||||
* The returned value should be between (or one of) 0.0 (0%) and 1.0 (100%).
|
||||
* Other values will be ignored.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -27,7 +27,7 @@ import java.lang.annotation.Target;
|
||||
/**
|
||||
* Class Annotation for informing Plan about a plugin.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see TabOrder to determine preferred tab ordering if you use {@link Tab}s.
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
@ -34,7 +34,7 @@ import java.lang.annotation.Target;
|
||||
* If the value is a player name, provide value for playerName=true.
|
||||
* This will allow linking between pages.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* <p>
|
||||
* If not specified Plan places the item on the default tab.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see TabInfo if you want to determine an icon or element order for a Tab.
|
||||
* @see TabOrder to determine preferred tab ordering if you use Tabs.
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ import java.lang.annotation.*;
|
||||
/**
|
||||
* Class Annotation that allows determining an Icon and {@link ElementOrder} of a tab.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
|
@ -26,7 +26,7 @@ import java.lang.annotation.Target;
|
||||
* <p>
|
||||
* If tab order is not defined alphabetical order is used.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
|
@ -33,7 +33,7 @@ import java.lang.annotation.Target;
|
||||
* <p>
|
||||
* It is recommended to place each table on their own tab with a {@link Tab} annotation on the same method.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
|
@ -33,7 +33,7 @@ import java.util.stream.Collectors;
|
||||
* This class can be used for testing validity of annotation implementations
|
||||
* in your unit tests to avoid runtime errors. {@link ExtensionExtractor#validateAnnotations()}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public final class ExtensionExtractor {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Implementation detail, utility class for handling method annotations.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class MethodAnnotations {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Enum to determine what color to use for some element.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public enum Color {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Enum to determine font-awesome icon family.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public enum Family {
|
||||
SOLID,
|
||||
|
@ -21,7 +21,7 @@ package com.djrapitops.plan.extension.icon;
|
||||
* <p>
|
||||
* See https://fontawesome.com/icons (select 'free')) for icons and their {@link Family}.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class Icon {
|
||||
|
||||
|
@ -41,7 +41,7 @@ import java.util.Optional;
|
||||
* <p>
|
||||
* If a table has no columns or rows, it is ignored.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see com.djrapitops.plan.extension.annotation.TableProvider for associated annotation.
|
||||
*/
|
||||
public final class Table {
|
||||
|
@ -26,7 +26,7 @@ import java.util.UUID;
|
||||
* This exists so that SQL does not necessarily need to be written.
|
||||
* Obtain an instance from {@link QueryService}.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface CommonQueries {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import java.util.function.Consumer;
|
||||
* <p>
|
||||
* Requires Capability QUERY_API
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface QueryService {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import java.util.function.Supplier;
|
||||
* <p>
|
||||
* Requires Capability SETTINGS_API
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface SettingsService {
|
||||
|
||||
|
@ -25,7 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
/**
|
||||
* Tests for {@link URIPath} behavior.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
class URIPathTest {
|
||||
|
||||
|
@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
* <p>
|
||||
* This Test class contains only INVALID implementations of the DataExtension API.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
class ExtensionExtractorTest {
|
||||
|
||||
|
@ -29,7 +29,7 @@ import javax.inject.Singleton;
|
||||
/**
|
||||
* ServerShutdownSave implementation for Bukkit based servers.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class BukkitServerShutdownSave extends ServerShutdownSave {
|
||||
|
@ -38,7 +38,7 @@ import java.util.logging.Logger;
|
||||
/**
|
||||
* Main class for Bukkit that manages the plugin.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class Plan extends BukkitPlugin implements PlanPlugin {
|
||||
|
||||
|
@ -19,11 +19,7 @@ package com.djrapitops.plan;
|
||||
import com.djrapitops.plan.addons.placeholderapi.BukkitPlaceholderRegistrar;
|
||||
import com.djrapitops.plan.commands.PlanCommand;
|
||||
import com.djrapitops.plan.gathering.ServerShutdownSave;
|
||||
import com.djrapitops.plan.modules.APFModule;
|
||||
import com.djrapitops.plan.modules.FiltersModule;
|
||||
import com.djrapitops.plan.modules.PlaceholderModule;
|
||||
import com.djrapitops.plan.modules.ServerCommandModule;
|
||||
import com.djrapitops.plan.modules.SystemObjectProvidingModule;
|
||||
import com.djrapitops.plan.modules.*;
|
||||
import com.djrapitops.plan.modules.bukkit.BukkitPlanModule;
|
||||
import com.djrapitops.plan.modules.bukkit.BukkitServerPropertiesModule;
|
||||
import com.djrapitops.plan.modules.bukkit.BukkitSuperClassBindingModule;
|
||||
@ -36,7 +32,7 @@ import javax.inject.Singleton;
|
||||
/**
|
||||
* Dagger Component that constructs the plugin systems running on Bukkit.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
@Component(modules = {
|
||||
|
@ -67,7 +67,7 @@ public class PlanPlaceholderExtension extends PlaceholderExpansion {
|
||||
|
||||
@Override
|
||||
public String getAuthor() {
|
||||
return "Rsl1122";
|
||||
return "AuroraLS3";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -31,7 +31,7 @@ import org.bukkit.event.HandlerList;
|
||||
* {@code event.isPlanSystemEnabled()} can be called to determine if the enable was successful.
|
||||
* It is not guaranteed that this event is called when the plugin fails to enable properly.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlanBukkitEnableEvent extends Event {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
@ -38,7 +38,7 @@ import java.util.UUID;
|
||||
* <p>
|
||||
* Additional Listener calls in PlayerOnlineListener to avoid having HIGHEST priority listeners.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see PlayerOnlineListener
|
||||
*/
|
||||
public class BukkitAFKListener implements Listener {
|
||||
|
@ -36,7 +36,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Event Listener for AsyncPlayerChatEvents.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class ChatListener implements Listener {
|
||||
|
||||
|
@ -42,7 +42,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Event Listener for EntityDeathEvents.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class DeathEventListener implements Listener {
|
||||
|
||||
|
@ -38,7 +38,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Event Listener for PlayerGameModeChangeEvents.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class GameModeChangeListener implements Listener {
|
||||
|
||||
|
@ -53,7 +53,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Event Listener for PlayerJoin, PlayerQuit and PlayerKickEvents.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlayerOnlineListener implements Listener {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import org.bukkit.Server;
|
||||
/**
|
||||
* ServerProperties for Bukkit.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class BukkitServerProperties extends ServerProperties {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import dagger.multibindings.IntoSet;
|
||||
/**
|
||||
* Dagger module for binding Plan instance.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Module
|
||||
public interface BukkitPlanModule {
|
||||
|
@ -27,7 +27,7 @@ import javax.inject.Singleton;
|
||||
/**
|
||||
* Dagger module for Bukkit ServerProperties.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Module
|
||||
public class BukkitServerPropertiesModule {
|
||||
|
@ -35,7 +35,7 @@ import org.bukkit.World;
|
||||
/**
|
||||
* Module for binding Bukkit specific classes as interface implementations.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Module
|
||||
public interface BukkitSuperClassBindingModule {
|
||||
|
@ -27,7 +27,7 @@ import javax.inject.Singleton;
|
||||
/**
|
||||
* Bukkit Database system that initializes SQLite and MySQL database objects.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class BukkitDBSystem extends DBSystem {
|
||||
|
@ -33,7 +33,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
/**
|
||||
* Test for Bukkit PlanSystem.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
class BukkitSystemTest {
|
||||
|
||||
|
@ -37,7 +37,7 @@ import static org.mockito.Mockito.*;
|
||||
/**
|
||||
* Test for {@link BukkitAFKListener}
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
class BukkitAFKListenerTest {
|
||||
|
@ -26,7 +26,7 @@ import java.nio.file.Path;
|
||||
/**
|
||||
* Test utility for creating a dagger PlanComponent using a mocked Plan.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class BukkitMockComponent {
|
||||
|
||||
|
@ -47,7 +47,7 @@ import static org.mockito.Mockito.doReturn;
|
||||
/**
|
||||
* Mocking Utility for Bukkit version of Plan.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlanBukkitMocker extends Mocker {
|
||||
|
||||
|
@ -31,7 +31,7 @@ import java.io.InputStream;
|
||||
/**
|
||||
* Bungee Main class.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlanBungee extends BungeePlugin implements PlanPlugin {
|
||||
|
||||
|
@ -17,11 +17,7 @@
|
||||
package com.djrapitops.plan;
|
||||
|
||||
import com.djrapitops.plan.commands.PlanCommand;
|
||||
import com.djrapitops.plan.modules.APFModule;
|
||||
import com.djrapitops.plan.modules.FiltersModule;
|
||||
import com.djrapitops.plan.modules.PlaceholderModule;
|
||||
import com.djrapitops.plan.modules.ProxySuperClassBindingModule;
|
||||
import com.djrapitops.plan.modules.SystemObjectProvidingModule;
|
||||
import com.djrapitops.plan.modules.*;
|
||||
import com.djrapitops.plan.modules.bungee.*;
|
||||
import dagger.BindsInstance;
|
||||
import dagger.Component;
|
||||
@ -31,7 +27,7 @@ import javax.inject.Singleton;
|
||||
/**
|
||||
* Dagger Component that constructs the plugin systems running on Bungee.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
@Component(modules = {
|
||||
|
@ -29,7 +29,7 @@ import net.md_5.bungee.api.plugin.Event;
|
||||
* {@code event.isPlanSystemEnabled()} can be called to determine if the enable was successful.
|
||||
* It is not guaranteed that this event is called when the plugin fails to enable properly.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlanBungeeEnableEvent extends Event {
|
||||
|
||||
|
@ -50,7 +50,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Player Join listener for Bungee.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlayerOnlineListener implements Listener {
|
||||
|
||||
|
@ -32,7 +32,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Manages Server information on the Bungee instance.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class BungeeServerInfo extends ServerInfo {
|
||||
|
@ -25,7 +25,7 @@ import net.md_5.bungee.api.ProxyServer;
|
||||
* <p>
|
||||
* Supports RedisBungee for Players online getting.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class BungeeServerProperties extends ServerProperties {
|
||||
|
||||
|
@ -21,7 +21,7 @@ import com.djrapitops.plugin.api.Check;
|
||||
/**
|
||||
* Utility class for checking if RedisBungee API is available.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class RedisCheck {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.function.IntSupplier;
|
||||
/**
|
||||
* Players online supplier when using RedisBungee.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class RedisPlayersOnlineSupplier implements IntSupplier {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import dagger.Module;
|
||||
/**
|
||||
* Dagger module for binding PlanBungee instance.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Module
|
||||
public interface BungeePlanModule {
|
||||
|
@ -28,7 +28,7 @@ import javax.inject.Singleton;
|
||||
/**
|
||||
* Dagger module for Bungee ServerProperties.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Module
|
||||
public class BungeeServerPropertiesModule {
|
||||
|
@ -28,7 +28,7 @@ import dagger.Module;
|
||||
/**
|
||||
* Module for binding Bungee specific classes as interface implementations.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Module
|
||||
public interface BungeeSuperClassBindingModule {
|
||||
|
@ -38,7 +38,7 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
/**
|
||||
* Test for Bungee PlanSystem.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
class BungeeSystemTest {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import java.nio.file.Path;
|
||||
/**
|
||||
* Test utility for creating a dagger PlanComponent using a mocked PlanBungee.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class BungeeMockComponent {
|
||||
|
||||
|
@ -46,7 +46,7 @@ import static org.mockito.Mockito.when;
|
||||
/**
|
||||
* Mocking Utility for Bungee version of Plan (PlanBungee).
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class PlanBungeeMocker extends Mocker {
|
||||
|
||||
@ -115,7 +115,7 @@ public class PlanBungeeMocker extends Mocker {
|
||||
PlanBungeeMocker withPluginDescription() {
|
||||
File pluginYml = getFile("/bungee.yml");
|
||||
HashSet<String> empty = new HashSet<>();
|
||||
PluginDescription pluginDescription = new PluginDescription("Plan", "", "9.9.9", "Rsl1122", empty, empty, pluginYml, "");
|
||||
PluginDescription pluginDescription = new PluginDescription("Plan", "", "9.9.9", "AuroraLS3", empty, empty, pluginYml, "");
|
||||
when(planMock.getDescription()).thenReturn(pluginDescription);
|
||||
return this;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ package com.djrapitops.plan;
|
||||
/**
|
||||
* Identifiers for different Debug channels.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class DebugChannels {
|
||||
|
||||
|
@ -26,7 +26,7 @@ import java.io.InputStream;
|
||||
/**
|
||||
* Abstraction interface for both Plan and PlanBungee.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface PlanPlugin extends IPlugin {
|
||||
|
||||
|
@ -52,7 +52,7 @@ import javax.inject.Singleton;
|
||||
* <p>
|
||||
* This is an abstraction layer on top of Plugin instances so that tests can be run with less mocks.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class PlanSystem implements SubSystem {
|
||||
|
@ -21,7 +21,7 @@ import com.djrapitops.plan.exceptions.EnableException;
|
||||
/**
|
||||
* Represents a system that can be enabled and disabled.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface SubSystem {
|
||||
|
||||
|
@ -27,7 +27,7 @@ import java.util.Set;
|
||||
* TaskSystem that registers tasks for the plugin.
|
||||
* See platform specific [Platform]TaskModule classes for what Tasks are registered.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class TaskSystem implements SubSystem {
|
||||
|
@ -41,7 +41,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* PlanAPI extension for all implementations.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated Plan API v4 has been deprecated, use the APIv5 instead (https://github.com/plan-player-analytics/Plan/wiki/APIv5).
|
||||
*/
|
||||
@Singleton
|
||||
|
@ -34,7 +34,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Interface for PlanAPI methods.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated Plan API v4 has been deprecated, use the APIv5 instead (https://github.com/plan-player-analytics/Plan/wiki/APIv5).
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -28,8 +28,8 @@ import java.util.Optional;
|
||||
* <p>
|
||||
* The Keys might change in the future, but the Optional API should help dealing with those cases.
|
||||
*
|
||||
* @author AuroraLS3
|
||||
* @deprecated Plan API v4 has been deprecated, use the APIv5 instead (https://github.com/plan-player-analytics/Plan/wiki/APIv5).
|
||||
* @author Rsl1122
|
||||
*/
|
||||
@Deprecated
|
||||
public class PlayerContainer {
|
||||
|
@ -28,7 +28,7 @@ import java.util.Optional;
|
||||
* <p>
|
||||
* The Keys might change in the future, but the Optional API should help dealing with those cases.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated Plan API v4 has been deprecated, use the APIv5 instead (https://github.com/plan-player-analytics/Plan/wiki/APIv5).
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -23,7 +23,7 @@ import java.util.function.Consumer;
|
||||
* <p>
|
||||
* Only one instance exists per runtime in order to notify others when the plugin enables.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class CapabilitySvc implements CapabilityService {
|
||||
|
||||
|
@ -33,7 +33,7 @@ import java.util.stream.Collectors;
|
||||
/**
|
||||
* In charge of holding tab completion data for commands, as tab completion is done on server thread.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class TabCompleteCache implements SubSystem {
|
||||
|
@ -43,7 +43,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Implementation of commands that send a link to the command sender.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
@Singleton
|
||||
public class LinkCommands {
|
||||
|
@ -27,7 +27,7 @@ import java.util.Optional;
|
||||
/**
|
||||
* Command argument mutation and access utility.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public class Arguments {
|
||||
|
||||
|
@ -24,7 +24,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Container used to hold data for Server page.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see TableContainer
|
||||
* @see InspectContainer
|
||||
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||
|
@ -25,7 +25,7 @@ import java.util.TreeMap;
|
||||
/**
|
||||
* Container used to hold data for Player page.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @see TableContainer
|
||||
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||
*/
|
||||
|
@ -27,7 +27,7 @@ import java.util.List;
|
||||
/**
|
||||
* Container used for creating Html tables.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -22,7 +22,7 @@ import java.util.UUID;
|
||||
/**
|
||||
* Interface for PluginData objects that affect Ban state of players.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -19,7 +19,7 @@ package com.djrapitops.plan.data.plugin;
|
||||
/**
|
||||
* Enum class for PluginData to estimate the required width of the contained items.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -32,7 +32,7 @@ import java.util.UUID;
|
||||
* API-section of documentation has examples on the usage of this class and how
|
||||
* to register objects extending this class.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated PluginData API has been deprecated - see https://github.com/plan-player-analytics/Plan/wiki/APIv5---DataExtension-API for new API.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -21,7 +21,7 @@ import com.djrapitops.plan.delivery.domain.container.DynamicDataContainer;
|
||||
/**
|
||||
* Container used for analysis.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
* @deprecated AnalysisContainer is no longer used.
|
||||
*/
|
||||
@Deprecated
|
||||
|
@ -19,7 +19,7 @@ package com.djrapitops.plan.delivery.domain;
|
||||
/**
|
||||
* Interface for objects that have a epoch ms date.
|
||||
*
|
||||
* @author Rsl1122
|
||||
* @author AuroraLS3
|
||||
*/
|
||||
public interface DateHolder {
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user