mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -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;
|
if (reason == null) return;
|
||||||
|
|
||||||
Player who = PlayerInfo.FindExact(target);
|
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;
|
if (!CheckPerms(target, group, p)) return;
|
||||||
|
|
||||||
ModAction action = new ModAction(target, p, ModActionType.Ban, reason);
|
ModAction action = new ModAction(target, p, ModActionType.Ban, reason);
|
||||||
|
@ -30,6 +30,11 @@ namespace MCGalaxy.SQL {
|
|||||||
public readonly bool NotNull;
|
public readonly bool NotNull;
|
||||||
public readonly string DefaultValue;
|
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,
|
public ColumnDesc(string col, ColumnType type, ushort maxLen = 0,
|
||||||
bool autoInc = false, bool priKey = false,
|
bool autoInc = false, bool priKey = false,
|
||||||
bool notNull = false, string def = null) {
|
bool notNull = false, string def = null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user