This plugin blocks kicking\banning selected players.
This plugin contains hooks system. You can add your hooks by
CreateHookListEvent. The plugin contains two default hooks to PermissionsEx and LuckPerms. You can write me a message, if you want me to add some hooks.
Hook Object
public interface AntiKickHook {
/**
* Return false if you don't want kick player.
* Return true if you want kick player.
*/
boolean kickCondition(Player player);
}public interface AbsoluteHook {
/**
* Return true, if you want to kick player absolutely.
*/
boolean absoluteKickPlayer();
}CreateHookListEvent
public class CreateHookListEvent extends Event {
private static final HandlerList HANDLERS_LIST = new HandlerList();
private Set<AntiKickHook> hooks;
public CreateHookListEvent(Set<AntiKickHook> hooks){
this.hooks = hooks;
}
public Set<AntiKickHook> getHooks() {
return hooks;
}
public void setHooks(Set<AntiKickHook> hooks) {
this.hooks = hooks;
}
@Override
public HandlerList getHandlers() {
return HANDLERS_LIST;
}
public static HandlerList getHandlerList() {
return HANDLERS_LIST;
}
}config.yml
# Message is sending to ops and players with permission "antikick.update.message".
send-update-message: true
# WARNINGS:
# - keep case sensitive
# - uuids are diffrent on premium and cracked accounts
# - this configuration is an example
protected-players:
- 'admin'
protected-uuids:
- '135dd279-0524-4965-aec3-0882ffd8c416'
protect-ops: true
protect-permission-enabled: true
protect-permission: 'antikick.protect'
# If true, sends stack trace to console and protected player.
# Works with spigot.
print-stack-trace: true
# Default hooks:
# You can write me a message on discord or spigotmc to add other plugin's hook.
# dc: mnekos#4359 spigotmc: https://www.spigotmc.org/members/mnekos.849650/
hooks:
# PermissionsEx hook.
# Protects player's which have group from list.
pex:
enabled: false
protected-groups:
- 'admin'
# LuckPerms hook.
# Protects player's which have group from list.
luckperms:
enabled: false
protected-groups:
- 'admin'
# See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerKickEvent.html
# Variables:
# %reason% - See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/player/PlayerKickEvent.html#getReason--
# %leavemessage% - See https://hub.spigotmc.org/javadocs/s...player/PlayerKickEvent.html#getLeaveMessage--
on-try-kick-protected-message: '&cSomebody want ban/kick you from this server! Reason: %reason%&c, Leave message: %leavemessage%'
print-stack-hover-message: '&4&lStack trace (HOVER)'
Stack trace:
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta