Skip to content

Creadores-Program/Barrel-Classic-Detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BarrelClassicDetect

Detects when a ClassiCube player joins your server!

Compatible with Nukkit and Pocketmine (MySoft, Submarine)!

Installation (Nukkit)

Simply place the plugin in the plugins folder!

API usage

Implement in your project: Maven: Place the plugin's jar file in the libs folder and run this command:

mvn install:install-file -Dfile=libs/Barrel-Classic-Detect-x.x.x.jar -DgroupId=org.CreadoresProgram -DartifactId=Barrel-Classic-Detect -Dversion=x.x.x -Dpackaging=jar -DgeneratePom=true # replace x.x.x with the plugin version

pom.xml:

<dependency>
  <groupId>org.CreadoresProgram</groupId>
  <artifactId>Barrel-Classic-Detect</artifactId>
  <version>x.x.x</version><!--replace x.x.x with the plugin version-->
  <scope>provided</scope>
</dependency>

plugin.yml:

#...
softdepend:
  - "Barrel Classic Detect"
loadbefore:
  - "Barrel Classic Detect"

example of use:

//import the class into your plugin
import org.CreadoresProgram.BarrelClassicDetect.NukkitMain;
//...
//is ClassiCube Player?
NukkitMain.getInstance().isCCPlayer(player);//player = cn.nukkit.Player returns boolean

//get all ClassiCube Players
NukkitMain.getInstance().getCCPlayers(); //returns List<cn.nukkit.Player>

Installation (Pocketmine)

Simply place the plugin in the plugins folder!

API usage

Implement in your plugin:

plugin.yml:

#...
softdepend: ["Barrel Classic Detect"]

example of use:

<?php
declare(strict_types=1);
//...
//Use the class in your plugin.
use org\CreadoresProgram\BarrelClassicDetect\PocketmineMain;
//...
//is ClassiCube Player?
PocketmineMain::getInstance()->isCCPlayer(player);//player = pocketmine\player\Player returns bool
//get all ClassiCube Players
PocketmineMain::getInstance()->getCCPlayers(); //returns pocketmine\player\Player[] array

About

Detects when a ClassiCube player joins your server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors