From c07655b6da3c77375f9b327faa75236aed6930f0 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Fri, 14 Aug 2015 16:29:19 +0800 Subject: [PATCH] modify annotation... Signed-off-by: j502647092 --- .../citycraft/SimpleEssential/SimpleEssential.java | 4 +++- .../SimpleEssential/command/CommandBack.java | 8 +++++--- .../SimpleEssential/command/CommandHome.java | 10 +++++++--- .../SimpleEssential/command/CommandSetHome.java | 13 +++++++------ .../SimpleEssential/command/CommandTop.java | 10 +++++++--- .../SimpleEssential/command/CommandTpa.java | 10 +++++++--- .../SimpleEssential/command/CommandTpaccept.java | 10 +++++++--- .../SimpleEssential/command/CommandTpdeny.java | 13 +++++++------ .../SimpleEssential/command/CommandTphere.java | 10 +++++++--- .../command/SimpleEssentialCommand.java | 5 +++-- .../listen/PlayerLocationListen.java | 4 +++- .../SimpleEssential/teleport/TeleportInfo.java | 4 +++- .../SimpleEssential/teleport/TeleportType.java | 4 +++- .../citycraft/SimpleEssential/utils/EffectUtil.java | 4 +++- 14 files changed, 72 insertions(+), 37 deletions(-) diff --git a/src/cn/citycraft/SimpleEssential/SimpleEssential.java b/src/cn/citycraft/SimpleEssential/SimpleEssential.java index 873649b..a03db2a 100644 --- a/src/cn/citycraft/SimpleEssential/SimpleEssential.java +++ b/src/cn/citycraft/SimpleEssential/SimpleEssential.java @@ -29,7 +29,9 @@ import cn.citycraft.SimpleEssential.teleport.TeleportControl; import cn.citycraft.SimpleEssential.utils.VersionChecker; /** - * @author 蒋天蓓 2015年8月11日下午3:29:32 TODO + * 简单基础插件 + * + * @author 蒋天蓓 2015年8月11日下午3:29:32 */ public class SimpleEssential extends JavaPlugin { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandBack.java b/src/cn/citycraft/SimpleEssential/command/CommandBack.java index a6e2195..9f33ea0 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandBack.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandBack.java @@ -10,7 +10,7 @@ import org.bukkit.entity.Player; import cn.citycraft.SimpleEssential.SimpleEssential; /** - * @author 蒋天蓓 2015年8月12日下午2:04:05 TODO + * @author 蒋天蓓 2015年8月12日下午2:04:05 */ public class CommandBack extends SimpleEssentialCommand { SimpleEssential plugin; @@ -22,9 +22,11 @@ public class CommandBack extends SimpleEssentialCommand { super("back", "seback"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public void execute(CommandSender sender, String label, String[] args) throws CommandException { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandHome.java b/src/cn/citycraft/SimpleEssential/command/CommandHome.java index 71ec0f7..edb334c 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandHome.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandHome.java @@ -12,7 +12,9 @@ import cn.citycraft.SimpleEssential.SimpleEssential; import cn.citycraft.SimpleEssential.config.Language; /** - * @author 蒋天蓓 2015年8月12日下午2:04:05 TODO + * 传送回家的命令 + * + * @author 蒋天蓓 2015年8月12日下午2:04:05 */ public class CommandHome extends SimpleEssentialCommand { SimpleEssential plugin; @@ -24,9 +26,11 @@ public class CommandHome extends SimpleEssentialCommand { super("home", "eshome"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public void execute(CommandSender sender, String label, String[] args) throws CommandException { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandSetHome.java b/src/cn/citycraft/SimpleEssential/command/CommandSetHome.java index adedfc1..f211828 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandSetHome.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandSetHome.java @@ -13,21 +13,22 @@ import cn.citycraft.SimpleEssential.SimpleEssential; import cn.citycraft.SimpleEssential.config.Language; /** - * @author 蒋天蓓 2015年8月12日下午2:04:05 TODO + * 设置家的命令 + * + * @author 蒋天蓓 2015年8月12日下午2:04:05 */ public class CommandSetHome extends SimpleEssentialCommand { SimpleEssential plugin; - /** - * @param name - */ public CommandSetHome(SimpleEssential main) { super("sethome", "essethome"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public void execute(CommandSender sender, String label, String[] args) throws CommandException { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandTop.java b/src/cn/citycraft/SimpleEssential/command/CommandTop.java index c42b33b..2b92d35 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandTop.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandTop.java @@ -12,9 +12,11 @@ import cn.citycraft.SimpleEssential.SimpleEssential; import cn.citycraft.SimpleEssential.config.Language; /** + * 传送到顶部命令 + * * @author 蒋天蓓 * 2015年8月12日下午2:04:05 - * TODO + * */ public class CommandTop extends SimpleEssentialCommand { SimpleEssential plugin; @@ -26,9 +28,11 @@ public class CommandTop extends SimpleEssentialCommand { super("top", "estop"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public String getPossibleArguments() { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandTpa.java b/src/cn/citycraft/SimpleEssential/command/CommandTpa.java index d162a75..8e61f34 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandTpa.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandTpa.java @@ -13,9 +13,11 @@ import cn.citycraft.SimpleEssential.config.Language; import cn.citycraft.SimpleEssential.teleport.TeleportType; /** + * 玩家传送命令 + * * @author 蒋天蓓 * 2015年8月12日下午2:04:05 - * TODO + * */ public class CommandTpa extends SimpleEssentialCommand { SimpleEssential plugin; @@ -27,9 +29,11 @@ public class CommandTpa extends SimpleEssentialCommand { super("tpa"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public String getPossibleArguments() { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandTpaccept.java b/src/cn/citycraft/SimpleEssential/command/CommandTpaccept.java index 9692fa2..932177c 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandTpaccept.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandTpaccept.java @@ -10,9 +10,11 @@ import org.bukkit.entity.Player; import cn.citycraft.SimpleEssential.SimpleEssential; /** + * 接受传送命令 + * * @author 蒋天蓓 * 2015年8月12日下午2:04:05 - * TODO + * */ public class CommandTpaccept extends SimpleEssentialCommand { SimpleEssential plugin; @@ -24,9 +26,11 @@ public class CommandTpaccept extends SimpleEssentialCommand { super("tpaccept", "tpok"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public String getPossibleArguments() { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandTpdeny.java b/src/cn/citycraft/SimpleEssential/command/CommandTpdeny.java index e269e4a..1cba3d4 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandTpdeny.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandTpdeny.java @@ -10,23 +10,24 @@ import org.bukkit.entity.Player; import cn.citycraft.SimpleEssential.SimpleEssential; /** + * 拒绝传送命令 + * * @author 蒋天蓓 * 2015年8月12日下午2:04:05 - * TODO + * */ public class CommandTpdeny extends SimpleEssentialCommand { SimpleEssential plugin; - /** - * @param name - */ public CommandTpdeny(SimpleEssential main) { super("tpdeny", "tpno"); this.plugin = main; } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public String getPossibleArguments() { diff --git a/src/cn/citycraft/SimpleEssential/command/CommandTphere.java b/src/cn/citycraft/SimpleEssential/command/CommandTphere.java index 45202c4..8441cc3 100644 --- a/src/cn/citycraft/SimpleEssential/command/CommandTphere.java +++ b/src/cn/citycraft/SimpleEssential/command/CommandTphere.java @@ -13,7 +13,9 @@ import cn.citycraft.SimpleEssential.config.Language; import cn.citycraft.SimpleEssential.teleport.TeleportType; /** - * @author 蒋天蓓 2015年8月12日下午2:04:05 TODO + * 传送到玩家命令 + * + * @author 蒋天蓓 2015年8月12日下午2:04:05 */ public class CommandTphere extends SimpleEssentialCommand { SimpleEssential plugin; @@ -38,9 +40,11 @@ public class CommandTphere extends SimpleEssentialCommand { Language.getMessage("Teleport.tpdeny") }); } - + @Override - public boolean isOnlyPlayerExecutable() {return true;}; + public boolean isOnlyPlayerExecutable() { + return true; + }; @Override public int getMinimumArguments() { diff --git a/src/cn/citycraft/SimpleEssential/command/SimpleEssentialCommand.java b/src/cn/citycraft/SimpleEssential/command/SimpleEssentialCommand.java index 7be18bf..931bce2 100644 --- a/src/cn/citycraft/SimpleEssential/command/SimpleEssentialCommand.java +++ b/src/cn/citycraft/SimpleEssential/command/SimpleEssentialCommand.java @@ -7,9 +7,10 @@ import org.bukkit.command.CommandException; import org.bukkit.command.CommandSender; /** + * 基础命令类 + * * @author 蒋天蓓 * 2015年8月12日下午12:49:34 - * TODO */ public abstract class SimpleEssentialCommand { private String name; @@ -93,7 +94,7 @@ public abstract class SimpleEssentialCommand { * - 命令异常 */ public abstract void execute(CommandSender sender, String label, String[] args) throws CommandException; - + /** * 是否只有玩家才能执行此命令 */ diff --git a/src/cn/citycraft/SimpleEssential/listen/PlayerLocationListen.java b/src/cn/citycraft/SimpleEssential/listen/PlayerLocationListen.java index 1dfbb77..09ae45b 100644 --- a/src/cn/citycraft/SimpleEssential/listen/PlayerLocationListen.java +++ b/src/cn/citycraft/SimpleEssential/listen/PlayerLocationListen.java @@ -13,9 +13,11 @@ import org.bukkit.event.entity.PlayerDeathEvent; import cn.citycraft.SimpleEssential.SimpleEssential; /** + * 玩家传送点记录监听 + * * @author 蒋天蓓 * 2015年8月12日下午8:19:33 - * TODO + * */ public class PlayerLocationListen implements Listener { SimpleEssential plugin; diff --git a/src/cn/citycraft/SimpleEssential/teleport/TeleportInfo.java b/src/cn/citycraft/SimpleEssential/teleport/TeleportInfo.java index 456aa15..d3eaa10 100644 --- a/src/cn/citycraft/SimpleEssential/teleport/TeleportInfo.java +++ b/src/cn/citycraft/SimpleEssential/teleport/TeleportInfo.java @@ -6,9 +6,11 @@ package cn.citycraft.SimpleEssential.teleport; import org.bukkit.entity.Player; /** + * 玩家传送记录 + * * @author 蒋天蓓 * 2015年8月12日下午2:56:25 - * TODO + * */ public class TeleportInfo { protected TeleportType tptype; diff --git a/src/cn/citycraft/SimpleEssential/teleport/TeleportType.java b/src/cn/citycraft/SimpleEssential/teleport/TeleportType.java index 8e8fab5..6f19c02 100644 --- a/src/cn/citycraft/SimpleEssential/teleport/TeleportType.java +++ b/src/cn/citycraft/SimpleEssential/teleport/TeleportType.java @@ -4,9 +4,11 @@ package cn.citycraft.SimpleEssential.teleport; /** + * 传送类型枚举 + * * @author 蒋天蓓 * 2015年8月12日下午2:56:59 - * TODO + * */ public enum TeleportType { TPA, TPH diff --git a/src/cn/citycraft/SimpleEssential/utils/EffectUtil.java b/src/cn/citycraft/SimpleEssential/utils/EffectUtil.java index dfa30bd..01c689d 100644 --- a/src/cn/citycraft/SimpleEssential/utils/EffectUtil.java +++ b/src/cn/citycraft/SimpleEssential/utils/EffectUtil.java @@ -7,9 +7,11 @@ import org.bukkit.Effect; import org.bukkit.Location; /** + * 粒子发生器 + * * @author 蒋天蓓 * 2015年8月14日下午2:07:02 - * TODO + * */ public class EffectUtil { /**