-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## UltiTools-API 1. 添加了 UltiToolsModule 注解,整合了一些相关注解,简化了模块开发。 2. WorldLocation 添加了 toLocation 方法 3. 添加了自动下载PAPI变量的功能 4. 添加了临时监听事件的 API 5. 添加了模块的版本判断,再也不会出现不同版本的同一个模块注册多次的问题 6. 添加了 CmdExecutor 和 EventListener 注解的Bean支持 7. 现在继承或实现服务端类或接口的类可被注册为Bean 8. 添加了 AbstractCommendExecutor 对不定参数的支持 9. 自动注册添加了手动注册命令和监听器的开关 10. 添加了Metrics 11. 重构了 CommandManager 以便更好地对模块指令进行管理 12. 简化了插件重载方法 13. 添加了自动下载PAPI模块的功能 14. UltiTools添加了获取Economy的方法 15. 优化了UltiTools版本获取方法 16. 修复了GUI组件无法翻页的问题 17. 修改了 DataStoreManager 中的卸载提示文本 18. 修复了 AbstractCommendExecutor 处理参数时报错的问题 19. 修复了外部插件无法正常注册Bean的问题 20. 修改了部分文本 ## Basic-Function 1. 添加了Warp功能 2. 添加了Spawn和setspawn命令 3. 添加了lore命令,可以快捷修改手持物品的lore,可使用&颜色符号 4. 添加了Hide隐身功能 5. 添加了头顶+tab显示功能 6. 修复了隐身的文本提示问题 7. 添加了死亡惩罚功能 8. Warp添加了对BlueMap的支持 9. 升级到UltiTools-API 6.0.5版本 ## Economy 1. 修改了插件描述 ## MysqlConnector 1. 修改了插件描述 ## Sidebar 1. 修改了插件描述 2. 添加了开关侧边栏的命令 3. 修复了玩家被踢会导致papi报错的问题 4. 升级到UltiTools-API 6.0.5版本 ## UltiTools-Home 1. 修改了插件描述 2. 修复了GUI中家顺序混乱的问题 3. 修复了GUI超出会报错的问题 4. 升级到UltiTools-API 6.0.5版本
- Loading branch information
Showing
88 changed files
with
3,021 additions
and
741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 11 additions & 12 deletions
23
BasicFunctions/src/main/java/com/ultikits/plugins/commands/FlyCommands.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
package com.ultikits.plugins.commands; | ||
|
||
import com.ultikits.plugins.BasicFunctions; | ||
import com.ultikits.ultitools.abstracts.AbstractPlayerCommandExecutor; | ||
import org.bukkit.command.Command; | ||
import com.ultikits.ultitools.abstracts.AbstractCommendExecutor; | ||
import com.ultikits.ultitools.annotations.command.CmdExecutor; | ||
import com.ultikits.ultitools.annotations.command.CmdMapping; | ||
import com.ultikits.ultitools.annotations.command.CmdSender; | ||
import com.ultikits.ultitools.annotations.command.CmdTarget; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
import static com.ultikits.ultitools.utils.MessageUtils.info; | ||
import static com.ultikits.ultitools.utils.MessageUtils.warning; | ||
|
||
public class FlyCommands extends AbstractPlayerCommandExecutor { | ||
@CmdTarget(CmdTarget.CmdTargetType.PLAYER) | ||
@CmdExecutor(alias = {"fly"}, manualRegister = true, permission = "ultikits.tools.command.fly", description = "飞行功能") | ||
public class FlyCommands extends AbstractCommendExecutor { | ||
|
||
@Override | ||
protected boolean onPlayerCommand(Command command, String[] strings, Player player) { | ||
if (!player.hasPermission("ultikits.tools.command.fly")) { | ||
player.sendMessage(warning(BasicFunctions.getInstance().i18n("你没有权限使用此指令!"))); | ||
return true; | ||
} | ||
@CmdMapping(format = "") | ||
public void fly(@CmdSender Player player) { | ||
player.setAllowFlight(!player.getAllowFlight()); | ||
player.sendMessage(info(player.getAllowFlight() ? | ||
BasicFunctions.getInstance().i18n("已打开飞行") : | ||
BasicFunctions.getInstance().i18n("已关闭飞行"))); | ||
return true; | ||
} | ||
|
||
@Override | ||
protected void sendHelpMessage(CommandSender sender) { | ||
protected void handleHelp(CommandSender sender) { | ||
sender.sendMessage(info(BasicFunctions.getInstance().i18n("用法:/fly"))); | ||
} | ||
} |
Oops, something went wrong.