Language

LightShowRegion

LightShowRegion

ModrinthSpigotMC

Displaying the region in the ActionBar

319 downloads 1 followers updated 1mo ago
latest v1.4.4 Modrinth
Folia Paper Purpur Spigot 1.13 – 26.1.2 Utility

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

| Command | Description | Permission |
|----------------------------------------------------|-----------------------------------------------------|----------------------------------|
| lightshowregion / lsr | Help by commands | lightshowregion.help |
| lightshowregion toggle (<actionbar>/<bossbar>) | Switch the region display | lightshowregion.toggle |
| lightshowregion add <region> <custom name> | Add a custom name to a region | lightshowregion.add |
| lightshowregion remove <region> | Remove custom name | lightshowregion.remove |
| lightshowregion blacklist add <region> | Add a region to the blacklist | lightshowregion.blacklist.add |
| lightshowregion blacklist remove <region> | Remove a region to the blacklist | lightshowregion.blacklist.remove |
| lightshowregion global | Switch the global region display | lightshowregion.global |
| lightshowregion reload actionbar | Reload actionbar for all online players | lightshowregion.reload.actionbar |
| lightshowregion reload bossbar | Reload bossbar for all online players | lightshowregion.reload.bossbar |
| lightshowregion reload bars | Reload actionbar and bossbar for all online players | lightshowregion.reload.bars |
| lightshowregion reload config | Reload all configurations | lightshowregion.reload.config |

| Permissions without commands | Description |
|------------------------------|--------------------------------------------------|
| lightshowregion.blacklist.* | All rights to manage the blacklist |
| lightshowregion.reload.* | Access for reload actionbar, bossbar and configs |
| lightshowregion.* | Full access to the plugin |

| Placeholder | Description |
|--------------------------|-------------------------------------------------------------------|
| %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()

| API | Description |
|-----------------------------------------|------------------------------------------------|
| 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 |

| RegionHandler | Description |
|---------------------------------------|----------------------------------------------------|
| 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 |

| ShowedPlayer | Description |
|----------------|-----------------------------------------------------------------|
| 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 | Bossbar | Description |
|----------------------|------------------------------------------|
| toggle() | Toggle the display |
| show() | Show the display |
| hide() | Hide the display |
| isActive() | Check if the display is active |

Versions

Beta
1.4.4
folia, paper, purpur · 1.21, 1.21.1, 1.21.2 · 1mo ago
The version will be redefined to the release version when it is better tested.
32
Release
1.4.3
paper, purpur · 1.21, 1.21.1, 1.21.2 · 2mo ago
- Removed Spigot support - Updated dependencies
19
Release
1.4.2.1
paper, purpur, spigot · 1.18, 1.18.1, 1.18.2 · 15mo ago
Previously, there was an incorrect link to the player, because of this, his location was old, there could be a problem that the previous region is displayed.
66
Release
1.4.2
paper, purpur, spigot · 1.18, 1.18.1, 1.18.2 · 16mo ago
### Added: - [API](https://github.com/kainlighty/LightShowRegion#-api). - [WorldGuard](https://dev.bukkit.org/projects/worldguard) Support. _The…
45
Release
1.4.1.2
paper, purpur, spigot · 1.18, 1.18.1, 1.18.2 · 16mo ago
### Also: - Added more comments in message configurations - Added placeholder `%value%` for `region.global` The message will now also indicate the set state -…
35
Release
1.4.1.1
paper, spigot · 1.18, 1.18.1, 1.18.2 · 16mo ago
- Versions below 1.17 will no longer be supported - Placeholder symbols have been replaced with `%` - Switching to…
64
Release
1.3.2
paper, purpur, spigot · 1.13, 1.13.1, 1.13.2 · 29mo ago
- Fixed Incorrect loading of the placeholder or its complete malfunction - Added the value 'actionbar: true/false' to the configuration (the ability to use the…
58

Comments 0

No comments yet. Be the first to share your thoughts.