Search the Community
Showing results for tags 'extensions'.
-
Version 2.0.2
297 downloads
WHAT IS IT FOR? This is a tool that creates temporary notifications on the user's screen, used to facilitate messages between plugins and server users. CONSOLE COMMANDS toastify [toast_id] [player] [message] - to send a toast notification for a specific player toastify.global [toast_id] [message] - to send a toast notification for everyone PERMISSION toastify.use- the permission to access the toastify commands API </> // Send a toast notification for the target player // Returns the ID of the toast to destroy it if necessary // @deprecated string SendToast(BasePlayer player, string toastId, string message, float? duration); // Use this new one instead of the above: string SendToast(BasePlayer player, string toastId, string title, string message, float? duration); // Destroy a toast notification void DestroyToast(BasePlayer player, string toastId); GOOD WAY TO IMPLEMENT If you want to integrate your plugin with Toastify, I recommend that you add an option in the configuration file of your plugin that the user can link their notification ID with the notifications you will use, you can see an example of how this was implemented in the FurnaceUpgrades or TCLevels configuration file. CONFIGURATION The default configuration file of the plugin: SCREENSHOTFree- 4 comments
- 1 review
-
- 5