• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Administrator's Toolkit VS plugin


Commit MetaInfo

Revisión49c9d088761774bc6c583d8635c0eb629f910ef5 (tree)
Tiempo2019-12-31 12:44:40
Autormelchior <melchior@user...>
Commitermelchior

Log Message

Updates for VS1.11 - Banner W.I.P.

Cambiar Resumen

Diferencia incremental

--- a/AdminToolkit/AdminToolkit.csproj
+++ b/AdminToolkit/AdminToolkit.csproj
@@ -75,6 +75,7 @@
7575 <Compile Include="Commands\BackupCycleCommand.cs" />
7676 <Compile Include="Commands\RulesCommand.cs" />
7777 <Compile Include="MechTurk.cs" />
78+ <Compile Include="Commands\BannerControl.cs" />
7879 </ItemGroup>
7980 <ItemGroup>
8081 <Folder Include="VS_libs\" />
--- a/AdminToolkit/AdminToolkitMod.cs
+++ b/AdminToolkit/AdminToolkitMod.cs
@@ -19,12 +19,14 @@ namespace AdminToolkit
1919 {
2020 /* Things it should do:
2121 * ==============
22- * Server RULES Printout {richtext / multi-linugual }
23- * Optional: ACCEPTANCE / REJECT of server rules {changes players role}
24- * List all Admins (online or offline) & track last logoff date
25- * Keeps track of Elapsed game calendar days for players
26- * { Alter ADMIN text to look 'different' }
27- * Cyclic automatic Backups
22+ * [DONE] Server RULES Printout {richtext / multi-linugual }
23+ * [DONE] Optional: ACCEPTANCE / REJECT of server rules {changes players role}
24+ * [DONE] List all Admins (online or offline) & track last logoff date
25+ * [DONE] Keeps track of Elapsed game calendar days for players
26+ * [DONE] Alter ADMIN text to look 'different'
27+ * [DONE] Cyclic automatic Backups
28+ * ?????? Broadcast messages, on a schedule ??????
29+ * Status/MOTD/Server name : custom formats to indicate server state/time/things
2830 */
2931
3032 private ICoreAPI API { get; set; }
@@ -143,8 +145,8 @@ namespace AdminToolkit
143145 /// <param name="byPlayer">By player.</param>
144146 /// <param name="channelId">Channel identifier.</param>
145147 /// <param name="message">Message.</param>
146- /// <param name="consumed">Consumed.</param>
147- private string BoomingVoiceOfAuthority(IServerPlayer byPlayer, int channelId, string message, BoolRef consumed)
148+ /// <param name="consumed">Consumed.</param>
149+ private void BoomingVoiceOfAuthority(IServerPlayer byPlayer, int channelId, ref string message, ref string data, BoolRef consumed)
148150 {
149151 if (AdminRoles.Contains(byPlayer.Role.Code)) {
150152 //Make text lined
@@ -159,9 +161,8 @@ namespace AdminToolkit
159161 }
160162 }
161163
162- return adminMessage.ToString( );
164+ message = adminMessage.ToString( );
163165 }
164- return message;
165166 }
166167
167168 private void SaveConfigSettings( )
--- a/AdminToolkit/Commands/BackupCycleCommand.cs
+++ b/AdminToolkit/Commands/BackupCycleCommand.cs
@@ -286,6 +286,7 @@ namespace AdminToolkit
286286 //ServerAPI.WorldManager.CurrentWorldName
287287 //ServerAPI.WorldManager.SaveGame.WorldName
288288 string worldNameTrimmed = Path.GetFileNameWithoutExtension(ServerAPI.WorldManager.CurrentWorldName);
289+
289290 fileFilter = $"{worldNameTrimmed}-*{GlobalConstants.WorldSaveExtension}";
290291 Logger.VerboseDebug("File Filter: {0}", fileFilter);
291292
--- /dev/null
+++ b/AdminToolkit/Commands/BannerControl.cs
@@ -0,0 +1,15 @@
1+using System;
2+
3+using Vintagestory.API.Server;
4+
5+namespace AdminToolkit
6+{
7+ public class BannerControl : AdminModCommand
8+ {
9+ public BannerControl(ICoreServerAPI _serverAPI) : base(_serverAPI)
10+ {
11+
12+ }
13+ }
14+}
15+
--- a/AdminToolkit/MechTurk.cs
+++ b/AdminToolkit/MechTurk.cs
@@ -171,6 +171,16 @@ namespace AdminToolkit
171171 throw new NotImplementedException( );
172172 }
173173
174+ public PlayerGroupMembership GetGroup(int groupId)
175+ {
176+ throw new NotImplementedException( );
177+ }
178+
179+ public PlayerGroupMembership[ ] GetGroups( )
180+ {
181+ throw new NotImplementedException( );
182+ }
183+
174184 public bool HasPrivilege(string privilegeCode)
175185 {
176186 return true;//Robot can do anything
--- a/AdminToolkit/modinfo.json
+++ b/AdminToolkit/modinfo.json
@@ -3,9 +3,9 @@
33 "name": "Administrator's Toolkit mod",
44 "description" : "Provides misc. Admin functions;\n list admins, print & accept rules (multi-lingual) , auto-backup...",
55 "authors": ["Melchior", ],
6- "version": "0.3.2",
6+ "version": "0.3.3",
77 "dependencies": {
8- "game": "1.10.0"
8+ "game": "1.11.0"
99 },
1010 "requiredonclient":false,
1111 "website": "https://osdn.net/users/melchior/pf/admintoolkit/"
--- a/AdminToolkit/readme.md
+++ b/AdminToolkit/readme.md
@@ -1,5 +1,5 @@
11 
2-Instructions for using the Administrator's Toolkit (V0.3.0);
2+Instructions for using the Administrator's Toolkit (V0.3.3);
33 ============================================================
44
55 It provides the (server side only) commands: