Skip to content

HandyS11/RustPluginTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MyPlugin

๐Ÿ“‘ Features

  • Be a template for your own plugin
  • Store the last connection time of a player
  • Store the number of death of a player

๐Ÿ”‘ Permissions

  • myplugin.admin - Allows player to use the /myplugin command

๐Ÿ“ Commands

  • myplugin help - Displays some help

โš™๏ธ Configuration

Default configuration:

{
  "Default Chat Avatar (steamId)": 0
}

๐Ÿณ๏ธ Localization

Default English localization:

{
  "PluginMissing": "The plugin \"SomePlugin\" was not found. Check on UMod: https://umod.org/plugins/someplugin",
  "NoPermission": "You are not allowed to run this command!",
  "HelpMessage": "Some useful help!",
  "UnknownCommand": "Unknown command!"
}

๐Ÿช Hooks

DateTime? GetLastConnectionTime(ulong userId)
// Return the last connection time (DateTime?) of a player or null if the player is not found

int? GetNumberOfDeath(ulong userId)
// Return the number (int?) of death of a player or null if the player is not found

๐Ÿ–ผ๏ธ Credits

About

Template for Rust plugins

Resources

License

Stars

Watchers

Forks

Languages