Songoda's Arconix [LEGACY]

NULLED MC PLUGIN Songoda's Arconix [LEGACY] 1.1.1

No permission to download
1760451711968.webp



Table of Contents​


Arconix is a powerful API designed by Songoda and TheCrystalStar that is meant to make developing Spigot/Bukkit plugins a whole lot easier. Arconix contains many different features that you may use from its packet library to its simple regioning system!

Installation​

Installing Arconix is just like installing any other plugin. It's as simple as downloading it and then dragging it into you server's plugin folder.
If you are a developer and would like to use Arconix you will need to add the Arconix jar file to your dependencies (the same area where you add the Spigot jar). Once you have done that, you are ready to start using the API's features.

Commands​

CommandPermissionDescriptionSyntax
ArconixArconixCMD.commandMain command for the plugin, used to view all the other sub-commands./Arconix
Arconix titleArconixCMD.command.titleSends a title with the text and timing args (in seconds) to yourself/Arconix title <fadeInTime> <stayTime> <fadeOutTime> <Text>
Arconix subtitleArconixCMD.command.subtitleSends a subtitle with the text and timing args (in seconds) to yourself/Arconix subtitle <fadeInTime> <stayTime> <fadeOutTime> <Text>
Arconix ActionBarArconixCMD.command.actionbarSend an action bar to yourself./Arconix actionbar <Text>
Arconix HologramArconixCMD.command.hologramCreate, hide, or show holograms./Arconix hologram <hide/show/create> <Text>
Arconix reloadArconixCMD.command.reloadReloads Arconix's configuration files/Arconix reload
Arconix signeditorArconixCMD.command.signeditorWhile looking at a sign, if you run this command the sign editor will open allowing you to edit that sign's text./Arconix signeditor
Arconix regionArconixCMD.command.regionList all of the sub commands for the region system./Arconix region
Arconix PingArconixCMD.command.pingReturns your current ping/Arconix ping

Regions​


Step 1: Select a region area.​

Run the command /arconix region selection to enter region selection mode.
Using the left/right button on your mouse, select a region area.

Here's an example.



Step 2: Create the region.​

Run the command /arconix region create <regionName> to create a new region from your selection.



Step 3: Edit the region.​

The following command is pretty self explanatory: /arconix region edit <region> <enter/exit/walk> <title/subtitle/text/ping/actionbar>
Replace <region> with the actual name of the region you wish to edit. The 3 activation types that you can use are enter, exit, and walk.

If you use enter, you are setting the region to do something when the player enters the region.
If you use exit, you are setting the region to do something when the player leaves the region.
If you use walk, you are setting the region to do something when the player is moving/walking within a region.



Step 4: Select the send type.​

The send type is the type of message you wish to send the player when they enter, exit, or walk in the region.
Simply type whichever type of message you want to configure, and the command system will guide you through on how to do it.


Here's an example of me editing a region called orange to send a title when the player walks into the region.
This is the final product of the example.


This is the command syntax used in the example above: /arconix region edit <regionName> <Remove + Enter/Walk/Exit + Send Type> For example, if you wanted to remvoe a title message when people enter the region, the command would be /arconix region edit <region> RemoveEnterTitle

This is the command you would use to remove a message from a region.

Custom Events​

ActionBarSendEvent
Java:
[/B]
@EventHandler
public void onActionBarSend(ActionBarSendEvent e) {
 
/**
     * You are able to get the player the actionbar
     * is being send to by using e.getPlayer()
     */
Player p = e.getPlayer();
 
/**
     * You can get the message that is being
     * sent to the player using e.getMessage();
     */
 
[URL='https://web.archive.org/web/20180208111721/http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string']String[/URL] msg = e.getMessage();
 
/**
     * This event implements Cancellable meaning that you
     * can cancel it an it wouldn't be sent to the player.
     */
e.setCancelled(true);
}
[B]

CreeperExplodeEvent
Java:
[/B]
@EventHandler
public void onCreeperExplode(CreeperExplodeEvent e) {
 
/**
     * Of course you can, you can get the creeper
     * that exploded by using e.getCreeper();
     */
 
Creeper creeper = e.getCreeper();
 
/**
     * You can also get the nearby entities
     * and players from the creeper explosion.
     */
//Radius in each direction
ArrayList<Player> nearbyPlayers = e.getNearbyPlayers(xRadius, yRadius, zRadius);
//Radius in each direction
ArrayList<Entity> nearbyEntites = e.getNearbyEntities(xRadius, yRadius, zRadius);
 
/**
     * This event implements Cancellable meaning that you
     * can cancel it an it wouldn't be sent to the player.
     */
e.setCancelled(true);
}
[B]

PlayerDamagePlayerEvent
Java:
[/B]
@EventHandler
public void playerDamagePlayer(PlayerDamagePlayerEvent e) {
 
/**
     * This Event has three main methods
     * 
     * 1. Getting the first player
     * 2. Getting the second player.
     * 3. Cancelling the damage.
     */
 
//To get the first player use.
e.getPlayerOne();
 
//To get the second player use.
e.getPlayerTwo();
 
//To cancel the damage that is being done
//Simply set Cancelled to true.
e.setCancelled(true);
}
[B]

PlayerKillPlayerEvent
Java:
[/B]
public void playerKillPlayer(PlayerKillPlayerEvent e) {
 
/**
     * Used to get the item used to kill the player
     */
 
e.getItemUsedToKill(); // This return type is an ItemStack
 
/**
     * This method is used to get the killer
     */
e.getKiller();
 
/**
     * This method is used to get the target/victim
     */
 
e.getVictim();
 
/*
     * This method cannot be cancelled!
     */
}
[B]

RegionCreateEvent
Java:
[/B]
@EventHandler
public void regionCreate(RegionCreateEvent e) {
 
/**
     * Gets the first corner of the region.
     */
e.getLocationOne();
 
/**
     * Gets the second corner of the region
     */
e.getLocationTwo();
 
/**
     * Gets the player who is creating the region
     */
e.getPlayer();
 
/**
     * Gets the region name 
     */
e.getRegionName();
 
/**
     * Used to cancell the region creation.
     */
e.setCancelled(true);
}
[B]

RegionEnterEvent
RegionExitEvent
RegionMoveInEvent

These three events contain the same methods, which are explained below.

Java:
[/B]
@EventHandler //Same methods as RegionExitEvent && RegionMoveInEvent
public void regionEvents(RegionEnterEvent e) {
 
/**
     *Used to get the player who entered/exited/moving in the region.
     */
e.getPlayer();
 
/**
     * Used to get the location they came from.
     */
e.getLocationOne();
 
/**
     * Used to get the location they moved to.
     */
e.getLocationTwo();
 
/**
     * Used to get the name of the region the region name.
     */
e.getRegionName();
}
[B]

SignEditorOpenEvent
Java:
[/B]
@EventHandler
public void signEditor(SignEditorOpenEvent e) {
 
/**
     *Used to get the player who opened the sign editor.
     */
e.getPlayer();
 
/**
     * Used to get a line from the sign
     * 1,2,3, or the 4th line
     */
e.getLine(/** 1-4 **/);
 
/**
     * Used to get the lines of the signs
     * This is an Array[] 
     */
e.getLines();
 
/**
     * This can be used to stop the sign editor from opening.
     */
e.setCancelled(true);
}
[B]

SpawnerBreakEvent
Java:
[/B]
@EventHandler
public void spawnerBreak(SpawnerBreakEvent e) {
 
/**
     *Used to get the player who broke the spawner.
     */
e.getPlayer();
 
/**
     * Used to get the mob that is spawning
     * from that mob spawner as a STRING
     */
e.getSpawnType();
 
/**
     * Used to get the tool as an ItemStack
     * that the player used to break the spawner.
     */
e.getTool();
 
/**
     * This can be used to stop spawner from breaking.
     */
e.setCancelled(true);
}
[B]

TitleSendEvent
Java:
[/B]
@EventHandler
public void titleSend(TitleSendEvent e) {
 
/**
     *Used to get the player who the 
     *title is being sent to.
     */
e.getPlayer();
 
//Get the time it takes for the title / subtitle to appear
//20 ticks = 1 second
e.getFadeInTime();
 
//Get the time the title / subtitle will stay on screen.
//20 ticks = 1 second
e.getStayTime();
 
//Get the time it takes for the title / subtitle to disappear
//20 ticks = 1 second
e.getFadeOutTime();
 
//Used to get the message of the title / subtitle.
e.getMessage();
 
//This is used to check what type of title is
//being sent (either) a subtitle or title.
e.getTitleType();
 
/**
     * This can be used to prevent the title from
     * being sent to the player.
     */
e.setCancelled(true);
}
[B]

Packets​

To use the packet library you would need to get the packet library first, which is very simple.

Java:
[/B]
private Arconix arconix = Arconix.pl();
 
//Now we can get the packet library
protected void packetLibraryTest(Player p) {
 
//This gets the packet library class, but of course
//its going to error so let's select a manager
arconix.packetLibrary;
 
//Here we are getting the title manager which is used to send sub titles and titles.
/**
         * Managers::
         * 1. getTitleManager()
         * 2. getParticleManager()
         * 3. getActionBarManager()
         * 4. getHologramManager()
         * 5. getSignEditorManager()
         * 6. getTabListManager()
         * 7. getPingManager()
         */
arconix.packetLibrary.getTitleManager();
}
[B]




The methods below are for each packet interface.

ActionBar
The actionbar packet is compatible with versions 1.7R4 - 1.11R1
void sendActionBar(Player p, String message)
Hologram
The hologram packet is compatible with versions 1.8R1 - 1.11R1
void spawnHolograms(Location location, List<String> holograms)
void spawnHologram(Location location, String line)
void despawnHologram(Location location)
void addHologram(Location location)
ArrayList<Location> getLocations()
Particle
The particle packet is compatible with versions 1.8R1 - 1.11R1
void displayParticle(Player player, Location loc, float x, float y, float z, int speed, String effect, int amount)
void broadcastParticle(Location loc, float x, float y, float z, int speed, String effect, int amount);
Ping
The ping packet is compatible with versions 1.7R4 - 1.11R1
int getPing(Player p);
SignEditor
The sign editor packet is compatible with versions 1.7R4 - 1.11R1
void openSignEditor(Player p, Sign sign)
Tablist
The tab list packet is compatible with versions 1.8R1 - 1.11R1
void sendTablist(Player p, String header, String footer)
Title
The title packet is compatible with versions 1.8R1 - 1.11R1
void sendTitle(Player p, String msg, int fadeIn, int stay, int fadeOut)
void sendSubtitle(Player p, String msg, int fadeIn, int stay, int fadeOut)

Other​

Config Wrapper
Arconix has a built-in config wrapper allowing you to create as many different configuration files as you want. To create a new config, create a new instance of the ConfigWrapper class passing the names you desire.


This code creates a new variable called hologramFile which acts as our config so we can edit anything, just like a normal config.

The first parameter is the plugin instance, given that you are using your plugin's main class.
The 2nd parameter is the folder - an empty string would make the file inside the plugin's folder.
Finally, the last parameter is the file name. We just named ours “holograms.yml”
public ConfigWrapper hologramFile = new ConfigWrapper(this, "", "holograms.yml");
Region Utils
RegionUtils is a utility class that only deals with regions.
To use it, you will first need to get an instance of the RegionUtils class.
private RegionUtils regionUtils = new RegionUtils();

Now that you have an instance of the RegionUtils class you can start using some of the methods.


This method is used by Arconix when the player creates a new region in-game:
createNewRegion(Player p, String regionName, Location location1, Location location2)


This method can create a new region from two locations (suggested use is in the code)
createNewRegion(String regionName, Location location1, Location location2)


These methods can be used to remove regions.
This one is used by Arconix itself:
removeRegion(String regionName)

However, this is the recommended usage:
removeRegion(Player p, String regionName)

This method is used to check if a region exist.
regionExist(String regionName)

This method simply returns all the region names as an ArrayList<String>
getAllRegions()
  • Like
Reactions: Haizivs
Author
Steave
First release
Last update

Ratings

0.00 star(s) 0 ratings

More downloads from Steave

Back
Top