commit 209590a3edad7a47166c1d53278cdac774aeddf0 Author: tastybento Date: Sat Oct 21 11:32:32 2017 -0700 Initial commit diff --git a/Level/plugin.yml b/Level/plugin.yml new file mode 100755 index 0000000..e389d1c --- /dev/null +++ b/Level/plugin.yml @@ -0,0 +1,7 @@ +name: BSkyBlock-Level +main: bskyblock.addin.level.Level +version: 0.1 + +authors: [tastybento] + +depend: [BSkyBlock] diff --git a/Level/pom.xml b/Level/pom.xml new file mode 100644 index 0000000..da19790 --- /dev/null +++ b/Level/pom.xml @@ -0,0 +1,55 @@ + + 4.0.0 + Level + Level + 0.0.1-SNAPSHOT + jar + + UTF-8 + + + src + clean package install + + + . + true + ${basedir} + + *.yml + + + + + + + maven-compiler-plugin + 3.5.1 + + 1.8 + 1.8 + + + + + + + org.bukkit + bukkit + 1.12.2-R0.1-SNAPSHOT + provided + + + us.tastybento + bskyblock + LATEST + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + \ No newline at end of file diff --git a/Level/src/bskyblock/addin/level/Level.java b/Level/src/bskyblock/addin/level/Level.java new file mode 100644 index 0000000..6a5fe19 --- /dev/null +++ b/Level/src/bskyblock/addin/level/Level.java @@ -0,0 +1,48 @@ +package bskyblock.addin.level; + +import java.util.Set; + +import org.bukkit.command.CommandSender; +import org.bukkit.plugin.java.JavaPlugin; + +import us.tastybento.bskyblock.BSkyBlock; +import us.tastybento.bskyblock.api.commands.ArgumentHandler; +import us.tastybento.bskyblock.api.commands.CanUseResp; + +public class Level extends JavaPlugin { + + @Override + public void onEnable(){ + BSkyBlock plugin = BSkyBlock.getPlugin(); + plugin.getIslandCommand().addSubCommand(new ArgumentHandler("island") { + + @Override + public CanUseResp canUse(CommandSender sender) { + return new CanUseResp(true); + } + + @Override + public void execute(CommandSender sender, String[] args) { + sender.sendMessage("Your island level is XXX"); + } + + @Override + public Set tabComplete(CommandSender sender, String[] args) { + return null; + } + + @Override + public String[] usage(CommandSender sender) { + return new String[]{null, "Calculate your island's level"}; + } + }.alias("level")); + + + } + + @Override + public void onDisable(){ + + } + +}