Browse Source

Prepare for spigot release.

master
Stefatorus 4 years ago
parent
commit
1fc3b9b444
  1. 2
      pom.xml
  2. 2
      resources/plugin.yml
  3. 4
      src/com/entryrise/afkguard/cmd/CommandListener.java

2
pom.xml

@ -5,7 +5,7 @@
<groupId>com.entryrise</groupId>
<artifactId>afkguard</artifactId>
<version>0.2</version>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>AFKGuard</name>

2
resources/plugin.yml

@ -1,7 +1,7 @@
name: ${project.name}
author: Stefatorus
version: ${project.version}
api-version: 1.13
api-version: 1.16
description: ${plugin.description}
main: ${project.groupId}.${project.artifactId}.Main
depend: [Vault]

4
src/com/entryrise/afkguard/cmd/CommandListener.java

@ -12,12 +12,12 @@ import com.entryrise.afkguard.utils.MathUtils;
public class CommandListener implements CommandExecutor {
private static Set<Player> debug
// private static Set<Player> debug
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player p = sender instanceof Player ? (Player) sender : null;
if (p == null) {
if (p == null || !p.hasPermission("afkguard.admin")) {
sender.sendMessage(Main.PREFIX + "Can't run from console");
return true;
}

Loading…
Cancel
Save