Skip to content

Comments

fix: 尝试修复了某个问题#199

Merged
ColdeZhang merged 5 commits intoLunaDeerMC:masterfrom
lhx28:fix-sub_create_permission_bypass
Feb 5, 2026
Merged

fix: 尝试修复了某个问题#199
ColdeZhang merged 5 commits intoLunaDeerMC:masterfrom
lhx28:fix-sub_create_permission_bypass

Conversation

@lhx28
Copy link
Contributor

@lhx28 lhx28 commented Feb 4, 2026

不方便细说,您直接看一下代码吧

* @param dominion the dominion to check ownership of
* @throws DominionException if the sender is a player and is not the owner of the dominion
*/
public static void assertDominionOwner(@NotNull CommandSender sender, @NotNull DominionDTO dominion) throws DominionException {
Copy link
Collaborator

@ColdeZhang ColdeZhang Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议:改为直接使用此方法 assertDominionOwner判断
如果parent不为null则检查是否为parent的所有者,这样三行可以解决问题

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

您好,已按照您的建议修改代码,麻烦您再帮忙审核一下,谢谢

@ColdeZhang ColdeZhang merged commit 93cf6dc into LunaDeerMC:master Feb 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants