Captcha | AntiBotSystem v1.0
by TUBEOF
What is Captcha - AntiBotSystem? And what does it do?
Captcha - AntiBotSystem is a system that protects your server against bots! He sends the player a
random captcha when he enters the server. In addition, there is a
bypass permission, players with this permission are not forced to solve a captcha. There is also an
API for this plugin, which makes it possible to integrate this system into your own plugin. The API contains
own events (similar to Bukkit) and
other small queries.
Captchas:
- GUI - "CLICK ON THE ..."
- Steak
- Apple
- Diamond
- Iron
- Gold
- Emerald
- Redstone
- Enderpearl
More captchas will follow! Ideas for Captchas please DM to me!
Videos and Screenshots:
- Videos:
- There are currently no videos available!
If you know or made a video about the plugin, please let me know!
- Screenshots:
- Captcha "CLICK ON THE APPLE":
- Captcha "CLICK ON THE STEAK":
- Kick-Screen "CANCELED":
- Kick-Screen "WRONG":
- Message "COMPLETED":
Commands and Permissions:
- Commands:
- There are no commands at the moment, this will change soon.
- Permission:
- To bypass the captcha - captcha.bypass
Config.yml:
Code (Text):
# Captcha - AntiBotSystem by TUBEOF - Config.yml
Messages:
Prefix: '&7[&cCaptcha&7] '
CaptchaCompleted: '&aCorrect! Have fun on our server.'
CaptchaWrong: |-
&cNot correct!
&cPlease try again.
CaptchaCanceled: |-
&cYou have closed the captcha inventory.
&cYou must answer the captcha correctly to play on our server!
InventoryTitles:
Steak: '&2CLICK ON THE STEAK'
Apple: '&2CLICK ON THE APPLE'
Diamond: '&2CLICK ON THE DIAMOND'
Iron: '&2CLICK ON THE IRON INGOT'
Gold: '&2CLICK ON THE GOLD INGOT'
Emerald: '&2CLICK ON THE EMERALD'
Redstone: '&2CLICK ON THE REDSTONE DUST'
Enderpearl: '&2CLICK ON THE ENDERPEARL'
API:
The API is integrated in the plugin. Just import the plugin into your project to work with it. This is how you can use the API:
Code (Text):
package tubeof.test;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import tubeof.captcha.api.API;
import tubeof.captcha.event.PlayerCaptchaCanceledEvent;
import tubeof.captcha.event.PlayerCaptchaCompletedEvent;
import tubeof.captcha.event.PlayerCaptchaWrongEvent;
public class HowToUseCaptchaAPI {
@EventHandler
public void onCaptchaCompleted(PlayerCaptchaCompletedEvent e) {
// e.getPlayer();
// e.getMessage();
// e.setMessage(message);
// e.setCancelled(cancle);
}
@EventHandler
public void onCaptchaCanceled(PlayerCaptchaCanceledEvent e) {
// e.getPlayer();
// e.getMessage();
// e.setMessage(message);
// e.setCancelled(cancle);
}
@EventHandler
public void onCaptchaWrong(PlayerCaptchaWrongEvent e) {
// e.getPlayer();
// e.getMessage();
// e.setMessage(message);
// e.setCancelled(cancle);
}
@EventHandler
public void onChatEvent(AsyncPlayerChatEvent e) {
Player p = e.getPlayer();
if(API.isPlayerInCaptchaMode(p)) {
e.setCancelled(true);
}
}
}
To-Do-List:
- More captchas
- More settings in the Config.yml
- Commands
- More options in the API
>> I apologize for my bad English, but I hope you still understood everything!

<<
Before you rate the plugin bad, write me a DM and I'll help you fast!