Dreamworld
寻找维护者!
该插件已相当过时。不幸的是,我目前忙于其他项目。因此,如果您愿意接手此项目并修复其中的问题,请告诉我。
这是什么?
Dreamworld 允许玩家在离开床铺时,在另一个指定的“梦境”世界中醒来。
必须在配置文件中指定梦境世界。如果插件找不到指定名称的世界,它将在启动时自动尝试加载或创建该世界。默认世界名称为 "dreamworld"。
如果您希望为您的梦境世界使用自定义世界生成器,建议您先通过流行的世界管理插件(例如 Multiverse)创建该世界。
默认情况下,当玩家开始做梦时,他们的物品(物品栏和其他玩家状态信息)会被存储在内存中,然后被清空,传送至随机出生点(或者如果您尚未设置随机出生点,则传送到梦境世界的出生点),并被赋予一些药水效果(如高跳、短视野、速度、困惑等),以营造某种梦境般的印象。
您可以通过配置文件配置这些药水效果,以及许多其他内容。有关可配置功能的完整概述,请参阅下文。
经过一段随机时间(由配置文件指定)后,他们会被传送回原处并恢复之前的状态。
为了处理做梦期间的退出或服务器重启,插件会在这些情况下结束梦境(玩家会被传送回原处并恢复状态)。但在那之前,插件会将玩家当前的梦境状态(其物品、效果、位置、剩余梦境持续时间等)保存到文件中,以便稍后继续(当玩家重新登录或插件再次启用时)。
配置文件中有一个选项,用于确定插件在经过多少分钟后清除这些保存的梦境状态(默认:大约 3 天后)。
如果您想编辑在某些情况下向普通用户打印的消息,请查看 messages.yml 文件。
接下来是什么?
目前这是非常基础的功能。但对于这种梦境场景,添加额外功能的潜力是无限的。可能的想法包括:
噩梦、梦境逃脱、宝藏、场景、任务、使做梦的玩家对彼此不可见的选项、屏蔽聊天等..
如果我有时间,我可能会在未来的版本中添加其中一些功能。
或者如果您想添加某些功能:源代码在 GitHub 上,您可以自由提交拉取请求。
命令
通常不需要,但也许会有所帮助..
- /dw help - 命令列表。
- /dw setspawn - 设置当前世界的出生点。
- /dw dspawn - 将你传送至梦境世界。
- /dw spawn - 将你传送至主世界的出生点。
- /dw addspawn - 将你的当前位置添加到随机梦境出生点列表中。
- /dw clearspawns - 清除随机梦境出生点列表。
权限
- dreamworld.dream: 能够做梦。默认值: true
- dreamworld.admin: 访问管理员命令。默认值: op
带有解释的默认配置文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
#--------------------------------#
# Dreamworld |
#--------------------------------#
# 所有梦境设置:
dream:
# 如果不存在具有此名称的世界,它将创建一个。
# 如果您想使用自定义生成器,建议您首先使用像 Multiverse 这样的插件生成梦境世界。
world name: 'dreamworld'
# 是否生成动物和怪物:
no animal spawning: true
no monster spawning: false
# 离开床铺导致做梦的几率(介于 0 到 100 之间):
chance: 25
# 梦境的最小和最大持续时间(秒):
min duration in seconds: 25
max duration in seconds: 300
# 玩家开始做梦时,是否在随机出生点之一生成,而不是在梦境世界的出生点生成:
spawn randomly each time: true
random spawns: []
# 玩家开始时的游戏模式、生命值、饥饿度和药水效果:
gamemode:
apply: true
initial gamemode: 2
health:
apply: true
初始生命值: 20.0
饥饿值:
apply: true
初始饥饿值: 20
药水效果:
apply: true
初始药水效果:
SLOW_DIGGING:
持续时间: 2147483647
等级: 20
JUMP:
持续时间: 2147483647
等级: 10
SPEED:
持续时间: 2147483647
等级: 2
CONFUSION:
持续时间: 2147483647
等级: 1
NIGHT_VISION:
持续时间: 2147483647
等级: 100
BLINDNESS:
持续时间: 2147483647
等级: 100
# 玩家进入时是否完全清除状态并在退出时恢复:
清除并恢复玩家状态: true
# 在此分钟数后清除保存的梦境数据(应高于最大梦境时长):
超过 x 分钟后清除保存的梦境数据: 4320
# 如果剩余的梦境秒数低于此设置值,当玩家断开连接或尝试登录继续梦境时,将跳过这些剩余秒数:
剩余秒数低于时忽略: 10
# 是否修改玩家的个人视觉时间:
伪造客户端时间:
enabled: true
<span># 客户端将被设置到的时间:</span>
<span>时间(刻)</span><span>:</span> <span>12000</span>
<span># 改为随机选择时间?这些边界值决定时间与上述定义时间的随机偏差范围:</span>
<span>随机边界</span><span>:</span> <span>0</span>
<span># 启用此项后,梦境期间客户端时间不会改变:</span>
<span>固定时间</span><span>:</span> <span>true</span>
# 做梦的玩家是否会下雨:
伪造客户端天气:
raining: true
# 是否在梦境开始时从下方列表中随机选取一个声音播放:
梦境开始音效:
enabled: true
# 格式:"sound;volumn;pitch"
随机音效列表:
- "AMBIENCE_CAVE;1.0;1.0;"
- "WITHER_SPAWN;1.0;1.0"
# 为做梦的玩家禁用各种功能:
disabled:
hunger: true
# 伤害设置:如果玩家死亡,他将离开梦境。如果玩家掉入虚空但所有伤害被禁用,他将在某个梦境出生点重生。
摔落伤害: true
实体伤害: true
所有伤害: true
丢弃物品: false
拾取物品: false
天气变化: false
放置方块: false
破坏方块: false
# 允许的指令列表。所有其他指令对非管理员玩家均被阻止。请确保不要在此处放入任何传送类指令:
允许使用的指令:
- '/list'
- '/msg'
- '/m'
- '/r'
- '/reply'
- '/tell'
- '/whisper'
- '/login'
- '/register'
|
发现 Bug?或有想法?
请创建一个 工单。
Dreamworld
Looking for maintainer!
The plugin is quite outdated. Unfortunly I am too buisy with other projects currently. So if you want to help out by picking up this project and fixing its issues, let me know.
What is this?
Dreamworld gives players the chance to wake up in an other, specified "dream" world when they leave their bed.
The dream world has to be specified in the config. If the plugin does not find a world with the specified name, it will automatically attempt to load or even create this world at startup. The default worldname is "dreamworld".
If you want to use a custom world generator for your dream world, I suggest you to first create the world via one of the popular world management plugins (like for example Multiverse).
By default, when a player starts dreaming, their stuff (inventory and other player-state-information) is stored in memory, they are cleared, teleported to a random spawn location (or the dreamworld's spawn location, if you didn't set up random spawn locations yet) and they get assigned some potion effects (high jump, short view range, speed, confusion, etc..) to create some sort of dreaming-impression.
You can configure those potion effects in the config file by the way, together with a lot of other stuff. See below for a complete overview of the configurable features.
After a random time (specified by the config) they get teleported back and restored to their old state.
To handle quits or server restarts during dreams, the plugin ends the dream in those situations (the player gets teleported back and restored). But before that happens the plugin saves the player's current dream-state (his items, effects, location, remaining dream duration, etc.) to file for later continuation (when the player logs back in or the plugin gets enabled again).
In the config there is a option which determines after how many minutes the plugin shall purge those saved dream-states (default: after about 3 days).
If you want to edit the messages which are print to the normal users in certain situations, take a look at the messages.yml file.
What next?
This are the very first basic features for now. But the potential for additional features are endless for that dream scenario. Possible ideas are:
nightmares, dream escapes, treasures, scenarios, tasks, option to make dreaming players invisible for each other, blocking chat, etc..
If I get the time I might add some of them in future releases.
Or if you want to add something: the source code is on github and you are free to make pull requests.
Commands
Not needed in general but maybe helpful..
- /dw help - Command list.
- /dw setspawn - Sets the spawn location of your current world.
- /dw dspawn - Teleports you to the dream world.
- /dw spawn - Teleports you to the main world's spawn.
- /dw addspawn - Adds your current location to the list of random dream spawns.
- /dw clearspawns - Clears the list of random dream spawns.
Permissions
- dreamworld.dream: Ability to dream. default: true
- dreamworld.admin: Access to the admin commands. default: op
The default configuration file with explanations
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
#--------------------------------#
# Dreamworld |
#--------------------------------#
# All dream settings:
dream:
# If no world with this name exists, it will create one.
# If you want to use a custom generator, I suggest you to first generate the dream world with a plugin like Multiverse.
world name: 'dreamworld'
# Whether or not animals and monsters shall spawn:
no animal spawning: true
no monster spawning: false
# The chance that leaving a bed leads to a dream (between 0 and 100):
chance: 25
# The minimal and maximal durations for dreams in seconds:
min duration in seconds: 25
max duration in seconds: 300
# Whether or not the player shall spawn at one of the random spawns when he starts dreaming, instead of the dream worlds spawn:
spawn randomly each time: true
random spawns: []
# The gamemode, health, hunger and potion effects a player starts with:
gamemode:
apply: true
initial gamemode: 2
health:
apply: true
initial health: 20.0
hunger:
apply: true
initial hunger: 20
potion effects:
apply: true
initial potion effects:
SLOW_DIGGING:
duration: 2147483647
level: 20
JUMP:
duration: 2147483647
level: 10
SPEED:
duration: 2147483647
level: 2
CONFUSION:
duration: 2147483647
level: 1
NIGHT_VISION:
duration: 2147483647
level: 100
BLINDNESS:
duration: 2147483647
level: 100
# Whether or not the player shall be completely cleared on enter and restored on exit:
clear and restore player: true
# Purge saved dream data after this amount of minutes (should be higher than the max dream duration):
purge saved dream data after x minutes: 4320
# If the remaining dream seconds are less than those of this setting, the player will skips those remaining seconds if he disconnects or attempts to continue his dream on login:
ignore if remaining seconds is lower than: 10
# Whether or not the player's personal visual time shall be modified:
fake client time:
enabled: true
<span># The time to which the client will be set:</span>
<span>time (in ticks)</span><span>:</span> <span>12000</span>
<span># Set the time randomly instead? These bounds determine how much the time will randomly differ from the time defined above:</span>
<span>random bounds</span><span>:</span> <span>0</span>
<span># The client's time will not change during the dream with this enabled:</span>
<span>fixed time</span><span>:</span> <span>true</span>
# Whether or not it shall rain for the dreaming player:
fake client weather:
raining: true
# Whether or not it shall randomly pick one of the sounds from the list below and play it at dream start:
dream start sound:
enabled: true
# format: "sound;volumn;pitch"
random sounds list:
- "AMBIENCE_CAVE;1.0;1.0;"
- "WITHER_SPAWN;1.0;1.0"
# Disable various stuff for the dreaming player:
disabled:
hunger: true
# Damage settings: If the player dies, he leaves his dream. If the player falls into the void but all damage is disable, he will be respawned at some dream spawn.
fall damage: true
entity damage: true
all damage: true
item dropping: false
item pickup: false
weather: false
block placing: false
block breaking: false
# A list of allowed commands. All other commands are blocked for non-admin players. Make sure to not put any kind of teleportation command in here:
allowed commands:
- '/list'
- '/msg'
- '/m'
- '/r'
- '/reply'
- '/tell'
- '/whisper'
- '/login'
- '/register'
|
Bugs found? Or having an idea?
Then please create a ticket.
评论 0
登录后参与评分
还没有评论,来抢沙发吧