mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2024-11-16 01:08:46 +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;
|
||||
|
||||
/**
|
||||
* @author 蒋天蓓 2015年8月11日下午3:29:32 TODO
|
||||
* 简单基础插件
|
||||
*
|
||||
* @author 蒋天蓓 2015年8月11日下午3:29:32
|
||||
*/
|
||||
public class SimpleEssential extends JavaPlugin {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
* 是否只有玩家才能执行此命令
|
||||
*/
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -4,9 +4,11 @@
|
||||
package cn.citycraft.SimpleEssential.teleport;
|
||||
|
||||
/**
|
||||
* 传送类型枚举
|
||||
*
|
||||
* @author 蒋天蓓
|
||||
* 2015年8月12日下午2:56:59
|
||||
* TODO
|
||||
*
|
||||
*/
|
||||
public enum TeleportType {
|
||||
TPA, TPH
|
||||
|
@ -7,9 +7,11 @@ import org.bukkit.Effect;
|
||||
import org.bukkit.Location;
|
||||
|
||||
/**
|
||||
* 粒子发生器
|
||||
*
|
||||
* @author 蒋天蓓
|
||||
* 2015年8月14日下午2:07:02
|
||||
* TODO
|
||||
*
|
||||
*/
|
||||
public class EffectUtil {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user