mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2025-01-06 12:18:56 +00:00
modify annotation...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
83fc7d2439
commit
c07655b6da
@ -29,7 +29,9 @@ import cn.citycraft.SimpleEssential.teleport.TeleportControl;
|
|||||||
import cn.citycraft.SimpleEssential.utils.VersionChecker;
|
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 {
|
public class SimpleEssential extends JavaPlugin {
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import org.bukkit.entity.Player;
|
|||||||
import cn.citycraft.SimpleEssential.SimpleEssential;
|
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 {
|
public class CommandBack extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
@ -22,9 +22,11 @@ public class CommandBack extends SimpleEssentialCommand {
|
|||||||
super("back", "seback");
|
super("back", "seback");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
||||||
|
@ -12,7 +12,9 @@ import cn.citycraft.SimpleEssential.SimpleEssential;
|
|||||||
import cn.citycraft.SimpleEssential.config.Language;
|
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 {
|
public class CommandHome extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
@ -24,9 +26,11 @@ public class CommandHome extends SimpleEssentialCommand {
|
|||||||
super("home", "eshome");
|
super("home", "eshome");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
||||||
|
@ -13,21 +13,22 @@ import cn.citycraft.SimpleEssential.SimpleEssential;
|
|||||||
import cn.citycraft.SimpleEssential.config.Language;
|
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 {
|
public class CommandSetHome extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param name
|
|
||||||
*/
|
|
||||||
public CommandSetHome(SimpleEssential main) {
|
public CommandSetHome(SimpleEssential main) {
|
||||||
super("sethome", "essethome");
|
super("sethome", "essethome");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
public void execute(CommandSender sender, String label, String[] args) throws CommandException {
|
||||||
|
@ -12,9 +12,11 @@ import cn.citycraft.SimpleEssential.SimpleEssential;
|
|||||||
import cn.citycraft.SimpleEssential.config.Language;
|
import cn.citycraft.SimpleEssential.config.Language;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 传送到顶部命令
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午2:04:05
|
* 2015年8月12日下午2:04:05
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class CommandTop extends SimpleEssentialCommand {
|
public class CommandTop extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
@ -26,9 +28,11 @@ public class CommandTop extends SimpleEssentialCommand {
|
|||||||
super("top", "estop");
|
super("top", "estop");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPossibleArguments() {
|
public String getPossibleArguments() {
|
||||||
|
@ -13,9 +13,11 @@ import cn.citycraft.SimpleEssential.config.Language;
|
|||||||
import cn.citycraft.SimpleEssential.teleport.TeleportType;
|
import cn.citycraft.SimpleEssential.teleport.TeleportType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 玩家传送命令
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午2:04:05
|
* 2015年8月12日下午2:04:05
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class CommandTpa extends SimpleEssentialCommand {
|
public class CommandTpa extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
@ -27,9 +29,11 @@ public class CommandTpa extends SimpleEssentialCommand {
|
|||||||
super("tpa");
|
super("tpa");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPossibleArguments() {
|
public String getPossibleArguments() {
|
||||||
|
@ -10,9 +10,11 @@ import org.bukkit.entity.Player;
|
|||||||
import cn.citycraft.SimpleEssential.SimpleEssential;
|
import cn.citycraft.SimpleEssential.SimpleEssential;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 接受传送命令
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午2:04:05
|
* 2015年8月12日下午2:04:05
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class CommandTpaccept extends SimpleEssentialCommand {
|
public class CommandTpaccept extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
@ -24,9 +26,11 @@ public class CommandTpaccept extends SimpleEssentialCommand {
|
|||||||
super("tpaccept", "tpok");
|
super("tpaccept", "tpok");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPossibleArguments() {
|
public String getPossibleArguments() {
|
||||||
|
@ -10,23 +10,24 @@ import org.bukkit.entity.Player;
|
|||||||
import cn.citycraft.SimpleEssential.SimpleEssential;
|
import cn.citycraft.SimpleEssential.SimpleEssential;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 拒绝传送命令
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午2:04:05
|
* 2015年8月12日下午2:04:05
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class CommandTpdeny extends SimpleEssentialCommand {
|
public class CommandTpdeny extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param name
|
|
||||||
*/
|
|
||||||
public CommandTpdeny(SimpleEssential main) {
|
public CommandTpdeny(SimpleEssential main) {
|
||||||
super("tpdeny", "tpno");
|
super("tpdeny", "tpno");
|
||||||
this.plugin = main;
|
this.plugin = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPossibleArguments() {
|
public String getPossibleArguments() {
|
||||||
|
@ -13,7 +13,9 @@ import cn.citycraft.SimpleEssential.config.Language;
|
|||||||
import cn.citycraft.SimpleEssential.teleport.TeleportType;
|
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 {
|
public class CommandTphere extends SimpleEssentialCommand {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
@ -38,9 +40,11 @@ public class CommandTphere extends SimpleEssentialCommand {
|
|||||||
Language.getMessage("Teleport.tpdeny")
|
Language.getMessage("Teleport.tpdeny")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnlyPlayerExecutable() {return true;};
|
public boolean isOnlyPlayerExecutable() {
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getMinimumArguments() {
|
public int getMinimumArguments() {
|
||||||
|
@ -7,9 +7,10 @@ import org.bukkit.command.CommandException;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 基础命令类
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午12:49:34
|
* 2015年8月12日下午12:49:34
|
||||||
* TODO
|
|
||||||
*/
|
*/
|
||||||
public abstract class SimpleEssentialCommand {
|
public abstract class SimpleEssentialCommand {
|
||||||
private String name;
|
private String name;
|
||||||
@ -93,7 +94,7 @@ public abstract class SimpleEssentialCommand {
|
|||||||
* - 命令异常
|
* - 命令异常
|
||||||
*/
|
*/
|
||||||
public abstract void execute(CommandSender sender, String label, String[] args) throws CommandException;
|
public abstract void execute(CommandSender sender, String label, String[] args) throws CommandException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否只有玩家才能执行此命令
|
* 是否只有玩家才能执行此命令
|
||||||
*/
|
*/
|
||||||
|
@ -13,9 +13,11 @@ import org.bukkit.event.entity.PlayerDeathEvent;
|
|||||||
import cn.citycraft.SimpleEssential.SimpleEssential;
|
import cn.citycraft.SimpleEssential.SimpleEssential;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 玩家传送点记录监听
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午8:19:33
|
* 2015年8月12日下午8:19:33
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class PlayerLocationListen implements Listener {
|
public class PlayerLocationListen implements Listener {
|
||||||
SimpleEssential plugin;
|
SimpleEssential plugin;
|
||||||
|
@ -6,9 +6,11 @@ package cn.citycraft.SimpleEssential.teleport;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 玩家传送记录
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午2:56:25
|
* 2015年8月12日下午2:56:25
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class TeleportInfo {
|
public class TeleportInfo {
|
||||||
protected TeleportType tptype;
|
protected TeleportType tptype;
|
||||||
|
@ -4,9 +4,11 @@
|
|||||||
package cn.citycraft.SimpleEssential.teleport;
|
package cn.citycraft.SimpleEssential.teleport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 传送类型枚举
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月12日下午2:56:59
|
* 2015年8月12日下午2:56:59
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public enum TeleportType {
|
public enum TeleportType {
|
||||||
TPA, TPH
|
TPA, TPH
|
||||||
|
@ -7,9 +7,11 @@ import org.bukkit.Effect;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* 粒子发生器
|
||||||
|
*
|
||||||
* @author 蒋天蓓
|
* @author 蒋天蓓
|
||||||
* 2015年8月14日下午2:07:02
|
* 2015年8月14日下午2:07:02
|
||||||
* TODO
|
*
|
||||||
*/
|
*/
|
||||||
public class EffectUtil {
|
public class EffectUtil {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user