# 这是我的第一个插件
欢迎在下方评论区留言,告诉我你希望这个插件未来添加哪些功能
如果你正在服务器上运行此插件,我非常希望能来看看你是如何配置的。如果不介意的话,请私信我你的服务器 IP :)
更新时请删除旧配置文件
简介:
该插件允许用户每天有一次a机会转动“命运之轮”,从而获得随机物品。其中,获得稀有奖励的概率为 6/1000,而大约 1/100 的概率会一无所获。
奖励包含游戏中除不可合成方块之外的所有方块;这些不可合成的方块我已替换为沙子(如果你一直在疑惑为什么总是得到沙子的话)。
稀有奖励如下:
64 钻石块,
64 金块,
64 铁块,
64 绿宝石,
32 信标,
64 蛋糕。
[我欢迎关于稀有物品列表中的物品数量/物品的建设性意见]
指令:
/spin
旋转轮盘。
/wofreload
重新加载插件配置。
/wof
测试插件是否存在。
/reward [玩家]
给该玩家一次额外的旋转机会!如果他们已经在今日旋转过。
权限:
- wheeloffortune.*:
- 描述:拥有此权限节点的玩家可以获得所有 wheeloffortune 相关权限。
- 默认值:op
- wheeloffortune.reload:
- 描述:拥有此权限节点的玩家可重新加载配置。
- 默认值:op
- wheeloffortune.canspin:
- 描述:拥有此权限节点的玩家可进行旋转。
- 默认值:true
- wheeloffortune.timeroverride:
- 描述:拥有此权限节点的玩家可随时进行旋转。
- 默认值:op
- wheeloffortune.proceoverride:
- 描述:拥有此权限节点的玩家可在不扣费的情况下进行旋转。
- 默认值:op
[WheelOfFortune 1.7.5 +]
- wheeloffortune.x2:
- 描述:拥有此权限节点的玩家可旋转两次。
- 默认值:op
- wheeloffortune.x4:
- 描述:拥有此权限节点的玩家可旋转四次。
- 默认值:op
- wheeloffortune.x8:
- 描述:拥有此权限节点的玩家可旋转八次
- 默认值:op
- wheeloffortune.x16:
- description: 拥有此权限节点的玩家可以旋转十六次
- default: op
告示牌: [ WheelOfFortune 1.3.5+]
在告示牌的第一行输入 “[Spin]”。

随后 “[Spin]” 会变为紫色。

您已创建了一个旋转告示牌!
备注:
a 插件当前使用 ArrayList 存储玩家数据,因此在服务器重启或重载时数据会丢失。[正在修复中 / 需要文件写入方面的帮助]。
- 升级到 V 1.2 版本的用户,请在安装新版本之前删除旧的配置文件。谢谢。
待办事项:
添加管理员计时器覆盖功能。
添加配置文件
在配置文件中定义稀有物品
在配置文件中定义稀有物品的获取概率
将玩家消息中的物品 ID 替换为物品名称。
修复旋转过程中偶尔出现的错误。
添加“你什么都没赢到。”的提示消息。
当玩家获得稀有物品时发送广播通知。
记录玩家名称、日期时间和奖品。
添加可选的使用费用。[建议者:midnightfang22]
添加权限,允许 VIP 等特殊玩家每天进行多次旋转。[建议者:paintball89]
- 添加经济系统现金奖励。[建议者:Gametista]
配置文件:
默认配置
感谢支持,
- Idiotonastic

为什么不看看我的其他插件:
# This is my FIRST plugin #
Please feel free to post what you would like to see in this plugin in the future in the comment section bellow
If you are running this on a server i would very much like to come and see how you have implemented it, please pm me your ip if you wouldn't mind :)
WHEN UPDATING PLEASE DELETE OLD CONFIG FILE
Desc:
the plugin allows users one chance a day a to spin a Wheel of Fortune that will give them random items, there is a 6/1000 chance that they will get a Rare reward,
and an approximate chance of 1/100 that they will receive nothing.
The rewards contain every block in game. except non-craftible blocks, these i have replaced with sand. (in-case you were wondering why you always get sand)
The rare rewards are as follows:
64 Diamond block,
64 Gold Block,
64 Iron Block,
64 Emeralds,
32 Beacon,
64 cake's.
[ I am open to constructive comments about he amount of items / items in the Rare list]
Commands:
/spin
Spin the wheel.
/wofreload
Reloads the plugin config.
/wof
test if the plugin is there.
/reward [player]
give the player another spin! if they have already spun today.
permissions:
- wheeloffortune.*:
- description: Players with this node have all wheeloffortune permissions.
- default: op
- wheeloffortune.reload:
- description: Players with this node can reload
- default: op
- wheeloffortune.canspin:
- description: Players with this node can spin
- default: true
- wheeloffortune.timeroverride:
- description: Players with this node can spin anytime
- default: op
- wheeloffortune.proceoverride:
- description: Players with this node can spin without incurring a charge.
- default: op
[WheelOfFortune 1.7.5 +]
- wheeloffortune.x2:
- description: Players with this node can spin twice
- default: op
- wheeloffortune.x4:
- description: Players with this node can spin four times
- default: op
- wheeloffortune.x8:
- description: Players with this node can spin eight times
- default: op
- wheeloffortune.x16:
- description: Players with this node can spin sixteen times
- default: op
Signs: [ WheelOfFortune 1.3.5+]
Type "[Spin]" on the first line of the sign.

The "[Spin]" will then turn purple.

You have created a spin sign!
Notes:
a the plugin currently stores player data on an ArrayList so the data is lost on server restart / reload. [Working on a fix/ Need help with file writing].
- Those of you updating to V 1.2 please delete your previous config file prior to installing the new version. Thanks.
ToDo:
add an Op timer override.
extend this to a permission.
add Config File
make Rare items define in config
make chance of Rare define in config
replace item Id's on player message to item names.
fix occasional error during spin.
add "You won nothing." message.
add a broadcast when a player wins a rare.
log player name, dateTime and prize.
add optional cost for use.[Suggested by:midnightfang22]
add permission for more then one spin a day for like vip's and such.[Suggested by:paintball89]
- add economy cash rewards.[Suggested by:Gametista]
Config:
Default Config
Thanks,
- Idiotonastic

Why not check out my other plugins:
评论 0
登录后参与评分
还没有评论,来抢沙发吧