try fix faction invite

This commit is contained in:
hydrant
2019-05-09 17:07:43 +02:00
parent 2c4b6e364a
commit c18b6b6fad
10 changed files with 57 additions and 17 deletions

View File

@@ -530,7 +530,7 @@ namespace ReallifeGamemode.Server.Commands
player.SendChatMessage("~s~Die Dimension von ~y~" + target.Name + " ~s~wurde auf ~g~" + dimension + "~s~ geändert.");
}
[Command("kick", "~m~Benutzung: ~s~/kick [Player] [Grund]")]
[Command("kick", "~m~Benutzung: ~s~/kick [Player] [Grund]", GreedyArg = true)]
public void CmdAdminKick(Client player, string targetname, string reason)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)

View File

@@ -0,0 +1,33 @@
ALTER TABLE `Users` ADD `GroupId` int NULL;
ALTER TABLE `Users` ADD `GroupRank` int NOT NULL DEFAULT 0;
ALTER TABLE `ServerVehicles` ADD `GroupId` int NULL;
CREATE TABLE `Groups` (
`Id` int NOT NULL AUTO_INCREMENT,
`Name` longtext NULL,
CONSTRAINT `PK_Groups` PRIMARY KEY (`Id`)
);
CREATE TABLE `GroupBankAccounts` (
`Id` int NOT NULL AUTO_INCREMENT,
`GroupId` int NULL,
`Balance` int NOT NULL,
CONSTRAINT `PK_GroupBankAccounts` PRIMARY KEY (`Id`),
CONSTRAINT `FK_GroupBankAccounts_Groups_GroupId` FOREIGN KEY (`GroupId`) REFERENCES `Groups` (`Id`) ON DELETE RESTRICT
);
CREATE INDEX `IX_Users_GroupId` ON `Users` (`GroupId`);
CREATE INDEX `IX_ServerVehicles_GroupId` ON `ServerVehicles` (`GroupId`);
CREATE INDEX `IX_GroupBankAccounts_GroupId` ON `GroupBankAccounts` (`GroupId`);
ALTER TABLE `ServerVehicles` ADD CONSTRAINT `FK_ServerVehicles_Groups_GroupId` FOREIGN KEY (`GroupId`) REFERENCES `Groups` (`Id`) ON DELETE RESTRICT;
ALTER TABLE `Users` ADD CONSTRAINT `FK_Users_Groups_GroupId` FOREIGN KEY (`GroupId`) REFERENCES `Groups` (`Id`) ON DELETE RESTRICT;
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`)
VALUES ('20190505154643_Groups', '2.2.0-rtm-35687');