本帖最后由 _諵城`Tr)L 于 2022-3-4 15:03 编辑 
编程求助 !!! 求求你们不要水了
空岛地狱世界创建地狱门会传送到虚空中产生地狱门,
bukkit有没有地狱门生成的监听或者什么办法让地狱门无法生成
已经监听了玩家打火石右键黑曜石
考虑到可能还有其他情况打火生成地狱门
所以打算直接让地狱门的传送方块无法在空岛地狱生成
编程求助 !!! 求求你们不要水了
空岛地狱世界创建地狱门会传送到虚空中产生地狱门,
bukkit有没有地狱门生成的监听或者什么办法让地狱门无法生成
已经监听了玩家打火石右键黑曜石
考虑到可能还有其他情况打火生成地狱门
所以打算直接让地狱门的传送方块无法在空岛地狱生成
你是用Essentials吗,如果是可以用Essentials protect 
portal-creation: false 改为true
或者mv多世界的话
/mv modify set portalForm NONE 世界名
portal-creation: false 改为true
或者mv多世界的话
/mv modify set portalForm NONE 世界名
server.properties中allow-nether=true改allow-nether=false
164ebr 发表于 2022-3-3 23:17
server.properties中allow-nether=true改allow-nether=false
不要灌水这是编程求助
这个还是得看你玩的是啥流程
什么服务端什么版本
或者你有没有考虑直接改服务端当然要是作者没有反编译那就寄了
 本帖最后由 LingTu 于 2022-3-4 21:31 编辑 
这不是求助版吗?为什么这帮人这么水
来自 1.12.2 Bukkit doc : PortalCreateEvent 传送门创建事件
具有 setCancelled(boolean cancel)
@EventHandler
public void onPortalCreate(PortalCreateEvent e){
if ("worldName".equals(e.getWorld().getName())) {
e.setCancelled(true);
}
}
这不是求助版吗?为什么这帮人这么水
来自 1.12.2 Bukkit doc : PortalCreateEvent 传送门创建事件
具有 setCancelled(boolean cancel)
@EventHandler
public void onPortalCreate(PortalCreateEvent e){
if ("worldName".equals(e.getWorld().getName())) {
e.setCancelled(true);
}
}
LingTu 发表于 2022-3-4 21:28
这不是求助版吗?为什么这帮人这么水
来自 1.12.2 Bukkit doc : PortalCreateEvent 传送门创建事件
具有 se ...
好像无效
是不是要遍历生成的方块获取portal清除掉