Skip to content

Commit 779e4a9

Browse files
committed
v2.4: - Fix an NPE and superperms not updating correctly when adding a
timed permission directly to a player (reported by BleuBleue).
1 parent fe17736 commit 779e4a9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#===================================
44

55
# Build version
6-
env.BUILD_VER=2.3
6+
env.BUILD_VER=2.4
77

88
# library archive
99
env.ARCHIVE=http://palmergames.com/libs

resources/Changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,5 @@ v2.3:
246246
- Added timed permissions. You can also add negated timed permissions to punish bad players who need a timeout.
247247
eg. /mangaddp default test.*|1d2h15m
248248
/mangaddp owner -test.perm|20m
249-
249+
v2.4:
250+
- Fix an NPE and superperms not updating correctly when adding a timed permission directly to a player (reported by BleuBleue).

src/org/anjocaido/groupmanager/commands/ManUAddP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected boolean parseCommand(@NotNull String[] args) {
112112

113113
if (period != null) {
114114
auxUser.addTimedPermission(auxString, timed.getEpochSecond());
115-
sender.sendMessage(ChatColor.YELLOW + "You added '" + auxString + "' to group '" + auxGroup.getName() + "' permissions with a duration of " + period + " minutes.");
115+
sender.sendMessage(ChatColor.YELLOW + "You added '" + auxString + "' to player '" + auxUser.getLastName() + "' permissions with a duration of " + period + " minutes.");
116116

117117
} else {
118118
auxUser.addPermission(auxString);

0 commit comments

Comments
 (0)