WalkSpeed
版本 1.0
用于设置玩家行走速度的极简基础插件。
功能:
- 可设置任意玩家的行走速度,玩家离线后设置依然生效。
- 无需权限(也永远不会添加权限)。仅对 OP(管理员)有效。
- 支持从控制台和游戏内执行。
命令:
- walkspeed <player> (目标速度为 0 到 1 之间的浮点值,含 0 和 1)
别名:speed
若未指定目标速度,则设置为默认值 (.2)。
待办事项(随缘更新):
- 添加 flyspeed、defaultwalkspeed 和 defaultflyspeed 命令。
- 通过配置文件为所有加入的玩家或拥有该配置的 OP 提供默认的行走/飞行速度选项。
- 允许管理员在玩家离线时更改其行走/飞行速度。
源代码:
如需获取源代码,请联系我 (morshu9001@gmail.com)。任何索要者我都会提供。
备注:
- 我制作此插件是因为当时缺乏此类简单且保持更新的插件。
- 本插件永远不会支持权限系统,原因有二:1. 我不知道如何添加;2. 它旨在供没有复杂配置需求的服务器所有者使用。
- 只要你不将我的代码单独重新发布并声称是自己原创的(例如在 BukkitDev 上),你对我代码的使用方式我毫不在意。如果你对其进行了修改、将其整合进更大的插件中,或者因本插件过时而自行维护,请随意操作。如果你想做带权限支持的版本,尽管去做;我只希望存在一个简洁的版本即可。
- 为什么速度是 0 到 1 之间的浮点值?我想让它的行为与 Bukkit 中的 setWalkSpeed 方法保持一致,该方法接受的输入类型即为此类。我曾见过接受 0 到 10 之间数值的插件,我不喜欢那种不必要的封装方式。
WalkSpeed
Version 1.0
The bare-bones simple plugin for setting a player's walking speed.
Features:
- Set any player's walking speed, stays applied after the player has logged off.
- No permissions (and there never will be). It just works for OPs only.
- Works from the console and ingame.
Command(s):
- walkspeed <player> (target speed as a float value from 0 to 1 inclusive)
Alias: speed
If target speed is left blank, sets the speed to default (.2).
To Do (whenever I feel like it):
- Add flyspeed, defaultwalkspeed, and defaultflyspeed commands.
- Add a default walking/flying speed option for all players who join or for OPs with a config file for that default speed.
- Allow admins to change players' walk/fly speeds while those players are offline.
Source Code:
Contact me (morshu9001@gmail.com) for the source. I'll give it to anyone who asks.
Notes:
- I made this because there weren't any up-to-date plugins like this that were simple.
- Permissions support will never exist for this because 1. I don't know how and 2. It's meant for server owners who don't have complicated setups.
- I don't care whatsoever what you do with my code as long as you don't repost it by itself as your own on BukkitDev. If you've modified it somehow, added it to a bigger plugin, or I let this get out of date, go ahead. Make a version with permissions support if you want; I only want one simple one to exist.
- Why is it a float value from 0 to 1? I wanted to make it just like the setWalkSpeed method in Bukkit, which takes that kind of input. I've seen plugins that take a value from 0 to 10, and I don't like it to be unnecessarily encapsulated like that.
评论 0
登录后参与评分
还没有评论,来抢沙发吧