Skip to content

Commit

Permalink
Merge pull request OskarsMC-Plugins#5 from OskarsMC-Plugins/fix/permi…
Browse files Browse the repository at this point in the history
…ssion
  • Loading branch information
OskarZyg authored May 24, 2021
2 parents ce01cd2 + e3e2029 commit 37f0d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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>com.oskarsmc</groupId>
<artifactId>send</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>

<name>send</name>
Expand Down
9 changes: 2 additions & 7 deletions src/main/java/com/oskarsmc/send/command/SendCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,10 @@ public boolean checkPerm(CommandSource source, SendSettings sendSettings) {
if (source.hasPermission("osmc.send.send")) {
if (source instanceof Player) {
if (sendSettings.getServerBlackListEnabled() && ((Player) source).getCurrentServer().isPresent()) {
if (sendSettings.getServersBlackListed().contains(((Player) source).getCurrentServer().get().getServerInfo().getName())) {
return false;
} else {
return true;
}
return !sendSettings.getServersBlackListed().contains(((Player) source).getCurrentServer().get().getServerInfo().getName());
}
} else {
return true;
}
return true;
}
return false;
}
Expand Down

0 comments on commit 37f0d86

Please sign in to comment.