Skip to content

Repository files navigation

VSeries

A spigot library supporting various features from 1.8 to 1.19.3

issues stars license

FeaturesUsageDownload

Features

  • Compatible with versions from 1.8 to 1.19.3
  • Title with fade and stay settings at 1.8
  • Action bar at 1.8
  • Particles at 1.8
  • Conveniently classified (Java and Kotlin)

Download

The latest version can be downloaded on the releases page.

Maven

<!-- Repository -->
<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>
<!-- Dependency -->
<dependency>
    <groupId>com.github.Hideko-Dev</groupId>
    <artifactId>VSeries</artifactId>
    <version>VERSION</version>
</dependency>

Gradle

// Repository
repositories {
  mavenCentral()
  maven { url 'https://jitpack.io' }
}
// Dependency
dependencies {
    implementation 'com.github.Hideko-Dev:VSeries:-SNAPSHOT'
}

Note

VSeries is available on Jitpack. If you want to use the development version, use the dev branch.

Usage

VParticle

Class: VParticle, VParticleList, VParticleType

Simple

This simply makes particles appear at a specified location.
The Type at this time is VParticleType.DOT

VParticle(location)
  .setType(VParticleType.DOT)
  .setParticle(VParticleList.CLOUD)
  .use()

Delayed and Amount

This allows you to specify the amount of particles to appear and the time after they appear.

Amount

VParticle(location)
  .setType(VParticleType.DOT)
  .setAmount(100) // Default is 10
  .setParticle(VParticleList.CRIT)
  .use()

Speed

VParticle(location)
  .setType(VParticleType.DOT)
  .setSpeed(0.5) // Default is 1.0
  .setParticle(VParticleList.CRIT)
  .use()

Block shape

This allows particles in the shape of blocks to appear. The Type at this time is VParticleType.BLOCK_OUTLINE

VParticle(location)
  .setType(VParticleType.BLOCK_OUTLINE)
  .setParticle(VParticleList.REDSTONE)
  .setColor(Color.CYAN)
  .use()

If you use the above code, your particles will look like this

Image of block shape particle


Colored dust

This causes colored redstone dust particles to appear.
Color is specified using java.awt

VParticle(location)
  .setParticle(VParticleList.REDSTONE)
  .setColor(Color.RED)
  .use()

Textured Material

These are particles that can appear as textures on blocks and items.
ItemCrack, FallingDust can be used.

Block Texture

VParticle(location)
    .setParticle(VParticleList.BLOCK_FALLING)
    .setParticleData(BlockTexture(Material.STONE))
    .display()

Item Texture

val item = ItemStack(Material.DIAMOND_AXE)
VParticle(location)
    .setParticle(VParticleList.ITEM_CRACK)
    .setParticleData(ItemTexture(item))
    .display()

VActionBar

Class: VActionBar

With the following simple code, you can easily send an action bar to a specified player.

Send

VActionBar.send(player, "Hello World")

Clear

VActionBar.clear(player)

VTitle

Class: VTitle

With the following simple code, you can easily send titles with fade-in, fade-out, and stay to your players.

Send

The following code is a 30-tick fade-in, 10-tick stay, and 30-tick fade-out court

VTitle.send(player, 30, 10, 30, "", "")

Clear

VTitle.send(player, "Hello World")

VBase

Class: VBase

This is a simplified version of registerEvents() in PluginManager of org.bukkit.JavaPlugin
and getCommand() of org.bukkit.Server It can be as simple as the following code.

class TestPlugin : JavaPlugin() {
    override fun onEnable() {
        
        VBase()
            .newEvents(this, listOf(
                TestListener()
            ))
            .newCommands(this, listOf(
                "testCommand" to TestCommandExecutor()
            ))
        
    }
}

VClass

Class: VClass

This is for advanced users.

This code forces the class of net.minecraft.server to be retrieved.

VClass.getNMSClass("PacketPlayOutTitle")

This code sends packets to the specified player.

VClass.sendPacket(player, Packet)

Tip

The "V" in VSeries is inspired by the "V" in "Version," which stands for more than one version.


This VSeries was created by Hideko.
Part of the ParticleLib by ByteZ1137 code is used in VParticle.

About

Powerful, regardless of version.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages