AFKRegion (VIP, MVIP) icon

AFKRegion (VIP, MVIP) -----

Set AFK regions with rewards for players and premium players!



AFKRegion plugin, allows you to set multiple Afk regions, where the player after a certain time gets a reward! (A given command is executed).

Multiple Regions!
Each region has a configurable Title message when the player stands on the region and a configurable message when the player leaves the region.

EDIT TIME FOR EACH REGION!
Each region also has a configurable time after which we get the reward.

Customizable rewards
We can customize the rewards according to the region with the chances of dropping a given reward, and customize it with 3 different options:
Chance for a regular player, for a Vip or MVip ( Vip and MVip are used if the player has the appropriate permissions added to the rank. OP administration has MVip by default )

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



Successful use!
If you have any problems, please write in private message!



[​IMG]
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