AFKRegion (VIP, MVIP) icon

AFKRegion (VIP, MVIP) -----

Set AFK regions with rewards for players and premium players!



Config.yml
Code (Text):
language: en ( Possible PL or ENG)


Example of region setting:

regions:
  afk:
    world: world
    min:
      ==: org.bukkit.Location
      world: world
      x: -11.601430693526677
      y: 63.0
      z: 16.50186599794443
      pitch: 0.0
      yaw: 0.0
    max:
      ==: org.bukkit.Location
      world: world
      x: -6.875426863051053
      y: 65.15814676123665
      z: 20.203358366171976
      pitch: 0.0
      yaw: 0.0
    exit-message: You have exited the AFK region.
    afk-progress-message: You are now in the AFK zone.
    afkTime: 60
    rewards:
    - command: 'give <player> apple 1'
      message: 'You recive apple!'
      common_chance: 100
      vip_chance: 100
      megavip_chance: 100

If you want to add colors to the message you can use a sign, for example: §c

[I][/I]
!!!WARNING!!!
If we have more than 1 prize to draw, we must set the odds so that the total is 100%. If we do not want a prize to fall for a given rank (vip, mvip), we set 0 next to this prize.



Commands only for admins!

Code (Text):
/afkregion addreward <region> - Adds a reward template to the config file in a region, and in it we set the commands, message and chances for a given rank.

/afkregion createafkregion <nameregion> - Creates a region with a given name. ( We need to determine the positions of the region beforehand!)

/afkregion reload - Loads data from config

/afkregion removeregion <nameregion> - deletes the entire region and its settings

/afkregion setafkpos1 and setafkpos2 - Sets the region's position in the square. Both positions must be set! Once both are set, its area is visualized!
Permissions:

Code (Text):
afkplugin.use - give permission for allcommands


afkplugin.vip - Gives permissions to earn rewards from vip chance

afkplugin.megavip - Gives permissions to earn rewards from Mvip chance



Resource Information
Author:
----------
Total Downloads: 41
First Release: Oct 23, 2024
Last Update: Oct 23, 2024
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings