HomeJavaModsArenaCats
ArenaCats
ModsJava

ArenaCats

by JGJ52 · on Modrinth

Manage arenas on your Minecraft server. Free Minecraft Java mod for 1.21, 1.21.1, 1.21.2.

⬇ Download on Modrinth

ArenaCats

Time

You need LibCats and WorldEdit for this plugin to work

Commands:
There is only one command:
/arena:

Building:

git clone https://github.com/JGJ52/ArenaCats.git
cd ArenaCats
./gradlew build

Include it in your project:

  <repositories>
  <repository>
    <id>jgj52-repo</id>
    <url>https://maven.jgj52.hu/repository/maven-releases/</url>
  </repository>
</repositories>

<dependencies>
<dependency>
  <groupId>hu.jgj52</groupId>
  <artifactId>ArenaCats</artifactId>
  <version>1.1</version>
  <scope>provided</scope>
</dependency>
</dependencies>

API Usage:

import hu.jgj52.arenaCats.Types.*;

import java.util.UUID;

class yourClass {
  public void getAnArenaByNameAndPlaceIt(String arena) {
    Arena arena = Arena.of(name);
    if (arena == null) return; // arena doesnt exists
    PlacedArena placed = arena.place();
  }

  public void arenaExplanationVoid() {
    Arena arena = Arena.of("name");
    // with this you can only place or delete or get its name
    arena.place();
    arena.delete();
  }

  public void placedArenaExplanationVoid() {
    PlacedArena placed = Arena.of("name").place();
    // you can do a bit more with this
    // worldguard regions:
    // you need to put worldguard in pom.xml to use this one
    placed.getRegions(); // list of regions
    placed.getRegion("region name"); // region by name
    // waypoints:
    // the idea is the same
    placed.getWaypoints(); // list of waypoints
    placed.getWaypoint("waypoint name"); // waypoint name
    placed.teleportToWaypoint(myPlayer, placed.getWaypoint("my waypoint")); // teleport a player to a waypoint

    placed.getWorld(); // get the world where the arena got placed
    PlacedArena.getPlacedArena(UUID.fromString(myPlayer.getWorld().getName().replace("_map_placed_arenacats"))); // get it from outside of this method just by a player

    placed.teleportToCenter(player); // teleport a player to center (center is where you wrote //copy)
  }

  public void waypointExplanationVoid() {
    Waypoint waypoint = Arena.of("name").place().getWaypoint("name");
    // you can get these:
    waypoint.x();
    waypoint.y();
    waypoint.z();
    waypoint.yaw();
    waypoint.pitch();
    waypoint.name();
    waypoint.location(); // bukkit location. you can get x,y,z,yaw,pitch from this too
  }

  public void regionExplanationVoid() {
    // read worldguard docs
  }
}
Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more