• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ

よく使われているワード(クリックで追加)

javaandroidc++linuxc#objective-ccocoa誰得qtrubybathyscaphegamephpguiwindowsc翻訳pythonomegattwitterframeworkbtronarduinovb.net計画中(planning stage)directxpreviewertestゲームエンジンdom

Administrator's Toolkit VS plugin


コミットメタ情報

リビジョン1bbc1e7898722aa6ea2b805de5a49ee8a64d2e26 (tree)
日時2019-08-26 07:33:35
作者melchior <melchior@user...>
コミッターmelchior

ログメッセージ

added configurable admin voice,
edited readme file,
minor version update

変更サマリ

差分

--- a/AdminToolkit/AdminModConfig.cs
+++ b/AdminToolkit/AdminModConfig.cs
@@ -43,12 +43,18 @@ namespace AdminToolkit
4343 /// <value>The autobackup.</value>
4444 public bool Autobackup { get; set; }
4545
46+ /// <summary>
47+ /// Admins get special underlined text chats. Distinctive!
48+ /// </summary>
49+ /// <value>The booming voice.</value>
50+ public bool BoomingVoice { get; set; }
4651
4752 public AdminModConfig( )
4853 {
4954 this.PlayerRoleRestrain = "suvisitor";
5055 this.PlayerRoleNormal = "suplayer";
5156 this.RuleRoleChangerEnabled = false;
57+ this.BoomingVoice = false;
5258
5359 this.BackupDelay = new TimeSpan(4, 0, 0);
5460 this.BackupCount = 6;
--- a/AdminToolkit/AdminToolkit.csproj
+++ b/AdminToolkit/AdminToolkit.csproj
@@ -85,6 +85,7 @@
8585 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
8686 </None>
8787 <None Include="LICENSE.txt" />
88+ <None Include="readme.md" />
8889 </ItemGroup>
8990 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
9091 </Project>
\ No newline at end of file
--- a/AdminToolkit/AdminToolkitMod.cs
+++ b/AdminToolkit/AdminToolkitMod.cs
@@ -94,7 +94,11 @@ namespace AdminToolkit
9494 this.ServerAPI.RegisterCommand(new AdminListingCommand(this.ServerAPI) );
9595 this.ServerAPI.RegisterCommand(new BackupCycleCommand(this.ServerAPI) );
9696
97- this.ServerAPI.Event.PlayerChat += BoomingVoiceOfAuthority;
97+ if (CachedConfiguration.BoomingVoice) {
98+ this.ServerAPI.Event.PlayerChat += BoomingVoiceOfAuthority;
99+ }
100+
101+
98102 this.ServerAPI.Event.ServerRunPhase(EnumServerRunPhase.Shutdown, SaveConfigSettings);
99103 }
100104
--- a/AdminToolkit/modinfo.json
+++ b/AdminToolkit/modinfo.json
@@ -3,12 +3,12 @@
33 "name": "Administrator's Toolkit mod",
44 "description" : "Provides misc. Admin functions;\n list admins, print & accept rules , auto-backup...",
55 "authors": ["Melchior", ],
6- "version": "0.3.0",
6+ "version": "0.3.1",
77 "dependencies": {
88 "game": "1.10.0"
99 },
1010 "requiredonclient":false,
11- "website": "http://nowebsite.nope"
11+ "website": "https://osdn.net/users/melchior/pf/admintoolkit/"
1212 }
1313
1414
--- a/AdminToolkit/readme.md
+++ b/AdminToolkit/readme.md
@@ -1,19 +1,22 @@
11 
2-Instructions for using the Administrator's Toolkit;
2+Instructions for using the Administrator's Toolkit (V0.3.0);
3+============================================================
34
45 It provides the (server side only) commands:
56
6-/rules
7-/admins
8-/backups
7+* /rules
8+* /admins
9+* /backups
910
10-=== RULES ===
11+RULES
12+-----
1113
12-Server administrators should create a unicode (UTF-8) text file;
14+
15+Server administrators should create a unicode *(UTF-8)* text file;
1316
1417 (server config directory root): /Rules/rules_en.txt
1518
16-Keep it small (1~2K) as it spools ONE-LINE-AT-A-TIME to players that have used the
19+Keep it small (1~2K) as it spools _ONE-LINE-AT-A-TIME_ to players that have used the
1720 '/rules' command. (CR/LF is acceptable - .NET supports either line endings)
1821
1922 Any player can issue the '/rules accept' command to "Accept" whatever the rules mean; (it keeps track - they can only 'accept' once)
@@ -22,22 +25,25 @@ This _CAN_ have an effect of changing the players role (IF the 'admintoolkit.jso
2225
2326 See: '/ModConfig/admintoolkit.json' -
2427
25- "PlayerRoleRestrain": "suvisitor", <<< This is the role they are 'demoted' to just-after joining; when the have *NOT* already accepted the rules.
26- "PlayerRoleNormal": "suplayer", <<< This is the role that a 'normal' player will be 'promoted' to, after using '/rules accept'
27- "RuleRoleChangerEnabled": false, <<< When 'true' players roles WILL Be CHANGED depending on IF they 'accepted' the rules (/rules just prints out the rules)
28+> "PlayerRoleRestrain": "suvisitor", <-- This is the role they are 'demoted' to just-after joining; when the have *NOT* already accepted the rules.
29+> "PlayerRoleNormal": "suplayer", <-- This is the role that a 'normal' player will be 'promoted' to, after using '/rules accept'
30+> "RuleRoleChangerEnabled": false, <-- When 'true' players roles WILL Be CHANGED depending on IF they 'accepted' the rules (/rules just prints out the rules)
2831
2932 All these roles must exist and use the 'code' name, any misconfiguration will prevent the command from working. (with error messages in the log...)
3033
31-=== BACKUPS ===
34+BACKUPS
35+-------
3236
33-An automatic call to the '/genbackup' command exists as a Administrator only ('controlserver' permission) function.
3437
38+An automatic call to the '/genbackup' command exists as a Administrator only ('controlserver' permission) function.
3539 By default it isn't automatically activated;
3640
41+
3742 Manual triggering of the backup cycle with:
3843
3944 '/backups enable'
4045
46+
4147 And to stop the automatic backup process;
4248
4349 '/backups disable'
@@ -51,10 +57,12 @@ To alter the time delay:
5157
5258 Sets the delay to 9 hours (and restarts the backup schedule IF its already active).
5359
60+
5461 To inquire about the existing backups and when the last one was issued;
5562
5663 '/backups stats' - will print out various information about when/if/how many, backups were made...if any.
5764
65+
5866 The number of "old" backup files to keep (at least 4):
5967
6068 '/backups count 10'
@@ -62,19 +70,30 @@ The number of "old" backup files to keep (at least 4):
6270
6371 See: '/ModConfig/admintoolkit.json' -
6472
65- "BackupDelay": "04:00:00", <<< The time-span delay BETWEEN Starting a backup. In "HH:MM:SS" format, so to delay 3 Hours, 15 Minutes, 21 Seconds: "03:15:21" It is limited to a max of 500 HOURS.
66- "BackupCount": 6, <<< The count of backups; minimum of 4, max is uint. (billions...) to keep around.
67- "Autobackup": false <<< set to true if you want the server to automatically run the backup cycle UNATTENDED, without an admin issuing '/backups enable'
73+> "BackupDelay": "04:00:00", <-- The time-span delay BETWEEN Starting a backup. In "HH:MM:SS" format, so to delay 3 Hours, 15 Minutes, 21 Seconds: "03:15:21" It is limited to a max of 500 HOURS.
74+> "BackupCount": 6, <-- The count of backups; minimum of 4, max is uint. (billions...) to keep around.
75+> "Autobackup": false <-- set to true if you want the server to automatically run the backup cycle UNATTENDED, without an admin issuing '/backups enable'
6876
6977
7078
7179 Note; The 'admin' role needs to exist for internal use purposes, this mod will NOT function correctly without it.
7280
7381
74-=== ADMINS ===
82+ADMINS
83+------
7584
7685 '/admins'
7786
7887 Usable by anyone - it just prints a listing of all higher role(s)
79-present (or not) on the server.
88+currently present (or not) on the server - offline admins also.
89+
90+
91+
92+BOOMING VOICE
93+-------------
94+
95+A special feature for admins; their text messages get underlined.
96+
97+edit file ('/ModConfig/admintoolkit.json' ) :
8098
99+> "BoomingVoice": true