About
VortexSidebars was made to make it easy for anyone to make sidebars for anything.
It supports hex codes, animated text, lambdas, and more!
Example
Code:
Code (Java):
public
final
class Main
extends JavaPlugin
implements Listener
{
Sidebar sidebar
;
@Override
public
void onEnable
(
)
{
Bukkit.
getPluginManager
(
).
registerEvents
(
this,
this
)
;
AnimatedText animatedText
=
new AnimatedText
(
this,
List.
of
(
TextColor.
PURPLE
+ TextColor.
BOLD
+
"CoolKid Network",
TextColor.
fromHex
(
"D84797"
)
+ TextColor.
BOLD
+
"CoolKid Network"
),
20
)
;
sidebar
=
new Sidebar
(
this, animatedText
)
;
List
<Text
> lines
=
List.
of
(
new Text
(TextColor.
GRAY
+
"play.example.com"
),
new Text
(TextColor.
AQUA
+
"-----------------"
),
new Text
(TextColor.
GREEN
+
"Dev Status: "
+ TextColor.
RED
+
"Procrastinating"
),
new FunctionText
(
(
)
->
""
+ Bukkit.
getOnlinePlayers
(
).
size
(
),
new Text
(TextColor.
GREEN
+
"Players: "
+ TextColor.
YELLOW
),
new Text
(
"/64"
)
),
new Text
(TextColor.
AQUA
+
"----------------- "
)
)
;
for
(Text line
: lines
) sidebar.
addLine
(line
)
;
}
@EventHandler
public
void onJoin
(PlayerJoinEvent event
)
{
if
(
!sidebar.
getPlayers
(
).
contains
(event.
getPlayer
(
)
)
) sidebar.
addPlayer
(event.
getPlayer
(
)
)
;
}
}
Result:
Usage
JavaDocs
Installation:
Maven:
Code (Text):
<project>
<repositories>
<repository>
<id>codemc-releases</id>
<url>https://repo.codemc.io/repository/maven-releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>us.teaminceptus</groupId>
<artifactId>vortexsidebars</artifactId>
<version>[VERSION]</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Gradle (Groovy):
Code (Text):
repositories {
maven { url 'https://repo.codemc.io/repository/maven-releases/' }
}
dependencies {
implementation 'us.teaminceptus:vortexsidebars:[VERSION]'
}
Gradle (Kotlin DSL):
Code (Text):
repositories {
maven(url = "https://repo.codemc.io/repository/maven-releases/")
}
dependencies {
implementation('us.teaminceptus:vortexsidebars:[VERSION]')
}
Contributors
-
@DraginCraft (creator)
-
@GamerCoder215