Skip to content

Commit

Permalink
0.8.4 - Fixed an error message displaying when no players are online
Browse files Browse the repository at this point in the history
+ Fixed an error message displaying in console when no players are online and autosell is turned on
+ Updated to 0.8.4
  • Loading branch information
noahbclarkson committed Aug 25, 2020
1 parent 8cb6d71 commit fd64422
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Auto-Tune/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>unprotesting.com.github</groupId>
<artifactId>Auto-Tune</artifactId>
<name>Auto-Tune</name>
<version>0.8.3</version>
<version>0.8.4</version>
<description>The automatic pricing plugin for minecraft</description>
<url>https://github.com/Unprotesting/Auto-Tune</url>
<issueManagement>
Expand Down Expand Up @@ -129,9 +129,9 @@
</dependency>
</dependencies>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<mainClass>${project.groupId}.${project.artifactId}</mainClass>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>

2 changes: 1 addition & 1 deletion Auto-Tune/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Project information -->
<groupId>unprotesting.com.github</groupId>
<artifactId>Auto-Tune</artifactId>
<version>0.8.3</version>
<version>0.8.4</version>
<packaging>jar</packaging>
<!-- Info -->
<name>Auto-Tune</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ public void run() {
catch (IllegalArgumentException e){
continue;
}
AutoTuneSellCommand.roundAndGiveMoney(p, Main.tempdatadata.get(uuid), false);
Main.tempdatadata.remove(uuid);
if (p != null){
if (p.isOnline() && (p.hasPermission("at.autosell") || p.isOp())){
AutoTuneSellCommand.roundAndGiveMoney(p, Main.tempdatadata.get(uuid), false);
Main.tempdatadata.remove(uuid);
}

}
}
}
}

0 comments on commit fd64422

Please sign in to comment.