From 6b95be4ca51cad3599d034ea1376b96430c65986 Mon Sep 17 00:00:00 2001 From: Eric Stokes Date: Sat, 22 Oct 2011 11:01:05 -0600 Subject: [PATCH] Add new interface, and a new paginated command, both shells --- .../commands/PaginatedCommand.java | 29 +++++++++++++++++++ .../configuration/MVConfigProperty.java | 18 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 src/main/java/com/onarandombox/MultiverseCore/commands/PaginatedCommand.java create mode 100644 src/main/java/com/onarandombox/MultiverseCore/configuration/MVConfigProperty.java diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/PaginatedCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/PaginatedCommand.java new file mode 100644 index 00000000..b614fc20 --- /dev/null +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/PaginatedCommand.java @@ -0,0 +1,29 @@ +/****************************************************************************** + * Multiverse 2 Copyright (c) the Multiverse Team 2011. * + * Multiverse 2 is licensed under the BSD License. * + * For more information please check the README.md file included * + * with this project. * + ******************************************************************************/ + +package com.onarandombox.MultiverseCore.commands; + +import com.onarandombox.MultiverseCore.MultiverseCore; +import org.bukkit.command.CommandSender; + +/** + * Multiverse 2 + * + * @author fernferret + */ +public abstract class PaginatedCommand extends MultiverseCommand { + + private int linesToShow = 9; + + public PaginatedCommand(MultiverseCore plugin) { + super(plugin); + } + + protected void displayPage(CommandSender s, int pageNum, String filter) { + + } +} diff --git a/src/main/java/com/onarandombox/MultiverseCore/configuration/MVConfigProperty.java b/src/main/java/com/onarandombox/MultiverseCore/configuration/MVConfigProperty.java new file mode 100644 index 00000000..99d598eb --- /dev/null +++ b/src/main/java/com/onarandombox/MultiverseCore/configuration/MVConfigProperty.java @@ -0,0 +1,18 @@ +/****************************************************************************** + * Multiverse 2 Copyright (c) the Multiverse Team 2011. * + * Multiverse 2 is licensed under the BSD License. * + * For more information please check the README.md file included * + * with this project. * + ******************************************************************************/ + +package com.onarandombox.MultiverseCore.configuration; + +public interface MVConfigProperty { + /** + * Gets the name of this property. + * + * @return The name of this property. + */ + public String getName(); + +}