SkillAgentSearch skills...

BukkitAPI

Tecknix Client Bukkit API. An open source and simple Bukkit implementation for Tecknix Client

Install / Use

/learn @TecknixClient/BukkitAPI
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Tecknix Client Bukkit API

A fully featured open source Bukkit API.

Build Status

Features

  • Disable 1.8x click delay timer.
  • Send a welcome message to the user.
  • Get a list of players running Tecknix Client for any usage.
  • Send notifications to players clients.
  • Create server holograms.
  • Have server waypoints that can be added and removed.
  • Easy to use API code with event based implementation.

Installation:

Tecknix Bukkit API requires a Bukkit Server running on a java 1.8+ vm to work.

1: Place TecknixAPI.jar into the "Plugins" folder
2: Run the server.

Development:

For people who wish to customize or add to our API for their server.

1: Clone the repository.
2: Open the maven project in an IDE of choice.
3: Get programming!

Code:

An overview of the code structure and usages.

  • Notifications:
//The notification needs to be declared.
private final TCNotification exampleNotification = new TCNotification(TCNotification.Type.INFO, "This is a notification!", 5);
//The player that the notification is being sent to needs to be defined.
final Player player = Bukkit.getPlayer("Frostei");
//Fire the exampleNotification#sendPacket(player); where you wish to send them the notification.
this.exampleNotification.sendPacket(player);
  • Cps Cooldown:
//Declare a player that will receive the packet.
final Player player = Bukkit.getPlayer("Frostei");
//Send the packet to the player.
TecknixAPI.getInstance().sendPacket(player, new TCPacketCpsCooldown(true);
//Note "true" disables the cooldown and "false" enables it!
  • Waypoints:
//In TecknixAPI.java there is a list of waypoints you can add a waypoint to this list with:
TecknixAPI.getInstance().getWaypoints().add(new TCWaypoint("name", "world", "server", x, y, z, red, green, blue);
//Or:
TecknixAPI.getInstance().getWaypoints().add(new TCWaypoint("name", "world", "server", x, y, z, integerColor);
//Declare a player.
final Player player = Bukkit.getPlayer("Frostei");   
//Send the packet to the player.
for (TCWaypoint waypoint : TecknixAPI.getInstance().getWaypoints()) {
    waypoint.sendAddPacket(player);
}
   
//Removal...
//Follow previous steps but use the below instead when sending the packet:
waypoint.sendRemovePacket(player);
  • Holograms:
//In TecknixAPI.java there is a list of holograms you can add to.
TecknixAPI.getInstance().getHolograms().add(new TCHologram(1, "Hologram!", 1d, 1d, 1d));
//Declare a player.
final Player player = Bukkit.getPlayer("Frostei");   
//Send the packet to the player.
for (TCHologram hologram : TecknixAPI.getInstance().getHolograms()) {
    hologram.sendAddPacket(player);
}
   
//Removal...
//Follow previous steps but use the below instead when sending the packet:
hologram.sendRemovePacket(player);

License

/*
 * The MIT License (MIT)
 *
 * Copyright (C) 2021 Tecknix Software.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
View on GitHub
GitHub Stars4
CategoryDevelopment
Updated3y ago
Forks0

Languages

Java

Security Score

70/100

Audited on Aug 4, 2022

No findings