-
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.
- Loading branch information
Showing
11 changed files
with
2,374 additions
and
2,691 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package xiaokai.knickers; | ||
|
||
import xiaokai.knickers.appliance.EstablishForm; | ||
import xiaokai.knickers.mtp.Kick; | ||
|
||
import cn.nukkit.Player; | ||
import cn.nukkit.command.Command; | ||
import cn.nukkit.command.CommandSender; | ||
|
||
/** | ||
* @author Winfxk | ||
*/ | ||
public class ToolCommand extends Command { | ||
private final String Permission = "Knickers.Command.Tool"; | ||
|
||
public ToolCommand() { | ||
super("tool", "§9打开菜单快捷工具主界面", "§b/§6mis §chelp"); | ||
this.commandParameters.clear(); | ||
this.setPermission(Permission); | ||
} | ||
|
||
@Override | ||
public boolean execute(CommandSender player, String commandLabel, String[] args) { | ||
if (!Kick.kick.mis.isEnabled()) | ||
return false; | ||
if (!player.hasPermission(Permission)) { | ||
player.sendMessage(Kick.kick.Message.getMessage("权限不足")); | ||
return true; | ||
} | ||
if (!player.isPlayer()) { | ||
player.sendMessage("§4请在游戏内执行此命令!"); | ||
return true; | ||
} else | ||
return EstablishForm.Main((Player) player); | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.