Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Fix global bans not being set.
Browse files Browse the repository at this point in the history
  • Loading branch information
dualspiral committed Oct 17, 2015
1 parent 62d61e8 commit 677291f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HammerBukkit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'idea'

sourceCompatibility = 1.8
version = '0.2.1'
version = '0.3'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion HammerCore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'idea'

sourceCompatibility = 1.8
version = '0.3'
version = '0.3.1'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class HammerCore {
* @return The version of the core.
*/
public String getHammerCoreVersion() {
return "0.3";
return "0.3.1";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public final boolean executeCommand(WrappedCommandSource source, ArgumentMap arg
// Start a transaction. We might need to delete some rows here.
conn.startTransaction();
BanInfo status = checkOtherBans(uuidToBan, conn, flag.contains(BanFlagEnum.ALL));

// Set global flag here, before the checks below.
builder.setAll(flag.contains(BanFlagEnum.ALL));

if (status.status == BanStatus.NO_ACTION) {
sendTemplatedMessage(source, "hammer.player.alreadyBanned", true, true);
return true;
Expand Down

0 comments on commit 677291f

Please sign in to comment.