From 539c48cc859aa7c3ee5619d624976101a280e619 Mon Sep 17 00:00:00 2001 From: Tastybento Date: Wed, 13 Dec 2017 17:27:04 -0800 Subject: [PATCH] Added about command. --- .../commands/island/IslandAboutCommand.java | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/tastybento/bskyblock/commands/island/IslandAboutCommand.java b/src/main/java/us/tastybento/bskyblock/commands/island/IslandAboutCommand.java index aedb789f7..7cb2e17e5 100644 --- a/src/main/java/us/tastybento/bskyblock/commands/island/IslandAboutCommand.java +++ b/src/main/java/us/tastybento/bskyblock/commands/island/IslandAboutCommand.java @@ -1,6 +1,8 @@ package us.tastybento.bskyblock.commands.island; import org.bukkit.command.CommandSender; + +import us.tastybento.bskyblock.BSkyBlock; import us.tastybento.bskyblock.api.commands.CommandArgument; import java.util.Set; @@ -13,7 +15,35 @@ public class IslandAboutCommand extends CommandArgument { @Override public boolean execute(CommandSender sender, String[] args) { - sender.sendMessage("You did /is about successfully!"); + sender.sendMessage("About " + BSkyBlock.getPlugin().getDescription().getName() + " v" + BSkyBlock.getPlugin().getDescription().getVersion() + ":"); + sender.sendMessage("Copyright (c) 2017 - 2018 tastybento, Poslovitch"); + sender.sendMessage("All rights reserved."); + sender.sendMessage(""); + sender.sendMessage("Redistribution and use in source and binary forms, with or without"); + sender.sendMessage("modification, are permitted provided that the following conditions are met:"); + + sender.sendMessage(" * Redistributions of source code must retain the above copyright notice,"); + sender.sendMessage(" this list of conditions and the following disclaimer."); + + sender.sendMessage(" * Redistributions in binary form must reproduce the above copyright"); + sender.sendMessage(" notice, this list of conditions and the following disclaimer in the"); + sender.sendMessage(" documentation and/or other materials provided with the distribution."); + + sender.sendMessage(" * Neither the name of the BSkyBlock team nor the names of its"); + sender.sendMessage(" contributors may be used to endorse or promote products derived from"); + sender.sendMessage(" this software without specific prior written permission."); + + sender.sendMessage("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\""); + sender.sendMessage("AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE"); + sender.sendMessage("IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE"); + sender.sendMessage("ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE"); + sender.sendMessage("LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR"); + sender.sendMessage("CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF"); + sender.sendMessage("SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS"); + sender.sendMessage("INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN"); + sender.sendMessage("CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)"); + sender.sendMessage("ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE"); + sender.sendMessage("POSSIBILITY OF SUCH DAMAGE. "); return false; }