▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/LightShowRegion
LightShowRegion

LightShowRegion

Displaying the region in the ActionBar

206
1

DEPENDENCIES: PLACEHOLDERAPI


› Features

  • Show or hide global region
  • Shows if this is your region (owner or member)
  • Shows whether this region is occupied (if you are not the owner or member)
  • Blacklist of regions
  • Renaming regions (for example the spawn region will be output as &6SPAWN)
  • Full support for WorldGuard

› Review


› Commands and Permissions

CommandDescriptionPermission
lightshowregion / lsrHelp by commandslightshowregion.help
lightshowregion toggle (<actionbar>/<bossbar>)Switch the region displaylightshowregion.toggle
lightshowregion add <region> <custom name>Add a custom name to a regionlightshowregion.add
lightshowregion remove <region>Remove custom namelightshowregion.remove
lightshowregion blacklist add <region>Add a region to the blacklistlightshowregion.blacklist.add
lightshowregion blacklist remove <region>Remove a region to the blacklistlightshowregion.blacklist.remove
lightshowregion globalSwitch the global region displaylightshowregion.global
lightshowregion reload actionbarReload actionbar for all online playerslightshowregion.reload.actionbar
lightshowregion reload bossbarReload bossbar for all online playerslightshowregion.reload.bossbar
lightshowregion reload barsReload actionbar and bossbar for all online playerslightshowregion.reload.bars
lightshowregion reload configReload all configurationslightshowregion.reload.config
Permissions without commandsDescription
lightshowregion.blacklist.*All rights to manage the blacklist
lightshowregion.reload.*Access for reload actionbar, bossbar and configs
lightshowregion.*Full access to the plugin
PlaceholderDescription
%lightshowregion_custom%Displays information about free,
occupied or your territory

API

Maven:

<dependency>
  <groupId>ru.kainlight.lightshowregion</groupId>
  <artifactId>api</artifactId>
  <version>CURRENT_VERSION</version>
  <scope>provided</scope>
</dependency>

Gradle — Groovy DSL:

repositories {
    mavenCentral()
    maven {
        name = "GitHubPackages"
        url = "https://maven.pkg.github.com/kainlighty/LightShowRegion"
    }
}

dependencies {
    compileOnly 'ru.kainlight.lightshowregion:api:CURRENT_VERSION'
}

Gradle — Kotlin DSL:

repositories {
    mavenCentral()
    maven {
        name = "GitHubPackages"
        url = uri("https://maven.pkg.github.com/kainlighty/LightShowRegion")
    }
}

dependencies {
    compileOnly("ru.kainlight.lightshowregion:api:CURRENT_VERSION")
}

Methods:

Get provider: LightShowRegionAPI.getProvider()

APIDescription
createShowedPlayer(Player)Create a player to display the region
getOrCreateShowedPlayer(Player)Get or create a player to display the region
deleteShowedPlayer(Player/ShowedPlayer)Delete a showed player
getShowedPlayer(Player)Get the player to whom the region is displayed
getShowedPlayers()Get list of the players
isShowedPlayer(Player)Check if the player is a ShowedPlayer
reloadActionbar(Player)Reload the actionbar to the player
reloadActionbars()Reload the actionbar for all players
unloadActionbars()Unload the actionbar for all players
reloadBossbar(Player)Reload the bossbar to the player
reloadBossbars()Reload the bossbar for all players
unloadBossbars()Unload the bossbar for all players
addDisabledWorld(name)Add a region to the blacklist
getDisabledWorlds()Get a list of disabled worlds
removeDisabledWorld(name)Remove a region to the blacklist
getRegionHandler()Get players who are being checked
RegionHandlerDescription
addCustomRegion(regionId, regionName)Add a custom region
getCustomRegionName(Player)Get a custom region where the player is located
removeCustomRegion(regionId)Delete a custom region
getCustomRegionIds()Get the custom region IDs
isCustomRegion(id)Check if the region is custom
addBlacklist(regionId)Add a region to the blacklist
getBlacklist()Get the blacklist
removeBlacklist(regionId)Remove a region to the blacklist
isGlobalRegion()Check whether the global region display is enabled
setGlobalRegion ()Set the global region display
ShowedPlayerDescription
getPlayer()Get a bukkit player
getActionbar()Get the parameters for the actionbar
getBossbar()Get the parameters for the bossbar
toggleAll()Switch the region display in the actionbar and bossbar for all
showAll()Show actionbar and bossbar
hideAll()Hide actionbar and bossbar
Actionbar | BossbarDescription
toggle()Toggle the display
show()Show the display
hide()Hide the display
isActive()Check if the display is active

Совместимость

Minecraft: Java Edition

1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x1.14.x1.13.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:2 года назад
Обновлён:1 год назад
Главная