Prevents some items from being used for a limited period of time

Supported Games
GameServerKingsGameServerKings

This plugin prevents players from putting items onto their belt and using some clothes for a limitied period of time. Now with fully configuratable GUI and panel on screen, that would tell how much time left before the block fades.

Permissions

  • itemsblocker.bypass -- Allows player to bypass the item blocks

If player tries to put something from the list to their belt or use any listed clothes - GUI with timeleft shows up.

Console Commands

  • ib.refresh -- Refresh the current image; requires permission itemsblocker.refresh

Configuration

{
  "Block end time": "01.10.2017 04:29:17",
  "Hour of block after wipe": 30,
  "Chat prefix": "[Items Blocker]",
  "Chat prefix color": "#f44253",
  "Use chat insted of GUI": false,
  "Bypass permission": "itemsblocker.bypass",
  "GUI Settings": {
    "Backgound for main panel": {
      "Minimum anchor": null,
      "Maximum anchor": null,
      "Color": "0 0 0 0.8"
    },
    "Main panel settings (shows if player attemts to use blocked cloth/item)": {
      "Minimum anchor": "0.266 0.361",
      "Maximum anchor": "0.734 0.639",
      "Color": "#42e2f49f"
    },
    "Settings for the text on main panel": {
      "Size": 20,
      "Outline": {
        "Use Outline": true,
        "Outline color": "0 0 0 1",
        "Outline distance": "1.0 -1.0"
      },
      "Minimum anchor": "0 0",
      "Maximum anchor": "1 1",
      "Color": "#f4d041"
    },
    "Use On Screen Panel": true,
    "On Screen Panel (shown if the block is active)": {
      "Minimum anchor": "0.016 0.028",
      "Maximum anchor": "0.172 0.167",
      "Color": "0 0 0 0.7"
    },
    "Text settings for On Screen Panel": {
      "Size": 13,
      "Outline": {
        "Use Outline": true,
        "Outline color": "0 0 0 1",
        "Outline distance": "1.0 -1.0"
      },
      "Minimum anchor": "0 0",
      "Maximum anchor": "0.66 1",
      "Color": "green"
    },
    "Image (shown on On Screen Panel": {
      "Minimum anchor": "0.67 0.25",
      "Maximum anchor": "0.92 0.75",
      "Link to the image or file in the data folder": "http://www.rigormortis.be/wp-content/uploads/rust-icon-512.png",
      "Opacity of the image": 0.8
    }
  },
  "List of blocked items": [
    "Satchel Charge",
    "Timed Explosive Charge",
    "Eoka Pistol",
    "Custom SMG",
    "Assault Rifle",
    "Bolt Action Rifle",
    "Waterpipe Shotgun",
    "Revolver",
    "Thompson",
    "Semi-Automatic Rifle",
    "Semi-Automatic Pistol",
    "Pump Shotgun",
    "M249",
    "Rocket Launcher",
    "Flame Thrower",
    "Double Barrel Shotgun",
    "Beancan Grenade",
    "F1 Grenade",
    "MP5A4",
    "LR-300 Assault Rifle",
    "M92 Pistol",
    "Python Revolver"
  ],
  "List of blocked clothes": [
    "Metal Facemask",
    "Metal Chest Plate",
    "Road Sign Kilt",
    "Road Sign Jacket",
    "Heavy Plate Pants",
    "Heavy Plate Jacket",
    "Heavy Plate Helmet",
    "Riot Helmet",
    "Bucket Helmet",
    "Coffee Can Helmet"
  ],
  "List of blocked ammunition": [
    "HV Pistol Ammo",
    "Incendiary Pistol Bullet",
    "HV 5.56 Rifle Ammo",
    "Incendiary 5.56 Rifle Ammo",
    "Explosive 5.56 Rifle Ammo",
    "12 Gauge Slug",
    "High Velocity Arrow",
    "Incendiary Rocket",
    "Rocket",
    "High Velocity Rocket"
  ]
}

Localization

{
  "ItemBlocked": "Using this item is blocked!",
  "BlockTimeLeft": "\n{0}d {1:00}:{2:00}:{3:00} until unblock.",
  "Weapon line 2": "\nYou can only use Hunting bow and Crossbow",
  "Cloth line 2": "\nYou can only use wood and bone armor!",
  "OnlyPlayer": "This command can be executed only from the game!",
  "OnScreenText": "Some of the items are blocked!",
  "Ammo blocked": "The ammo you are trying to use is blocked!"
}

Item names can be full engilsh name, or shortname.

Notes

  • By default all wapons but hunting bow and crossbow are in block.
  • By default all armor but wood and bone are in block.
  • By default most types of ammo are blocked.
  • If you don't want to block items or clothes at all - leave relevant config lists empty.
  • Now also allow bots to use any weapons while the block is on.
  • Basicly it was made to block usage of weapons for some time after wipe.
  • It also blocks players from using some clothes.
  • The image would be automaticly downloaded on the first plugin start.
  • If you would change the image link (or path to the file) it also would be automatically re-downloaded.

TODO

Command that would allow any player to see what items are blocked.

This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.

10.0K downloads
31 watchers

imported