ModsJava
XoreBoardUtil
Java mod listed for Minecraft 1.9–1.13. Downloads from the MC Java Mods app on Android.
Original version of the plugin: Note that 1.8.8 version is not fully supported, and it could cause errors THIS IS API \ Library FOR DEVELOPERS AND THEIR…
⬇ Download on SpigotOriginal version of the plugin: https://www.spigotmc.org/resources/xoreboardutil.43817/
Note that 1.8.8 version is not fully supported, and it could cause errors
THIS IS API \ Library FOR DEVELOPERS AND THEIR PROJECTS
Spoiler: Code
@NotNull XoreBoard xoreBoard = XoreBoardUtil. getNextXoreBoard ( ) ;
xoreBoard. addPlayer ( (org. bukkit. entity. Player ) player ) ;
@NotNull SharedSidebar sidebar = xoreBoard. getSharedSidebar ( ) ;
sidebar. setDisplayName ( "SharedSidebar" ) ;
HashMap < String, Integer > lines = new HashMap < String, Integer > ( ) ;
lines. put ( "&eNick: &fhaelexuis", 3 ) ;
lines. put ( "&eRank: &fMember", 2 ) ;
lines. put ( "&eBalance: &a$100.00", 1 ) ;
sidebar. rewriteLines (lines ) ;
sidebar. showSidebar ( ) ;
Code (Java):
@NotNull XoreBoard xoreBoard = XoreBoardUtil. getNextXoreBoard ( ) ;
xoreBoard. addPlayer ( (org. bukkit. entity. Player ) player ) ;
@NotNull SharedSidebar sidebar = xoreBoard. getSharedSidebar ( ) ;
sidebar. setDisplayName ( "SharedSidebar" ) ;
HashMap < String, Integer > lines = new HashMap < String, Integer > ( ) ;
lines. put ( "&eNick: &fhaelexuis", 3 ) ;
lines. put ( "&eRank: &fMember", 2 ) ;
lines. put ( "&eBalance: &a$100.00", 1 ) ;
sidebar. rewriteLines (lines ) ;
sidebar. showSidebar ( ) ;
FEATURES
- Easy sidebar manipulation.
- Ability to use 1 scoreboard and set different sidebars to each player, or shared (global) sidebar.
- Player collisions disabled by default.
BUGS
- Always visible team prefixes and below names for everyone, no matter in which XoreBoard player is.
- You can set Below Names, such as "&c❤", and set health value to specific player.
- All server players are in 1 real Bukkit Scoreboard, where you can create a teams (ranks, etc.)
- Ability to hide/show sidebar for each player in XoreBoard
- Player can be in multiple Scoreboards (XoreBoard) at the same time, depends which one are you updating
- Whole code can be used in async threads
- Color codes, such as &b, supported by default
- Based on packets, and util can be used by multiple plugins at the same time
- Prevent client kicking/crashing (if you set some text really long
- When you disable global collisions, mob collisions will be disabled as well, so if you have Survival/SkyBlock server, it can cause problem with mob pushing, so I recommend use XoreBoardUtil.setGlobalCollisions(Team.OptionStatus.FOR_OWN_TEAM) instead of XoreBoardUtil.setGlobalCollisions(Team.OptionStatus.NEVER) after server start, if you need mob pushing. Then collisions will be only between Teams (of main server scoreboard)
Click to expand...
Spoiler: Documentation
BASICS
How to create new XoreBoard:
@NotNull XoreBoard xoreBoard = XoreBoardUtil. getNextXoreBoard ( ) ;
How to remove XoreBoard: (You have two options, removing by name, or an object)
XoreBoardUtil. removeXoreBoard ( ( String ) xoreBoardName ) ;
XoreBoardUtil. removeXoreBoard ( (XoreBoard ) xoreBoard ) ;
Adding player to xoreBoard:
xoreBoard. addPlayer ( (org. bukkit. entity. Player ) player ) ;
Getting XorePlayer from XoreBoard
@NotNull XorePlayer xorePlayer = xoreBoard. getPlayer ( (org. bukkit. entity. Player ) player ) ;
Removing player from xoreBoard:
xoreBoard. removePlayer ( (org. bukkit. entity. Player ) player ) ;
XOREBOARD MANIPULATION
Getting shared sidebar of XoreBoard
@NotNull SharedSidebar sidebar = xoreBoard. getSharedSidebar ( ) ;
Getting private sidebar of Player
@NotNull PrivateSidebar sidebar = xoreBoard. getPlayer ( (org. bukkit. entity. Player ) player ). getPrivateSidebar ( ) ;
Changing a displayName of sidebar
sidebar. setDisplayName ( "&d&lPretty Display" ) ;
Hiding and showing sidebar (shared sidebar is showed by default)
sidebar. hideSidebar ( ) ;
sidebar. hideSidebar ( (XorePlayer ) xorePlayer ) ; // Redundant if sidebar is PrivateSidebar
sidebar. showSidebar ( ) ;
sidebar. showSidebar ( (XorePlayer ) xorePlayer ) ; // Redundant if sidebar is PrivateSidebar
XOREBOARD LINES MANIPULATION
Rewriting all lines at once, unchanged lines won't be updated (this method prevents flashing)
Adding more lines
Clearing specific line
sidebar. clearLine ( "&eNick: &fhaelexuis" ) ;
Clear all lines
sidebar. clearLines ( )
Getting all lines from sidebar
sidebar. getLines ( ) ;
WORKING WITH TEAMS AND BELLOW NAME
Creating a team
@NotNull org. bukkit. scoreboard. Team team = XoreBoardUtil. getTeam ( "Member" ) ;
team. setAllowFriendlyFire ( true ) ;
team. setCanSeeFriendlyInvisibles ( false ) ;
team. setPrefix ( "Member | " ) ;
Adding player to the team
Seting up the BelowName character
XoreBoardUtil. setUpBelowNames ( "&c❤" ) ;
Updating player Below value
XoreBoardUtil. updateBelowName ( (org. bukkit. entity. Player ) player, int value ) ;
How to create new XoreBoard:
Code (Java):
@NotNull XoreBoard xoreBoard = XoreBoardUtil. getNextXoreBoard ( ) ;
Code (Java):
XoreBoardUtil. removeXoreBoard ( ( String ) xoreBoardName ) ;
XoreBoardUtil. removeXoreBoard ( (XoreBoard ) xoreBoard ) ;
Code (Java):
xoreBoard. addPlayer ( (org. bukkit. entity. Player ) player ) ;
Code (Java):
@NotNull XorePlayer xorePlayer = xoreBoard. getPlayer ( (org. bukkit. entity. Player ) player ) ;
Code (Java):
xoreBoard. removePlayer ( (org. bukkit. entity. Player ) player ) ;
Getting shared sidebar of XoreBoard
Code (Java):
@NotNull SharedSidebar sidebar = xoreBoard. getSharedSidebar ( ) ;
Code (Java):
@NotNull PrivateSidebar sidebar = xoreBoard. getPlayer ( (org. bukkit. entity. Player ) player ). getPrivateSidebar ( ) ;
Code (Java):
sidebar. setDisplayName ( "&d&lPretty Display" ) ;
Code (Java):
sidebar. hideSidebar ( ) ;
sidebar. hideSidebar ( (XorePlayer ) xorePlayer ) ; // Redundant if sidebar is PrivateSidebar
sidebar. showSidebar ( ) ;
sidebar. showSidebar ( (XorePlayer ) xorePlayer ) ; // Redundant if sidebar is PrivateSidebar
Rewriting all lines at once, unchanged lines won't be updated (this method prevents flashing)
Code (Java):
Code (Java):
Code (Java):
sidebar. clearLine ( "&eNick: &fhaelexuis" ) ;
Code (Java):
sidebar. clearLines ( )
Code (Java):
sidebar. getLines ( ) ;
Teams work exactly same as in Bukkit scoreboard, with one difference, they are global, no matter which sidebar player hasClick to expand...
Code (Java):
@NotNull org. bukkit. scoreboard. Team team = XoreBoardUtil. getTeam ( "Member" ) ;
team. setAllowFriendlyFire ( true ) ;
team. setCanSeeFriendlyInvisibles ( false ) ;
team. setPrefix ( "Member | " ) ;
Code (Java):
Code (Java):
XoreBoardUtil. setUpBelowNames ( "&c❤" ) ;
Code (Java):
XoreBoardUtil. updateBelowName ( (org. bukkit. entity. Player ) player, int value ) ;
Spoiler: Events
- XoreBoardCreateEvent
- (XoreBoard) getXoreBoard()
- XoreBoardPlayerCreateEvent
- (XoreBoard) getXoreBoard()
- (XorePlayer) getXorePlayer()
- XoreBoardPlayerRemoveEvent
- (XoreBoard) getXoreBoard()
- (XorePlayer) getXorePlayer()
- XoreBoardRemoveEvent
- (String) getName()
- XoreBoardSendPacketEvent
- (XoreBoard) getXoreBoard()
- (org.bukkit.entity.Player)getPlayer()
- (Object) getPacket()
- (XoreBoardSendPacketEvent) setPacketObject(@Nullable Object packetObject)
Click to expand...
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.9, 1.10, 1.11
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
XoreBoardUtil is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10, 1.11, 1.12 and newer. Downloaded 179 times (via Spigot). Download it and open it directly in the game.