Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Fix perm
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jan 20, 2023
1 parent fb7a823 commit dd92f02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.daoge</groupId>
<artifactId>EmojiNK</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/cn/daogecmd/emojink/command/EmojiCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
import cn.nukkit.command.CommandSender;
import cn.nukkit.form.element.ElementButton;
import cn.nukkit.form.window.FormWindowSimple;
import cn.nukkit.utils.TextFormat;

public class EmojiCommand extends Command {
public EmojiCommand() {
super("emoji", "send emoji!");
this.setAliases(new String[]{"emj", "ej"});
this.setPermission("commands.emoji");
}

@Override
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
if (!testPermission(sender) || !sender.isPlayer()) {
if (!sender.isPlayer()) {
return false;
}
//send form
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: EmojiNK
main: cn.daogecmd.emojink.Loader
version: "1.0.0"
version: "1.0.1"
author: daoge_cmd
api: [ "1.0.13" ]

0 comments on commit dd92f02

Please sign in to comment.