Merge pull request #18 from Sanae6/master
[pull] upstream from Sanae6:master
This commit is contained in:
commit
3f00457a4a
|
@ -79,8 +79,10 @@ Maxplayers: the max amount of players that can join, default: 8
|
||||||
Flip: flips the player upside down, defaults: enabled: true, pov: both
|
Flip: flips the player upside down, defaults: enabled: true, pov: both
|
||||||
Scenario: sync's scenario's for all players on the server, default: false
|
Scenario: sync's scenario's for all players on the server, default: false
|
||||||
Banlist: banned people are unable to join the server, default: false
|
Banlist: banned people are unable to join the server, default: false
|
||||||
|
PersistShines/Moons: Allows the server to remember moon progress across crashes/restarts
|
||||||
|
|
||||||
### Discord
|
### Discord
|
||||||
|
Note: Token and LogChannel needs to a string puts "" around it
|
||||||
Token: the token of the bot you want to load into, default: null
|
Token: the token of the bot you want to load into, default: null
|
||||||
Prefix: the bot prefix to be used, default: $
|
Prefix: the bot prefix to be used, default: $
|
||||||
LogChannel: logs the server console to that channel, default: null
|
LogChannel: logs the server console to that channel, default: null
|
|
@ -257,7 +257,7 @@ CommandHandler.RegisterCommand("rejoin", args => {
|
||||||
var res = MultiUserCommandHelper(args);
|
var res = MultiUserCommandHelper(args);
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(res.toActUpon.Count > 0 ? "Banned: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : "");
|
sb.Append(res.toActUpon.Count > 0 ? "Rejoined: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : "");
|
||||||
sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : "");
|
sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : "");
|
||||||
if (res.ambig.Count > 0) {
|
if (res.ambig.Count > 0) {
|
||||||
res.ambig.ForEach(x => {
|
res.ambig.ForEach(x => {
|
||||||
|
@ -280,7 +280,7 @@ CommandHandler.RegisterCommand("crash", args => {
|
||||||
var res = MultiUserCommandHelper(args);
|
var res = MultiUserCommandHelper(args);
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(res.toActUpon.Count > 0 ? "Banned: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : "");
|
sb.Append(res.toActUpon.Count > 0 ? "Crashed: " + string.Join(", ", res.toActUpon.Select(x => $"\"{x.Name}\"")) : "");
|
||||||
sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : "");
|
sb.Append(res.failToFind.Count > 0 ? "\nFailed to find matches for: " + string.Join(", ", res.failToFind.Select(x => $"\"{x.ToLower()}\"")) : "");
|
||||||
if (res.ambig.Count > 0) {
|
if (res.ambig.Count > 0) {
|
||||||
res.ambig.ForEach(x => {
|
res.ambig.ForEach(x => {
|
||||||
|
|
Loading…
Reference in New Issue