Limited-time event, free/paid to receive rewards for a defined time.
Must be dependent:
PlayerPoints
Vault + Any economic plug-in that supports Vault, such as EssentialsX
Optional dependencies:
PlaceholderAPI
PlaceholderAPI variables:
%activity_hoeveelheid% Displays the number of players claimed
Directives and Permissions:
/activity Plugin help, no permissions
/activity open Open the active menu GUI without permission
/activity reload The plugin is overloaded and requires permission: activity.admin
Join the game to gain event menu item permissions:
activity.join
config.yml
Code (YAML):
#前缀 #prefix Prefix: '&6Activity >>'
# Language file # By default, the plug-in identifies the system language and automatically selects it. If the user wants to customize the language file, please add a custom name (see for example). # Custom language files cannot have the same name as in the lang folder! #语言文件 #默认由插件识别系统语言而自动选择,若用户想自定义语言文件请自行添加自定义名称(看例如)。 #自定义语言文件不能与lang文件夹下的名称相同! #例如: # For example: #language: ol language:
#数据储存方式,目前实现MySQL、SQLite、YAML的存储,主意:严格遵守大小写字母。 # Data storage, the current implementation of MySQL, SQLite, YAML storage, the idea: strictly comply with upper and lower case letters. storage-method: YAML
# Database connection information data: #连接地址 # Connection address address: '127.0.0.1'
#端口 # Ports port: 3306
#数据库名 # Database name database: 'mcpay'
#数据库用户 # Database user username: 'root'
#数据库密码 # Database Password password: '123456'
#MySQL附加属性例如:?useSSL=false,等等。 #MySQL additional properties such as:? useSSL=false, and so on. Additional-url: "" #连接池操作 HikariCP: #连接超时时间 默认值:30000(30秒) # Connection timeout Default: 30000 (30 seconds) connectionTimeout: 30000
# Minimum number of free connections minimumIdle: 10
#池允许达到的最大大小,包括空闲和正在使用的连接 # Maximum pool size allowed, including free and active connections maximumPoolSize: 50
#活动菜单配置 # Activity menu configuration item: #是否启用 # Whether to enable enable: true
#菜单名字 # Menu name name: '&6Limited time activity'
#菜单物品类型 # Menu item type Material: COMPASS
lore: -
"&4Limited time event!" -
"&4Waiting for you to pick it up!"
reward.yml
Code (YAML):
#Project name #abc # Item name # name: "&a限时领取点券" # Item ID # Material: COMPASS # Type: GRATIS (free), PAY (paid) # type: GRATIS # Payment type: POINTS (Bonds), VAULT (gold, game currency) # payType: POINTS # Amount paid # amount: 10 # Start time # startTime: "2023-04-29 00:00:00" # End time # endTime: "2023-05-29 00:00:00" # Items displayed in lore # lore: # - "&a规定时间内领取点券" # - "&a规定时间内领取点券" # - "&a规定时间内领取点券" # - "&a规定时间内领取点券" # Execute instruction # command: # - "p give %player_name% 30" abc:
name: "&aMay Day limited time activities" Material: COMPASS
type: GRATIS
payType: POINTS
amount: 10
startTime: "2023-04-29 00:00:00" endTime: "2023-05-03 23:59:59" lore: -
"&a for fun to celebrate the arrival of May Day" -
"" -
"&a So the player is in" -
"During the period from 29 to 3 May a4" -
"&a Receive 60 points for free" -
"a happy May Day to all." command: -
"p give %player_name% 60"