From db5c24bc26e4d6a34ecd1ab9118f0f098eee3581 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 11:49:01 -0600 Subject: death event works, working on commands --- .../Resurrection/commands/CommandAbout.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/net/brysonsteck/Resurrection/commands/CommandAbout.java (limited to 'src/net/brysonsteck/Resurrection/commands') diff --git a/src/net/brysonsteck/Resurrection/commands/CommandAbout.java b/src/net/brysonsteck/Resurrection/commands/CommandAbout.java new file mode 100644 index 0000000..ac95f20 --- /dev/null +++ b/src/net/brysonsteck/Resurrection/commands/CommandAbout.java @@ -0,0 +1,20 @@ +package net.brysonsteck.Resurrection.commands; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; + +public class CommandAbout implements CommandExecutor { + @Override + public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) { + String aboutMessage = "This is the about message for Resurrection."; + if (commandSender instanceof Player) { + Player p = (Player) commandSender; + p.sendMessage(aboutMessage); + } else { + System.out.println(aboutMessage); + } + return true; + } +} -- cgit v1.2.3