Skip to content

Commit

Permalink
Version 1.3.5a (added permission for command)
Browse files Browse the repository at this point in the history
  • Loading branch information
Draww committed Feb 10, 2018
1 parent 4a371f1 commit c115c29
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 36 deletions.
63 changes: 34 additions & 29 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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>com.drawwdev</groupId>
<artifactId>Raffle</artifactId>
<version>1.3.5</version>
<version>1.3.5a</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/drawwdev/raffle/RaffleCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
return true;
}
Player player = (Player) sender;
if (!player.hasPermission("raffle.*")){
sender.sendMessage(cc(plugin.getConfig().getString("prefix") + " &7you are not authorized to perform this command."));
return true;
}
if (args.length < 1) {
player.sendMessage(cc(plugin.getConfig().getString("prefix") + " &7Command was entered missing."));
return true;
Expand Down
7 changes: 5 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Raffle
main: com.drawwdev.raffle.Main
version: 1.3.5
version: 1.3.5a
author: drawwdev
commands:
raffle:
description: Raffle main command
usage: /raffle
usage: /raffle
permissions:
raffle.*:
default: op
7 changes: 5 additions & 2 deletions target/classes/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Raffle
main: com.drawwdev.raffle.Main
version: 1.3.5
version: 1.3.5a
author: drawwdev
commands:
raffle:
description: Raffle main command
usage: /raffle
usage: /raffle
permissions:
raffle.*:
default: op
4 changes: 2 additions & 2 deletions target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Sat Feb 10 09:17:21 EET 2018
version=1.3.5
#Sat Feb 10 10:48:01 EET 2018
version=1.3.5a
groupId=com.drawwdev
artifactId=Raffle

0 comments on commit c115c29

Please sign in to comment.