Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.TimewalkerZ.Spongebob;
- import java.util.logging.Logger;
- import org.bukkit.ChatColor;
- import org.bukkit.Material;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Spongebob extends JavaPlugin{
- public final Logger logger = Logger.getLogger("Minecraft");
- public static Spongebob plugin;
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " Has been Disabled!");
- }
- @Override
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has been Enabled!");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
- int prog = 0;
- Player player = (Player) sender;
- if(commandLabel.equalsIgnoreCase("startsong")) {
- if(prog == 0) {
- player.sendMessage(ChatColor.GREEN + "Are you ready, kids?");
- prog = prog + 1;
- }
- else {
- player.sendMessage(ChatColor.RED + "You have started the song already! Do /stopsong to reset the song.");
- }
- return false;
- }
- else if(commandLabel.equalsIgnoreCase("ayeayecaptain")) {
- if(prog == 0) {
- player.sendMessage(ChatColor.RED + "Do /startsong to begin your song!");
- }
- else if(prog == 1) {
- player.sendMessage(ChatColor.AQUA + "Aye, aye, captain!");
- player.sendMessage(ChatColor.GREEN + "I can't hear you!");
- prog = prog + 1;
- }
- else if(prog == 2) {
- player.sendMessage(ChatColor.AQUA + "Aye, aye, captain!");
- player.sendMessage(ChatColor.GREEN + "Ooooooooooh");
- prog = prog + 1;
- player.sendMessage(ChatColor.YELLOW + "Who lives in a pineapple under the sea?");
- }
- else {
- player.sendMessage(ChatColor.RED + "You are past this part! Do /stopsong to restart the song.");
- }
- return false;
- }
- else if(commandLabel.equalsIgnoreCase("spongebobsquarepants")) {
- if(prog<3 && prog>0) {
- player.sendMessage(ChatColor.RED + "You haven't reach this part yet! Do /stopsong to restart the song.");
- }
- else if(prog == 0) {
- player.sendMessage(ChatColor.RED + "Do /startsong to begin your song!");
- }
- else if(prog == 3) {
- player.sendMessage(ChatColor.GOLD + "SpongeBob SquarePants!");
- player.sendMessage(ChatColor.YELLOW + "Absorbent and yellow and porous is he!");
- prog = prog + 1;
- }
- else if(prog == 4) {
- player.sendMessage(ChatColor.GOLD + "SpongeBob SquarePants!");
- player.sendMessage(ChatColor.YELLOW + "If nautical nonsense be something you wish.");
- prog = prog + 1;
- }
- else if(prog == 5) {
- player.sendMessage(ChatColor.GOLD + "SpongeBob SquarePants!");
- player.sendMessage(ChatColor.YELLOW + "Then drop on the deck and you flop like a fish");
- prog = prog + 1;
- }
- else if(prog == 6) {
- player.sendMessage(ChatColor.GOLD + "SpongeBob SquarePants!");
- player.sendMessage(ChatColor.YELLOW + "Ready?");
- player.sendMessage(ChatColor.YELLOW + "SpongeBob SquarePants,");
- player.sendMessage(ChatColor.YELLOW + "SpongeBob SquarePants,");
- player.sendMessage(ChatColor.YELLOW + "SpongeBob SquarePants!");
- player.sendMessage(ChatColor.YELLOW + "HA HA HA HA HA HA HA HA");
- prog = prog - prog;
- }
- return false;
- }
- else if(commandLabel.equalsIgnoreCase("stopsong")) {
- prog = prog - prog;
- player.sendMessage(ChatColor.RED + "Song Resetted! Do /startsong to start.");
- return false;
- }
- else if(commandLabel.equalsIgnoreCase("spongehelp")) {
- player.sendMessage(ChatColor.GOLD + "Spongebob v1.0 by TimewalkerZ");
- player.sendMessage(ChatColor.GOLD + "/ayeayecaptain - Response");
- player.sendMessage(ChatColor.GOLD + "/spongebobsquarepants - Response");
- player.sendMessage(ChatColor.GOLD + "/spongehelp - Display this page");
- player.sendMessage(ChatColor.GOLD + "/startsong - Begin the song");
- player.sendMessage(ChatColor.GOLD + "/stopsong - Stop the song");
- return false;
- }
- else {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement