From cb68e52102e8661d20b5ef4c7ca9fecabc407a0f Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Fri, 7 Oct 2016 19:46:28 -0400 Subject: [PATCH] added the FlairMe Command to the set I forgot to do the thing, and now I'm doing the thing --- plugin.yml | 4 +++- src/alisolarflare/flairdoors/FlairMe.java | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/plugin.yml b/plugin.yml index a1932dd..5891eea 100644 --- a/plugin.yml +++ b/plugin.yml @@ -10,4 +10,6 @@ commands: setalilink: description: Creates an Ali Link setalilink frequency setFlairDoorColour: - description: Sets the flair door colour mode, when lighting portals \ No newline at end of file + description: Sets the flair door colour mode, when lighting portals + flairme: + description: Activates the Flair Me Command. Ask Ali, she was fucking tired when writing this description \ No newline at end of file diff --git a/src/alisolarflare/flairdoors/FlairMe.java b/src/alisolarflare/flairdoors/FlairMe.java index 969f3eb..789524d 100644 --- a/src/alisolarflare/flairdoors/FlairMe.java +++ b/src/alisolarflare/flairdoors/FlairMe.java @@ -1,5 +1,18 @@ package alisolarflare.flairdoors; -public class FlairMe { +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; + +public class FlairMe implements CommandExecutor{ + + @Override + public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + sender.sendMessage("Flairing..." + sender.getName()); + PortalListener.playersToBeFlaired.add(sender.getName()); + sender.sendMessage("Finished Preparation! Walk through a portal to get your flair"); + + return false; + } }