Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_Ebhmr3qs.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
NeverLoseYourSphere (DontLoseYourSphere) - 墨喵 Minecraft 资源
NeverLoseYourSphere (DontLoseYourSphere) 图标

NeverLoseYourSphere (DontLoseYourSphere)

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.8
本资源为搬运资源,原资源地址: https://modrinth.com/mod/dontloseyoursphere
资源信息

Minecraft 版本: 1.13 1.13.1 1.13.2 1.14 1.14.1 1.14.2 1.14.3 1.14.4 1.15 1.15.1 1.15.2 1.16 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: paper purpur

资源介绍

NeverLoseYourSphere (formely DontLoseYourSphere)

A simple plugin to prevent players from losing their sphere by placing it on the ground.

Plugin preview

Features

  • Blocks player head placement — prevents players from placing any player head, both floor (PLAYER_HEAD) and wall (PLAYER_WALL_HEAD) variants, so they can't accidentally lose their sphere/head.
  • Random feedback message — when a placement is blocked, the player receives a message; if multiple messages are configured, one is picked at random for variety.
  • Fully customizable messages — define your own texts in config.yml via the additional-messages list; the default message is always included.
  • Color & format code support — use the & character in your messages (e.g. &7, &a, &l) and it is automatically converted to Minecraft's § color codes.
  • Multi-language ready — built-in en and ru support, switchable with the language setting in the config.
  • Lightweight & dependency-free — tiny, single-listener plugin with no external dependencies; just drop it into plugins/.
  • Broad compatibility — built against Bukkit/Spigot API 1.13+, so it runs on modern Minecraft servers.

How does it work?

Because all players equip the sphere in their offhand, they have a change of accidentally placing it down and losing all the effects of the sphere and the money they spent on the sphere itself. This plugin prevents all of that by cancelling the place event:

@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onPlayerHeadPlace(BlockPlaceEvent event) {
    Material type = event.getBlockPlaced().getType();

    if (type == Material.PLAYER_HEAD ||
        type == Material.PLAYER_WALL_HEAD ||
        (type.name().startsWith("PLAYER_") && type.name().endsWith("HEAD"))) {

        event.setCancelled(true);

        ...
        }
    }
}
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
KubeJS Generator

价格:0 墨喵币
下载量:0

查看详情
sign presets

价格:0 墨喵币
下载量:0

查看详情
Phanta's 3D Katanas

价格:0 墨喵币
下载量:0

查看详情
Gray's Mob Overhaul

价格:0 墨喵币
下载量:0

查看详情