Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
Thumbs.db

# Eclipse stuff #
#################
bin/
bin1/
.classpath
.project
4 changes: 2 additions & 2 deletions src/com/exolius/simplebackup/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public Commands(SimpleBackup plugin) {
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (cmd.getName().equalsIgnoreCase("sbackup")) {
if (sender.isOp()) {
if (sender.hasPermission("simplebackup.use")) {
new Thread(new Runnable() {
@Override
public void run() {
Expand All @@ -29,4 +29,4 @@ public void run() {
}
return false;
}
}
}
7 changes: 6 additions & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ version: 1.4
commands:
sbackup:
description: Run map backup
usage: /sbackup
usage: /sbackup

permissions:
simplebackup.use:
description: Run map backup
default: op