RaidNotice

RaidNotice 1.3.6

This resource is currently unavailable for new purchases

The main purpose of the plugin is sending notices when player is being raided.
Notice contains information about what entity is destroyed, by what cordinates and if there is a sethome location near and what player is doing that.

If you have any issues, feel free to write to the support thread
or contact me in discord https://discord.gg/vNxPh4R

Can send raid notice to:
- chat, if player is online
- discord to player directly, Client API plugin is provided inside
- telegram to player directly
- steam to player directly (difficult to configure, please do not consider this the main feature)
- http://vk.com social network

how it looks like in chat on server
unknown.png


How it works, there are several ways (you should choose one of these):
- based on information who is owner/placed the building block or the object (notifyOnlyOwner config option)
- based on who are if owner of the raided building has friends and notify them all (notifyFriends config option)
- notify the clan of raided building (notifyClanButNotFriends config option)
- last one is notify all players that has building auth in raided building (notifyOnlyByBuildingPrivlidge config option), additianally can now send notice to owner when cupboard destroyed

Additional options:
- it won't ever send your a notice if you're destroying your own house (if you didn't set it in the config - notifyOnSelfRaid options)
- if you have set home near destroyed object, you'll receive this info (n-teleportation plugin needed with checkForHomesNear option)

Permissions:
- raidnotice.canonline - notice can be sended to chat if player is online
- raidnotice.canvk - notice can be sended to vkontakte
- raidnotice.candiscord - notice can be sended to discord
- raidnotice.cantelegram - notice can be sended to telegram
- raidnotice.cansteam - notice can be sended to steam by bot

What you need to setup to make the plugin work width Discord:
  1. setup your server
  2. invite users
  3. register bot application for server https://discordapp.com/developers/applications/me
  4. authorize your bot https://discordapp.com/oauth2/authorize?client_id=YOUT_BOT_CLIENT_ID&scope=bot&permissions=8
  5. Auth bot with gateway.html provided
  6. Save DiscordApi config and reload the plugin
  7. You should
  8. User joined discord server can setup in-game his discord account by command /rn discord HisNickName#his_id
  9. when ONLY HIS HOUSE get raided - he'll get a message
What you need to setup to make the plugin work width Telegram:
  1. register bot in https://telegram.me/botfather
  2. save token to config
  3. players must run in-game command and send auth-code to your bot
STEAM BOT: UNSUPPORTED, PROVIDED AS IS
  1. Please do not consider this the main feature. At first - this is work in progress and an experiment and additional cool feature, so please, expect bugs and that it not cover all the shit could happen with steam or so on...
  2. you should have steam account for each server that will send notices
  3. this account should have enough friends and spent 5$ (steam requirement)
  4. you should run anywhere all the time NODEJS application, provided with plugin
  5. just run it "nodejs index.js" (meaning you should run npm install at first and having nodejs installed), one application can stand for a few your servers, BUT with different steam bot accounts ONLY, this script should be running all the time
  6. on first run, it will generate config, you should copy "apiKeyAddServer" from it
  7. edit raidnotice.json config and paste here "apiKeyAddServer" from previous step to "SteamBotServerKeyAdd"
  8. SteamBotUrl - write "http://YOUR_IP_WHERE_NODEJS_APP_RUNNING:PORT_NODEJS_SAID"
  9. SteamBotServerMainKey - don't touch
  10. SteamApiKey - take here http://steamcommunity.com/dev/apikey
  11. fill in SteamBotLogin, SteamBotPassword, SteamBotSteamId, SteamBotName - name that will be should in steam
  12. you need to turn off steamguard for this account or enter auth code on bot start in nodejs app window
  13. now you can turn on sendSteam option
  14. if your bot came online and stays - all ok, but there can be issues still
With Vkontakte:
  1. for vkontakte you must get token from your group options from "Callback API"
  2. player must run command /rn vk https://vk.com/his_url_page
  3. player must send at least one message to your group

Player commands:
/rn disable - remove discord/vk accounts tied to you
/rn vk https://vk.com/page - tie vk user
/rn discord "nickname#id" - tie user from discord server
/rn telegram add - tie user from telegram

Admin commands:
/raid.emu - prints debug info about looking at entity

Configuration File:
Code:
{
  "Homes": {
    "checkForHomesNear": true,
    "homeDistance": 60.0
  },
  "RaiderName": {
    "showRaiderName": true,
    "showRaiderNameOnlyPermission": false,
    "showRaiderNamePermission": "raidnotice.showraidername"
  },
  "Settings": {
    "includeDateTimeToMessage": true,
    "noticePrefabsContainsWords": [
      "door",
      "window.bars",
      "window.glass",
      "floor.ladder.hatch",
      "floor.frame",
      "floor.grill",
      "wall.frame",
      "shutter",
      "external"
    ],
    "notifyClanButNotFriends": false,
    "notifyFriends": false,
    "notifyOnlyByBuildingPrivlidge": true,
    "notifyOnlyOwner": false,
    "notifyOnSelfRaid": false,
    "notifyOwnerIfNoBuildingPrivlidge": true,
    "sendDiscord": true,
    "sendDiscordIfOnline": false,
    "sendNextNoticeInterval": 10.0,
    "sendNextNoticeIntervalIfOnline": 30.0,
    "sendOnline": true
  },
  "Steam": {
    "sendSteam": false,
    "sendSteamIfOnline": false,
    "SteamApiKey": "",
    "SteamBotLogin": "",
    "SteamBotName": "",
    "SteamBotPassword": "",
    "SteamBotServerKeyAdd": "",
    "SteamBotServerMainKey": "",
    "SteamBotSteamId": "",
    "SteamBotUrl": "http://..."
  },
  "Telegram": {
    "sendTelegram": false,
    "sendTelegramIfOnline": true,
    "telegramToken": ""
  },
  "Vkontakte": {
    "sendVk": false,
    "sendVkIfOnline": true,
    "vkGroup": "https://vk.com/groupName",
    "vkToken": ""
  }
}


Configuration File for Discord API:

Code:
{
  "BotToken": "Bot 546546456456",
  "DefaultChannelID": 111111111,               //set here any of your channels, raid notice isn't using it
  "GuildID": "45435345",                         //your guild (discord server) ID
  "GuildMembersEverySeconds": 3600      //every X seconds get members of guild
}

Information

Author
wazzzup
First release
Last update
Rating
5.00 star(s) 8 ratings

Latest Release v1.3.6

Released
Feb 7, 2020 at 7:53 PM
Rating
5.00 star(s) 1 ratings


More resources from wazzzup

  • WipeBlock
    WipeBlock
    Allows blocking any items using after wipe in belt and wear slots
  • Voting
    Voting
    Allows easy creating votes on server

RaidNotice by wazzzup
© chaoscode.io Dec 9, 2017

Latest reviews

Good plugins, very active authors and support
A absolutely nec plugin to have for ANY Rust community, players love it. No more surprise offline raids. Thank You for making this.
This is working great now that I got it configured properly. Thanks for the extra help, patience, and a great mod!
Works great, never fails my players who use it.
This is an excellent plugin. I can tell you that a lot of my players really enjoy this. This is also a great way to prevent a lot of trolling on your server.
What we've all been waiting for! Works like a charm!
Works just as described.