Files
PlotSquared/PlotSquared/src/com/intellectualcrafters/plot/commands/plugin.java
2014-09-22 13:02:14 +02:00

41 lines
1.3 KiB
Java

/*
* Copyright (c) IntellectualCrafters - 2014.
* You are not allowed to distribute and/or monetize any of our intellectual property.
* IntellectualCrafters is not affiliated with Mojang AB. Minecraft is a trademark of Mojang AB.
*
* >> File = plugin.java
* >> Generated by: Citymonstret at 2014-08-09 01:42
*/
package com.intellectualcrafters.plot.commands;
import com.intellectualcrafters.plot.PlotMain;
import com.intellectualcrafters.plot.PlayerFunctions;
import com.intellectualcrafters.plot.Settings;
import org.bukkit.entity.Player;
import java.util.ArrayList;
public class plugin extends SubCommand {
public plugin() {
super("plugin", "", "Show plugin information", "plugin", "pl", CommandCategory.INFO);
}
@Override
public boolean execute(Player plr, String ... args) {
ArrayList<String> strings = new ArrayList<String>() {
{
add(String.format("&c>> &6PlotSquared (Version: %s)", PlotMain.getMain().getDescription().getVersion()));
add(String.format("&c>> &6Made by Citymonstret and brandonrelph"));
add(String.format("&c>> &6Download at %s", Settings.URL));
}
};
for(String s : strings)
PlayerFunctions.sendMessage(plr, s);
return true;
}
}