Compare commits
3 Commits
v1.0.39-ma
...
v1.0.42-ma
Author | SHA1 | Date | |
---|---|---|---|
![]() |
feda84fac8 | ||
![]() |
2503cd6372 | ||
![]() |
f321034eeb |
@@ -1,4 +1,3 @@
|
||||
[](https://discord.gg/trK6sYdcNE)
|
||||
[](https://ci.appveyor.com/project/zznty/torch/branch/master)
|
||||
|
||||
# What is Torch?
|
||||
@@ -17,6 +16,10 @@ Torch is the successor to SE Server Extender and gives server admins the tools t
|
||||
* .NET 6.0 runtime
|
||||
* Additional options & features
|
||||
|
||||
### Discord
|
||||
|
||||
If you have any questions or issues please join our [discord](https://discord.gg/UyYFSe3TyQ)
|
||||
|
||||
### Installation
|
||||
|
||||
* Unzip the Torch release into its own directory and run the executable. It will automatically download the SE DS and generate the other necessary files.
|
||||
|
@@ -144,22 +144,17 @@ namespace Torch.Server.Views
|
||||
{
|
||||
//var w = new RoleEditor(_instanceManager.DedicatedConfig.SelectedWorld);
|
||||
//w.Show();
|
||||
var d = new RoleEditor();
|
||||
var w = _instanceManager.DedicatedConfig.SelectedWorld;
|
||||
|
||||
if(w.Checkpoint.PromotedUsers == null) {
|
||||
w.Checkpoint.PromotedUsers = new VRage.Serialization.SerializableDictionary<ulong, MyPromoteLevel>();
|
||||
}
|
||||
|
||||
if (w == null)
|
||||
if (w is null)
|
||||
{
|
||||
MessageBox.Show("A world is not selected.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (w.Checkpoint.PromotedUsers == null)
|
||||
w.Checkpoint.PromotedUsers = new SerializableDictionary<ulong, MyPromoteLevel>();
|
||||
d.Edit(w.Checkpoint.PromotedUsers.Dictionary);
|
||||
w.Checkpoint.PromotedUsers ??= new();
|
||||
|
||||
new RoleEditor().Edit(w.Checkpoint.PromotedUsers.Dictionary);
|
||||
_instanceManager.DedicatedConfig.Administrators = w.Checkpoint.PromotedUsers.Dictionary.Where(k => k.Value >= MyPromoteLevel.Admin).Select(k => k.Key.ToString()).ToList();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user