mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix being able to ban same player multiple times (Thanks 123DMWM).
This commit is contained in:
parent
f09fb5d3d1
commit
f41f756127
@ -36,7 +36,7 @@ namespace MCGalaxy.Commands.Moderation {
|
||||
if (reason == null) return;
|
||||
|
||||
Player who = PlayerInfo.FindExact(target);
|
||||
Group group = who != null ? who.group : Group.GroupIn(args[0]);
|
||||
Group group = who != null ? who.group : Group.GroupIn(target);
|
||||
if (!CheckPerms(target, group, p)) return;
|
||||
|
||||
ModAction action = new ModAction(target, p, ModActionType.Ban, reason);
|
||||
|
@ -30,6 +30,11 @@ namespace MCGalaxy.SQL {
|
||||
public readonly bool NotNull;
|
||||
public readonly string DefaultValue;
|
||||
|
||||
public ColumnDesc(string col, ColumnType type)
|
||||
: this(col, type, 0, false, false, false, null) { }
|
||||
public ColumnDesc(string col, ColumnType type, ushort maxLen = 0)
|
||||
: this(col, type, maxLen, false, false, false, null) { }
|
||||
|
||||
public ColumnDesc(string col, ColumnType type, ushort maxLen = 0,
|
||||
bool autoInc = false, bool priKey = false,
|
||||
bool notNull = false, string def = null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user