From bfedf5d2bb0823d5a9c9de77d52312733aac0d77 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 18 Jun 2020 16:12:35 +0200 Subject: [PATCH] Use assembly name and version --- GCMC/GCMCPlugin.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GCMC/GCMCPlugin.cs b/GCMC/GCMCPlugin.cs index cc76000..a5e39ed 100644 --- a/GCMC/GCMCPlugin.cs +++ b/GCMC/GCMCPlugin.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using System.Threading.Tasks; using GamecraftModdingAPI; using GamecraftModdingAPI.Blocks; @@ -15,8 +16,8 @@ namespace GCMC { public class GCMCPlugin : IPlugin { - public string Name { get; } = "GCMC"; - public string Version { get; } = "v0.0.1"; + public string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name; + public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString(); private readonly Dictionary mapping = new Dictionary(10); private JsonSerializer _serializer = JsonSerializer.Create();