LobbyPresents (大堂礼物-[圣诞季节的有趣插件])
LobbyPresents是一个在圣诞季节使用的有趣插件。玩家可以在地图中找到 礼物 并累积。找到礼物时可以得到奖励。管理员可以通过命令获得礼物头颅。支持uuid、mysql、placeholderAPI。
配置
MYSQL:
Enable: false
host: 'localhost'
port: '3306'
database: 'LobbyPresents'
table_name: 'presents'
username: 'root'
password: '123'
Effect:
distance: 5
ticks: 40
canclaim: VILLAGER_HAPPY
claimed: CRIT
Messages:
found: "&a发现了一个礼物! &e(&b%found%&e\/&b%total%&e)"
alreadyfound: "&c已经发现过!"
completed: "&b圣诞快乐!! &c(&a%found%&f\/&a%total%&c)"
actionbar: "&b&lLobby Presents &c(&a%found%&f\/&a%total%&c)"
actionbar-completed: "&b&lLobby Presents &a&l已完成!&f &c(&a%found%&f\/&a%total%&c)"
Actionbar:
enable: false
Sounds:
found: LEVEL_UP
alreadyfound: CREEPER_DEATH
Max: 5
Rewards:
'1': 'say hi%player%,say Good %player%'
'2': 'say hi%player%,say Good %player%'
'5': 'say hi%player%,say Good %player%'
loc:
'1':
w: worldname
x: -0
y: 0
z: 0
'2':
w: worldname
x: -0
y: 0
z: 0
'3':
w: worldname
x: -0
y: 0
z: 0
'4':
w: worldname
x: -0
y: 0
z: 0
'5':
w: worldname
x: -0
y: 0
z: 0
data:
user: u-u-i-d: 1,2,3,4
命令
权限:lobbypresents.admin
- /lps help {page}
- /lps list
- /lps set {id}
- /lps remove {id}
- /lps reward
- /lps reward settype {Sequence/Custom/Both}
- /lps reward setsequence {sequence} {none/cmd1,cmd2,...}
- /lps reward setcustom {id_presents} {none/cmd1,cmd2,...}
- /lps heads
- /lps reload
- /lps clearuserdata {playername}
- /lps checkversion
事件
PlayerClickClaimedPresentEvent Code (Java):
@EventHandler
public void onPlayerClickPresents(PlayerClickClaimedPresentEvent e){}
代码
Config.yml Code (YAML):
MYSQL:
Enable: false
host: 'localhost'
port: '3306'
database: 'LobbyPresents'
table_name: 'presents'
username: 'root'
password: '123'
Effect:
distance: 5
ticks: 40
canclaim: VILLAGER_HAPPY
claimed: CRIT
Messages:
found: "&aYou found a present! &e(&b%found%&e\/&b%total%&e)"
alreadyfound: "&cFound already!"
completed: "&bMerry Christmas!! &c(&a%found%&f\/&a%total%&c)"
actionbar: "&b&lLobby Presents &c(&a%found%&f\/&a%total%&c)"
actionbar-completed: "&b&lLobby Presents &a&lCompleted!&f &c(&a%found%&f\/&a%total%&c)"
Actionbar:
enable: false
Sounds:
found: LEVEL_UP
alreadyfound: CREEPER_DEATH
Max: 5
Rewards:
'1': 'say hi%player%,say Good %player%'
'2': 'say hi%player%,say Good %player%'
'5': 'say hi%player%,say Good %player%'
loc:
'1':
w: world
x: -103
y: 64
z: 431
'2':
w: world
x: -102
y: 64
z: 431
...
data:
uuid:
uuiduuiduuiduuid: 1,2,3,4
收录

![LobbyPresents (大堂礼物-[圣诞季节的有趣插件])第1张-SODA LobbyPresents (大堂礼物-[圣诞季节的有趣插件])](https://i.sodamc.com/spigotres/zRwl1WYiEe.jpg)

