1.5
New features: - The option "CooldownInSec.Global" has been added to give an alias a global cooldown that counts for all players. - The option "CooldownInSec.Player" has been added to give an alias a cooldown that counts for a single player. The permissions have been revised: - t2code.alias.admin -> t2c.alias.admin - t2code.alias.updatemsg -> t2c.alias.updatemsg - t2code.alias.command.reload -> t2c.alias.command.reload - t2code.alias.command.info -> t2c.alias.command.info - t2code.alias.buy.bypass -> t2c.alias.buy.all.bypass - The bypass for payment can now also be set individually for each alias / subalias: t2c.alias.buy.[alias].bypass / t2c.alias.sub.buy.all.bypass
This commit is contained in:
@@ -11,25 +11,43 @@ Alias:
|
||||
AliasList:
|
||||
- aliasexample1
|
||||
- aliasexample2
|
||||
-
|
||||
Permission:
|
||||
# Here you can say if a permission is needed to use the alias#
|
||||
Necessary: true
|
||||
# Here you can set the permission for the alias.
|
||||
# The placeholder <alias> is the alias name.
|
||||
# The placeholder <[alias] is the alias name.
|
||||
# If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias.
|
||||
Permission: 't2code.alias.use.<alias>'
|
||||
Permission: 't2c.alias.use.[alias]'
|
||||
# Here you can set a custom No Permission message for this alias. If you want to use the default message, just leave this blank.
|
||||
CustomNoPermissionMSG: ""
|
||||
|
||||
CooldownInSec:
|
||||
# Here you can set a global cooldown for this alias.
|
||||
# The value corresponds to the seconds.
|
||||
# At 0, the cooldown is deactivated.
|
||||
# The placeholder [alias] is the alias name.
|
||||
# Bypass permission: t2c.alias.cooldown.global.[alias].bypass
|
||||
# (The global cooldown is above the player cooldown).
|
||||
Global: 0
|
||||
# Here you can set a player-specific cooldown for this alias.
|
||||
# The value corresponds to the seconds.
|
||||
# At 0, the cooldown is deactivated.
|
||||
# The placeholder [alias] is the alias name.
|
||||
# Bypass permission: t2c.alias.cooldown.player.[alias].bypass
|
||||
Player: 0
|
||||
|
||||
Cost:
|
||||
# Here you can say if you have to pay for the alias
|
||||
Enable: false
|
||||
# Here you set the price
|
||||
Price: 0.0
|
||||
# Here you define if the bypass is activated or if you have to pay despite the bypass (t2code.alias.buy.bypass).
|
||||
# Here you define if the bypass is activated or if you have to pay despite the bypass (t2c.alias.buy.[alias].bypass).
|
||||
AllowByPass: true
|
||||
# Here you can set if you have to confirm if you want to pay before executing the command
|
||||
# In the config.yml you can set under 'buy.confirm.use' if a command, a chatListener or a GUI should be used to confirm the command.
|
||||
Confirm: true
|
||||
|
||||
Command:
|
||||
# Here you can tell the alias to execute one or more commands
|
||||
Enable: false
|
||||
@@ -41,7 +59,8 @@ Alias:
|
||||
BungeeCommand: false
|
||||
# Here you can specify one or more commands to be executed.
|
||||
# Placeholder: [player] = The player who executes the alias
|
||||
Commands: [ ]
|
||||
Commands: []
|
||||
|
||||
Message:
|
||||
# Here you can specify whether the player should receive a message.
|
||||
Enable: false
|
||||
@@ -67,7 +86,7 @@ Alias:
|
||||
# You can also use MiniMessage:
|
||||
# Wiki: https://docs.adventure.kyori.net/minimessage/format.html
|
||||
# WebUI: https://webui.adventure.kyori.net
|
||||
Messages: [ ]
|
||||
Messages: []
|
||||
|
||||
# Here you can specify that players with the permission () have a different function than other players.
|
||||
# For example, you can say that players should come to a certain point and players with the admin function only to the server to the position where they were before.
|
||||
@@ -78,9 +97,9 @@ Alias:
|
||||
# Here you can enable or disable the admin function
|
||||
Enable: false
|
||||
# Here you set the permission for the admin function
|
||||
# The placeholder <alias> is the alias name.
|
||||
# The placeholder [alias] is the alias name.
|
||||
# If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias.
|
||||
Permission: t2code.alias.admin
|
||||
Permission: t2c.alias.[alias].admin
|
||||
Command:
|
||||
# Here you can tell the alias to execute one or more commands
|
||||
Enable: false
|
||||
@@ -92,7 +111,8 @@ Alias:
|
||||
BungeeCommand: false
|
||||
# Here you can specify one or more commands to be executed.
|
||||
# Placeholder: [player] = The player who executes the alias
|
||||
Commands: [ ]
|
||||
Commands: []
|
||||
|
||||
Message:
|
||||
# Here you can specify whether the player should receive a message.
|
||||
Enable: false
|
||||
@@ -118,7 +138,7 @@ Alias:
|
||||
# You can also use MiniMessage:
|
||||
# Wiki: https://docs.adventure.kyori.net/minimessage/format.html
|
||||
# WebUI: https://webui.adventure.kyori.net
|
||||
Messages: [ ]
|
||||
Messages: []
|
||||
|
||||
Console:
|
||||
# Here you can define if the alias is also usable in the console and what it should do from there.
|
||||
@@ -130,9 +150,9 @@ Alias:
|
||||
# For this option, BungeeCord must be set to true in config.yml and the plugin must also work on the proxy as a bridge.
|
||||
BungeeCommand: false
|
||||
# Here you can specify one or more commands to be executed.
|
||||
Commands: [ ]
|
||||
Commands: []
|
||||
Message:
|
||||
# Here you can specify whether the player should receive a message.
|
||||
Enable: false
|
||||
# Specify here the message that the player should get.
|
||||
Messages: [ ]
|
||||
Messages: []
|
@@ -19,21 +19,38 @@ SubAlias:
|
||||
# Here you can say if a permission is needed to use the alias#
|
||||
Necessary: true
|
||||
# Here you can set the permission for the alias.
|
||||
# The placeholder <alias> is the alias name.
|
||||
# The placeholder [alias] is the subalias name.
|
||||
# If you have set multiple alias referrers in the list 'Alias.SubAliasList' you have a permission for each alias.
|
||||
Permission: 't2code.alias.use.subalias.<alias>'
|
||||
Permission: 't2c.subalias.use.[alias]'
|
||||
# Here you can set a custom No Permission message for this alias. If you want to use the default message, just leave this blank.
|
||||
CustomNoPermissionMSG: ""
|
||||
|
||||
CooldownInSec:
|
||||
# Here you can set a global cooldown for this alias.
|
||||
# The value corresponds to the seconds.
|
||||
# At 0, the cooldown is deactivated.
|
||||
# The placeholder [alias] is the subalias name.
|
||||
# Bypass permission: t2c.alias.sub.cooldown.global.[alias].bypass
|
||||
# (The global cooldown is above the player cooldown).
|
||||
Global: 0
|
||||
# Here you can set a player-specific cooldown for this alias.
|
||||
# The value corresponds to the seconds.
|
||||
# At 0, the cooldown is deactivated.
|
||||
# The placeholder [alias] is the subalias name.
|
||||
# Bypass permission: t2c.alias.sub.cooldown.player.[alias].bypass
|
||||
Player: 0
|
||||
|
||||
Cost:
|
||||
# Here you can say if you have to pay for the alias
|
||||
Enable: false
|
||||
# Here you set the price
|
||||
Price: 0.0
|
||||
# Here you define if the bypass is activated or if you have to pay despite the bypass (t2code.alias.buy.bypass).
|
||||
# Here you define if the bypass is activated or if you have to pay despite the bypass (t2c.alias.buy.[alias].bypass).
|
||||
AllowByPass: true
|
||||
# Here you can set if you have to confirm if you want to pay before executing the command
|
||||
# In the config.yml you can set under 'buy.confirm.use' if a command, a chatListener or a GUI should be used to confirm the command.
|
||||
Confirm: true
|
||||
|
||||
Command:
|
||||
# Here you can tell the alias to execute one or more commands
|
||||
Enable: false
|
||||
@@ -46,6 +63,7 @@ SubAlias:
|
||||
# Here you can specify one or more commands to be executed.
|
||||
# Placeholder: [player] = The player who executes the alias
|
||||
Commands: []
|
||||
|
||||
Message:
|
||||
# Here you can specify whether the player should receive a message.
|
||||
Enable: false
|
||||
@@ -82,9 +100,9 @@ SubAlias:
|
||||
# Here you can enable or disable the admin function
|
||||
Enable: false
|
||||
# Here you set the permission for the admin function
|
||||
# The placeholder <alias> is the alias name.
|
||||
# The placeholder [alias] is the alias name.
|
||||
# If you have set multiple alias referrers in the list 'Alias.SubAliasList' you have a permission for each alias.
|
||||
Permission: t2code.alias.admin
|
||||
Permission: t2c.alias.sub.[alias].admin
|
||||
Command:
|
||||
# Here you can tell the alias to execute one or more commands
|
||||
Enable: false
|
||||
@@ -97,6 +115,7 @@ SubAlias:
|
||||
# Here you can specify one or more commands to be executed.
|
||||
# Placeholder: [player] = The player who executes the alias
|
||||
Commands: []
|
||||
|
||||
Message:
|
||||
# Here you can specify whether the player should receive a message.
|
||||
Enable: false
|
||||
|
@@ -10,7 +10,7 @@ plugin:
|
||||
# In this option you can set the language of the plugin.
|
||||
language: english
|
||||
updateCheck:
|
||||
# In this option you can set if players with the permission 't2code.alias.updatemsg' will get an update message on join when an update for the plugin is available.
|
||||
# In this option you can set if players with the permission 't2c.alias.updatemsg' will get an update message on join when an update for the plugin is available.
|
||||
onJoin: true
|
||||
# In this option you can set whether you want to receive and display beta and snapshot versions in the update check.
|
||||
seePreReleaseUpdates: true
|
||||
|
@@ -16,20 +16,39 @@ commands:
|
||||
aliases: [t2c-a, alias]
|
||||
|
||||
permissions:
|
||||
t2code.alias.admin:
|
||||
t2c.alias.admin:
|
||||
default: op
|
||||
children:
|
||||
t2code.alias.updatemsg: true
|
||||
t2code.alias.command.reload: true
|
||||
t2code.alias.command.info: true
|
||||
t2code.alias.buy.bypass: true
|
||||
t2c.alias.updatemsg: true
|
||||
t2c.alias.command.reload: true
|
||||
t2c.alias.command.info: true
|
||||
|
||||
t2c.alias.buy.all.bypass: true
|
||||
t2c.alias.cooldown.global.all.bypass: true
|
||||
t2c.alias.cooldown.player.all.bypass: true
|
||||
|
||||
t2c.alias.sub.buy.all.bypass: true
|
||||
t2c.alias.sub.cooldown.global.all.bypass: true
|
||||
t2c.alias.sub.cooldown.player.all.bypass: true
|
||||
|
||||
|
||||
t2code.alias.buy.bypass:
|
||||
t2c.alias.updatemsg:
|
||||
default: op
|
||||
t2code.alias.updatemsg:
|
||||
t2c.alias.command.reload:
|
||||
default: op
|
||||
t2code.alias.command.reload:
|
||||
t2c.alias.command.info:
|
||||
default: op
|
||||
t2code.alias.command.info:
|
||||
|
||||
t2c.alias.buy.all.bypass:
|
||||
default: op
|
||||
t2c.alias.cooldown.global.all.bypass:
|
||||
default: op
|
||||
t2c.alias.cooldown.player.all.bypass:
|
||||
default: op
|
||||
|
||||
t2c.alias.sub.buy.all.bypass:
|
||||
default: op
|
||||
t2c.alias.sub.cooldown.global.all.bypass:
|
||||
default: op
|
||||
t2c.alias.sub.cooldown.player.all.bypass:
|
||||
default: op
|
||||
|
Reference in New Issue
Block a user