button events and stuff properly work

This commit is contained in:
XtraCube committed 2024-11-24 21:25:51 -05:00
1 parent eac41a7c9e
commit 8884996c06
5 files changed
+52 -5

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ public partial class ExamplePlugin : BasePlugin, IMiraPlugin
{
Logger<ExamplePlugin>.Warning("Freeze button clicked!");
e.Cancel();
e.Button.SetTimer(5f);
e.Button.SetTimer(15f);
});
MiraEventManager.RegisterEventHandler<MiraButtonCancelledEvent<FreezeButton>>(e=>