luck perms discord initial

This commit is contained in:
zznty
2023-12-17 02:20:50 +07:00
parent 630cbdd14c
commit f259936874
28 changed files with 1337 additions and 47 deletions

View File

@@ -68,7 +68,12 @@ public class LpTorchBootstrap : LuckPermsBootstrap
_torch.CurrentSession?.Managers.GetManager<MultiplayerManagerDedicated>().Players
.ContainsKey(uuid.GetSteamId()) ?? false;
public string getVersion() => _torchPlugin.Version.TrimStart('v');
public string getVersion()
{
// has to be 3 component for web editor to work
var version = Version.Parse(_torchPlugin.Version.TrimStart('v'));
return $"{version.Major}.{version.Minor}.{version.Build}";
}
public string getServerBrand() => "Torch";

View File

@@ -210,13 +210,13 @@
<References>$(ExaminationApiPath);$(ExaminationStringPath);$(AdventureKeyPath);$(AnnotationsPath)</References>
</IkvmReference>
<IkvmReference Include="$(AdventureTextPlainPath)">
<References>$(AdventureApiPath);$(AnnotationsPath);$(ExaminationApiPath)</References>
<References>$(AdventureApiPath);$(AnnotationsPath);$(ExaminationApiPath);$(AdventureKeyPath)</References>
</IkvmReference>
<IkvmReference Include="$(AdventureTextLegacyPath)">
<References>$(AdventureApiPath);$(ExaminationApiPath)</References>
<References>$(AdventureApiPath);$(ExaminationApiPath);$(AdventureKeyPath)</References>
</IkvmReference>
<IkvmReference Include="$(AdventureTextMinimessagePath)">
<References>$(AdventureApiPath);$(ExaminationApiPath)</References>
<References>$(AdventureApiPath);$(ExaminationApiPath);$(AdventureKeyPath)</References>
</IkvmReference>
<IkvmReference Include="$(Toml4jPath)">

View File

@@ -2,5 +2,5 @@
<PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>LuckPerms.Torch</Name>
<Guid>7E4B3CC8-64FA-416E-8910-AACDF2DA5E2C</Guid>
<Version>v5.4.106.7</Version>
<Version>v5.4.106.9</Version>
</PluginManifest>

View File

@@ -194,8 +194,8 @@
},
"Microsoft.Bcl.AsyncInterfaces": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==",
"resolved": "8.0.0",
"contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==",
"dependencies": {
"System.Threading.Tasks.Extensions": "4.5.4"
}
@@ -322,25 +322,24 @@
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==",
"resolved": "8.0.0",
"contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==",
"dependencies": {
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "6.0.6",
"contentHash": "GZ+62pLOr544jwSvyXv5ezSfzlFBTjLuPhgOS2dnKuknAA8dPNUGXLKTHf9XdsudU9JpbtweXnE4oEiKEB2T1Q==",
"resolved": "8.0.0",
"contentHash": "OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "6.0.0",
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Text.Encodings.Web": "6.0.0",
"System.Text.Encodings.Web": "8.0.0",
"System.Threading.Tasks.Extensions": "4.5.4",
"System.ValueTuple": "4.5.0"
}
@@ -361,7 +360,8 @@
"luckperms.torch.utils": {
"type": "Project",
"dependencies": {
"IKVM": "[8.7.3, )"
"IKVM": "[8.7.3, )",
"System.Text.Json": "[8.0.0, )"
}
}
},