diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-08-25 00:23:03 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-08-25 00:23:03 -0600 |
commit | 90bf30acfe869e17cf4209465f67cd70919c63b0 (patch) | |
tree | 099300dd7eaee5b30c8c0c7bee1ff3843150345e /src/net/brysonsteck/Resurrection/commands/CommandSource.java | |
parent | 9764af18a7bd1e9c9564993bccf7826e565ec7c7 (diff) | |
download | resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar.gz resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar.bz2 |
did some cleanup for transtioning out of beta
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands/CommandSource.java')
-rw-r--r-- | src/net/brysonsteck/Resurrection/commands/CommandSource.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandSource.java b/src/net/brysonsteck/Resurrection/commands/CommandSource.java new file mode 100644 index 0000000..c36fbf2 --- /dev/null +++ b/src/net/brysonsteck/Resurrection/commands/CommandSource.java @@ -0,0 +1,32 @@ +package net.brysonsteck.Resurrection.commands; + +import net.brysonsteck.Resurrection.Resurrection; +import org.bukkit.ChatColor; +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; +import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.scheduler.BukkitRunnable; + +public class CommandSource implements CommandExecutor { + + @Override + public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) { + if (commandSender instanceof Player) { + commandSender.sendMessage(ChatColor.AQUA + "Resurrection is FREE AND OPEN SOURCE under the"); + commandSender.sendMessage(ChatColor.AQUA + "GNU Affero General Public License v3.0 via GitHub."); + commandSender.sendMessage(ChatColor.AQUA + "You can view the repository at https://github.com/brysonsteck/resurrection"); + commandSender.sendMessage(ChatColor.AQUA + "and the license at https://github.com/brysonsteck/resurrection/blob/master/LICENSE"); + + return true; + } else { + System.out.println("[Resurrection] Resurrection is FREE AND OPEN SOURCE under the"); + System.out.println("[Resurrection] GNU Affero General Public License v3.0 via GitHub."); + System.out.println("[Resurrection] You can view the repository at https://github.com/brysonsteck/resurrection"); + System.out.println("[Resurrection] and the license at https://github.com/brysonsteck/resurrection/blob/master/LICENSE"); + + return true; + } + } +} |