diff --git a/MCGalaxy/Commands/Moderation/CmdBan.cs b/MCGalaxy/Commands/Moderation/CmdBan.cs index 9752d4672..7f4065cc9 100644 --- a/MCGalaxy/Commands/Moderation/CmdBan.cs +++ b/MCGalaxy/Commands/Moderation/CmdBan.cs @@ -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); diff --git a/MCGalaxy/Database/ColumnDesc.cs b/MCGalaxy/Database/ColumnDesc.cs index ca1e13126..c2b7f6aa5 100644 --- a/MCGalaxy/Database/ColumnDesc.cs +++ b/MCGalaxy/Database/ColumnDesc.cs @@ -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) {