aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 11:49:01 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 11:49:01 -0600
commitdb5c24bc26e4d6a34ecd1ab9118f0f098eee3581 (patch)
treebfd1fa99cab5e90c5cd3e4555dc06d0a82164fe1 /src/net/brysonsteck/Resurrection/commands
parenta6193c66185c069db9a8f9f7a7aca570ae55994b (diff)
downloadresurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar
resurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar.gz
resurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar.bz2
death event works, working on commands
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands')
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandAbout.java20
1 files changed, 20 insertions, 0 deletions
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;
+ }
+}