Deleting a default store leaves it active
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
调研方向
先阅读 DeleteCommand 以及维护 Store.STORES、Store.DEFAULT_STORES 和 config.yml 的代码;追踪默认商店如何按世界以及通过全局 null 条目建立键。添加或扩展一个测试,先删除默认商店,再尝试从该商店购买。完成标准是删除操作清除内存和配置中的默认值,并且之后的购买不再成功。
由索引模型根据 Issue 内容生成。
描述
Problem
Deleting a store that's a default store doesn't clear it as the default. DeleteCommand only removes it from Store.STORES, so it stays in Store.DEFAULT_STORES and in config.yml.
Until the next restart, players in that world are still served by the deleted store. Reproduced in a test: after /shop delete Def -f, /shop buy stone 1 still succeeded, and the player's money went to a store that no longer exists.
Done when
- Deleting a store removes it from the default stores in memory and in the config, for its world and for the global
nullentry. - A test covers buying after the default store is deleted.
- 主要语言
- Java
- 星标
- 1
- 派生
- 0
- 平均合并
- 2 小时 17 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BrendonButler/Shops 的其他 Issue
-
dependencies enhancement
难度 2/5 1-3 小时 新手友好度 76/100
BrendonButler/Shops#79 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
BrendonButler/Shops#69 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
BrendonButler/Shops#68 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
BrendonButler/Shops#67 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
BrendonButler/Shops#66 ·
维护者通常 1 天内回复
查看 BrendonButler/Shops 的全部 Issue
相似的 Issue
-
Type: Possible bug
难度 2/5 1-3 小时 新手友好度 84/100
AntennaPod/AntennaPod#8895 ·
维护者通常 1 天内回复
-
bug build failed
难度 1/5 1 小时以内 新手友好度 91/100
objectionary/eo#9852 · 1 条评论 ·
维护者通常 2 天内回复
-
finsim-core good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
Require-Capability osgi.ee still says JavaSE 1.8 but classes are compiled for Java 11可能已有人在做 @arturobernalg 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
eclipse-ee4j/angus-mail#232 ·
维护者通常 3 天内回复
-
area/config area/kubernetes
难度 1/5 1 小时以内 新手友好度 88/100
quarkusio/quarkus#58234 · 1 条评论 ·
维护者通常 2 天内回复