/*
 * Copyright 2015 CrystalCraftMC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Package Declaration
package com.crystalcraftmc.crystalspace.commands;

import com.crystalcraftmc.crystalspace.Space;
import com.crystalcraftmc.crystalspace.handlers.WorldHandler;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

/**
 * Represents "/space about".
 * 
 * @author iffa
 */
public class SpaceAboutCommand extends SpaceCommand {
    /**
     * Constructor of SpaceAboutCommand.
     * 
     * @param plugin CrystalSpace instance
     * @param sender Command sender
     * @param args Command arguments
     */
    public SpaceAboutCommand(Space plugin, CommandSender sender, String[] args) {
        super(plugin, sender, args);
    }

    /**
     * Does the command.
     */
    @Override
    public void command() {
        if (getArgs().length < 2) {
            getSender().sendMessage(ChatColor.GOLD + Space.getPrefix() + " About:");
            getSender().sendMessage(ChatColor.GOLD + "-" + ChatColor.GRAY + " You're running version " + ChatColor.GOLD + getPlugin().getDescription().getVersion());
            getSender().sendMessage(ChatColor.GOLD + "-" + ChatColor.GRAY + " There are currently "+ ChatColor.GOLD + WorldHandler.getSpaceWorlds().size() + ChatColor.GRAY + " space worlds loaded");
        } else {
            getSender().sendMessage(ChatColor.GOLD + "-" + ChatColor.GRAY + " Main developers:");
            getSender().sendMessage(ChatColor.GOLD + "    iffa, kitskub");
            getSender().sendMessage(ChatColor.GOLD + "-" + ChatColor.GRAY + " Other contributors (in no particular order):");
            getSender().sendMessage(ChatColor.GOLD + "    Canis85, BR, SwearWord, HACKhalo2");
        }
    }
    
}

@@ -13,12 +13,34 @@
 ght 
-2015
+(c) 2015, Justin W. Flory,
  Cry
@@ -803,26 +803,35 @@
 %0Aimport 
-org.bukkit
+net.md_5.bungee.api
 .ChatCol
@@ -930,16 +930,35 @@
 or iffa%0A
+ * @author jflory7%0A
  */%0Apubl
@@ -1128,17 +1128,21 @@
  sender 
-C
+the c
 ommand s
@@ -1166,17 +1166,17 @@
 am args 
-C
+c
 ommand a
@@ -1337,16 +1337,42 @@
   * 
-Does the
+Executes %3Ccode%3E/space about%3C/code%3E
  com
@@ -1520,30 +1520,9 @@
 D + 
-Space.getPrefix() + %22 
+%22
 Abou
@@ -1631,16 +1631,36 @@
 sion %22 +
+%0A                   
  ChatCol
@@ -1812,17 +1812,38 @@
 rently %22
-+
+ +%0A                   
  ChatCol
@@ -1929,16 +1929,17 @@
 s loaded
+.
 %22);%0A    
@@ -1953,93 +1953,54 @@
 lse 
-%7B%0A            getSender().sendMessage(ChatColor.GOLD + %22-%22 + ChatColor.GRAY + %22 Main 
+if (getArgs().length %3C 3 && getArgs().equals(%22
 deve
@@ -2009,87 +2009,13 @@
 pers
-:
 %22)
-;%0A            getSender().sendMessage(ChatColor.GOLD + %22    iffa, kitskub%22);
+) %7B
 %0A   
@@ -2093,51 +2093,23 @@
 + %22 
-Other contributors (in no particular order)
+Core Developers
 :%22);
@@ -2171,41 +2171,21 @@
     
-Canis85, BR, SwearWord, HACKhalo2
+jflory7, iffa
 %22);%0A
@@ -2204,11 +2204,6 @@
   %7D%0A
-    %0A
 %7D%0A

Refactor class to provide up-to-date information and make direct reference