shid
This commit is contained in:
parent
420a6ea316
commit
3009778195
|
@ -18,7 +18,9 @@ internal class Messages : IDisposable {
|
||||||
internal Messages(Plugin plugin) {
|
internal Messages(Plugin plugin) {
|
||||||
this.Plugin = plugin;
|
this.Plugin = plugin;
|
||||||
|
|
||||||
this.SpawnVfx();
|
if (this.Plugin.Config.ApiKey != string.Empty) {
|
||||||
|
this.SpawnVfx();
|
||||||
|
}
|
||||||
|
|
||||||
this.Plugin.Framework.Update += this.HandleSpawnQueue;
|
this.Plugin.Framework.Update += this.HandleSpawnQueue;
|
||||||
this.Plugin.ClientState.Login += this.SpawnVfx;
|
this.Plugin.ClientState.Login += this.SpawnVfx;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.0.1</Version>
|
||||||
<TargetFramework>net6.0-windows</TargetFramework>
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
|
@ -33,19 +33,20 @@ public class Plugin : IDalamudPlugin {
|
||||||
|
|
||||||
public Plugin() {
|
public Plugin() {
|
||||||
this.Config = this.Interface!.GetPluginConfig() as Configuration ?? new Configuration();
|
this.Config = this.Interface!.GetPluginConfig() as Configuration ?? new Configuration();
|
||||||
|
this.Vfx = new Vfx();
|
||||||
|
this.Messages = new Messages(this);
|
||||||
|
this.Ui = new PluginUi(this);
|
||||||
|
this.Commands = new Commands(this);
|
||||||
|
|
||||||
if (this.Config.ApiKey == string.Empty) {
|
if (this.Config.ApiKey == string.Empty) {
|
||||||
Task.Run(async () => {
|
Task.Run(async () => {
|
||||||
var resp = await new HttpClient().PostAsync("https://tryfingerbuthole.anna.lgbt/account", null);
|
var resp = await new HttpClient().PostAsync("https://tryfingerbuthole.anna.lgbt/account", null);
|
||||||
var key = await resp.Content.ReadAsStringAsync();
|
var key = await resp.Content.ReadAsStringAsync();
|
||||||
this.Config.ApiKey = key;
|
this.Config.ApiKey = key;
|
||||||
this.SaveConfig();
|
this.SaveConfig();
|
||||||
|
this.Messages.SpawnVfx();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Vfx = new Vfx();
|
|
||||||
this.Messages = new Messages(this);
|
|
||||||
this.Ui = new PluginUi(this);
|
|
||||||
this.Commands = new Commands(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user