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";