What Code to BungeeCord Ban On All Servers

Status
This thread has been locked.

Hesitates

Server Owner | TriviumHQ (us.)TriviumHQ.com
Supreme
Feedback score
8
Posts
164
Reactions
37
Resources
0
Hi there,

So I recently got my own anticheat that autobans (it is pretty similar to Janitor) but anyway, so I got the src code and I was just wondering how I can make it so that when they get autobanned they get Network banned and not just server banned. Right now the code is Bukkit.getServer ().dispatchCommand(Bukkit.getConsoleSender() so how do I make it so that it is like with Litebans and connects with the Litebans in my Bungeecord to ban them from the network.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Tyler

Developer
Supreme
Feedback score
14
Posts
2,589
Reactions
2,238
Resources
0
Sort of confused with what you are saying, do you have any Java and Bukkit/Spigot API knowledge or are you just asking for someone to basically make you a plugin?
 

Headshot

Premium
Feedback score
2
Posts
23
Reactions
36
Resources
0
, "ban " + player.getName()); tada.. that's assuming your server has litebans and litebans is connected to an SQL server that all your other servers are connected to.
 

Samuel

The most serious person ever.
Supreme
Feedback score
33
Posts
2,210
Reactions
1,572
Resources
0
I recommend using plugin messaging for this stuff.
 

stuntguy3000

Feedback score
1
Posts
30
Reactions
0
Resources
0
Sorry, I couldn't help but see what you were doing and had to jump in.
Please, never use Bukkit#getServer() or even Bukkit# for that matter, what's wrong with just grabbing an instance of your main class then doing "instance#getServer()"

Why is this a bad thing?
 

Hesitates

Server Owner | TriviumHQ (us.)TriviumHQ.com
Supreme
Feedback score
8
Posts
164
Reactions
37
Resources
0
Sorry, I couldn't help but see what you were doing and had to jump in.
Please, never use Bukkit#getServer() or even Bukkit# for that matter, what's wrong with just grabbing an instance of your main class then doing "instance#getServer()"
Can you help me do that because I am not very familiar with code as all I did was just get the src code for the plugin
 

rchy

Premium
Feedback score
1
Posts
716
Reactions
258
Resources
0
Sorry, I couldn't help but see what you were doing and had to jump in.
Please, never use Bukkit#getServer() or even Bukkit# for that matter, what's wrong with just grabbing an instance of your main class then doing "instance#getServer()"
Care to say why you should never use Bukkit#?
 

Hunting_Potato

Developer
Deactivated
Feedback score
11
Posts
745
Reactions
425
Resources
0
Sorry, I couldn't help but see what you were doing and had to jump in.
Please, never use Bukkit#getServer() or even Bukkit# for that matter, what's wrong with just grabbing an instance of your main class then doing "instance#getServer()"
There is not an issue with using 'Bukkit.' Rather than using an instance of your main class.
 

Eric

Software Engineer
Supreme
Feedback score
14
Posts
1,760
Reactions
1,648
Resources
1
Care to say why you should never use Bukkit#?
Getting the instance of Bukkit# multiple times is quite inefficient.

Back to OP:
Unless your anticheat supports commands to be run instead of auto banning, short of changing code you cannot do this.
If it does support running commands, setup a punishment plugin with SQL support like Litebans and make the anticheat run /ban <player name> when it bans the user.
Then set that same configuration of litebans and the anticheat on each server and now you have cross server banning.
I wrote this on an iPad so if you have any questions please ask!
 
Status
This thread has been locked.
Top