#help-archived

1 messages · Page 182 of 1

wraith thicket
#

You can depend on 1.16 and even not declare api-version if you like. But if you're dealing with materials after flattening, you'll need it. Using the minimal version you need should work, though

warm stirrup
#

ok thanks again!

wraith thicket
#

You'd compile it just like you do any other plugin

#

You'd need a pom for that, but sure

#

I don't know, it depends on the plugin

#

Because the pom describes all the dependencies and I don't know which dependencies are needed for the plugin in question

#

I'm fairly certain you can also compile it simply using IntelliJ as well

#

But I've never used IntelliJ so I don't know how

#

You can just google for it

#

No

warm stirrup
#

in theory that shouldnt have any dependencies outside of spigotmc, just a simple boilerplate pom with the added spigotmc repo and dependency should be just fine

wraith thicket
#

I use VS Code

warm stirrup
#

i mean you could also look through the class files and see what exactly is imported

#

then add dependencies for those

wraith thicket
#

If you decompile it and add it to IntelliJ, it should clearly show which imports are missing. So if it's only bukkit ones, then the spigot dependency would suffice

#

(Which is another way of saying waht IsabelLomass already said)

warm stirrup
#

what is the errors you're getting from the mc server? @meager hawk

meager hawk
#

nothing it just dsnt show up in /plugins

#

so idk

#

i followed a yt tutorial everything went well till the .yml file

warm stirrup
#

if you check the console is there any error messages from the plugin? or like literally nothing happened

#

what happened with the yml file?

meager hawk
#

nothing happened

#

i send screen sec

warm stirrup
#

kk

meager hawk
#

so bassicly i get this

#

i cant share pics here?

balmy sentinel
#

?paste

worldly heathBOT
warm stirrup
#

could you copy and paste code instead?

#

oh

#

ok that works

meager hawk
#

?paste

balmy sentinel
#

@meager hawk no copy and paste your code into that hastebin and then save it and send us the link.

meager hawk
#

but it has nothing to do with the code

bleak osprey
#

does anybody know what this is

#

or could be

balmy sentinel
#

@meager hawk I know that it’s easier to read if you post it there and send us the link

warm stirrup
#

No key position_predicate in... you're looking for a key in something which doesnt have that key

rich olive
#

@bleak osprey it's a vanilla bug, you can safely ignore it

warm stirrup
#
No key position_predicate in MapLike[{input_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:dirt"},output_state:{Name:"minecraft:water",Properties:{level:"0"}},location_predicate:{predicate_type:"minecraft:block_match",block:"minecraft:water"}}]```

or i dont see it at least
#

oh

#

ok

bleak osprey
#

ok thx 🙂 +

rich olive
meager hawk
#

@warm stirrup did you see my msg?

warm stirrup
#

i did. im not sure how to help you with it though because im not an eclipse user

meager hawk
#

ay

warm stirrup
#

looks like an eclipse specific problem

#

this is what they sent

frigid ember
#

anyone knows how to create clickatable text in book?

balmy sentinel
#

pretty sure you use TextComponent still

#

from there you just set the hover and click event

frigid ember
#

yep

#

thanks

meager hawk
balmy sentinel
#

whatever editor you’re using doesn’t support the creation or editing of .yml files. I’d switch over to IntelliJ tbh watch a tutorial on how to set it up and export projects.

warm stirrup
#

no idea. not an eclipse user its @meager hawk's problem they got

meager hawk
#

whatever editor you’re using doesn’t support the creation or editing of .yml files. I’d switch over to IntelliJ tbh watch a tutorial on how to set it up and export projects.
@balmy sentinel its just eclipse

warm stirrup
#

ye if ur a HS student you can get IntelliJ for free for like a year or two i forgot exactly how long

#

totally worth it to just use that cuz eclipse is a bit outdated

#

or college edu email

balmy sentinel
#

no it’s not. If you read the error eclipse it trying to find something that is compatible for editing .yml files

meager hawk
#

does it work in europe?

balmy sentinel
#

yes...?

#

I’d watch a video on IntelliJ far more powerful and there is a free version that works perfectly fine.

meager hawk
#

okey

balmy sentinel
#

Make sure to find one that shows you how to import/export projects.

spring nexus
#

How do I get or set the item that a fox is holding?

balmy sentinel
#

try that?

neat pulsar
#

hello!

#

How can I make a player to open a link using citizens and commandnpc

stuck quartz
#

how do i check if the player is building on the PlayerInteractEvent event

spring nexus
#

@balmy sentinel none of equipment methods work.

balmy sentinel
#

@stuck quartz why not use BlockPlaceEvent and BlockBreakEvent?

stuck quartz
#

@balmy sentinel i'm using PlayerInteractEvent to detect when the player tries to open a chest, but now it detects when the player is placing something aside a chest

balmy sentinel
#

@stuck quartz There is an event.getAction() in PlayerInteractEvent just check if they’re left or right clicking an item then check if that item is a chest

stuck quartz
#

right clicking

#

i already checked

#

RIGHT_CLICK_BLOCK

#

actually i might check if the player is shifting

naive goblet
#

Why use PIE

stuck quartz
#

i'm using PlayerInteractEvent to detect when the player tries to open a chest, but now it detects when the player is placing something aside a chest
@stuck quartz

naive goblet
#

Thats right click a block?

stuck quartz
#

yes

#

actually its right or left click

balmy sentinel
#

so what’s the problem?

stuck quartz
#

but now it detects when the player is placing something aside a chest, and it cancels the event

naive goblet
#

Then just check hasBlock and getClickedBlock#getType == Material.CHEST

#

?

stuck quartz
#

but the player is going to be clicking the chest to place something aside it

#

like a sign

mild nebula
#

Hello! what do i insert here? do i have to insert my paypal email account or should i use some sort of link?

naive goblet
#

That’s weird, it would be shift right click block

stuck quartz
#

i know, thats waht i siad

#

actually i might check if the player is shifting
@stuck quartz

naive goblet
#

Do that?

wind dock
#

plugins

stuck quartz
#

Do that?
@naive goblet i would, if i hadn't to answer questions

naive goblet
#

Huh

#

Just tell me it’s solved then rather than answering lol

stuck quartz
#

its not solved yet, i'm going to try something

naive goblet
#

Well that part was solved right?

stuck quartz
#

not exactly

balmy sentinel
#

?paste

#

share your code and we can help

#

idk why that didn’t work🙃

worldly heathBOT
balmy sentinel
#

there she is 🙂

naive goblet
#

Overbloxed wth, what’s up with that. Is it solved or whatever say that instead of casually answering my question then? Now, let’s not make this an argument and instead focus on the actual issue.

clever hornet
#

anybody know a plugin that lets you edit vanilla enchantments and add your own ones? for 1.16

vernal spruce
#

You cant do that as enchantments in the enchanting table are tied to the client rather than the server

#

If named books/lore are enough there are plenty free ones

ocean prism
#

Hello ! I would like to know if anyone knows why when I setType a block in Tall grass to Half.TOP it automatically gets depoped?

vernal spruce
#

Try doing it but not applying physics

ocean prism
#

How can I do that 🤔

ocean prism
#

👍

stuck quartz
#

now its solved @naive goblet, i checked if the player is sneaking and there is a block in his hand

ocean prism
#

Try doing it but not applying physics
I do it but my tall_grass remains small :c

stiff oasis
#

Does anyone know looking for a plugin for chestcommands alternative to 1.16?

tiny dagger
#

1.16 is new

#

just wait

#

nobody is gonna build an alternative over night

#

especially if it's a big project

sinful spire
#

DeluxeMenus is probably going to be updated in a few days

crisp rapids
#

@loud kindle I need your help it's urgent

#

Ik I am tagging a staff member everyone don't panic

tiny dagger
#

prepares for battle

#

brings a cactus

crisp rapids
#

and I am dead serious about this

#

It's hurting me so much from inside I cant tell right now. Whoever did this ain't gonna be gone forever. Whenever I try contacting the author I get this.

Requested User Not Found

tiny dagger
#

you probabily have a better luck pinging ford imo 🤔

crisp rapids
#

ok thx

#

WHat's his full nam,e @tiny dagger?

tiny dagger
#

you can see him

quick arch
#

The author most likely will change it back

crisp rapids
#

@wraith thicket

#

Not sure if they will do

#

cuz I think it's not a author it's a bot or spammer

#

it says Resource Posted Today and Author Not found

quick arch
#

That's weird

vernal spruce
#

Also not sure if its gonna be changed at all😂

quick arch
#

yeah, the author will just change it back to Shiva

vernal spruce
#

By that i mean i can also go claim Essentials as a religious name and demand it to be changed

stuck quartz
#

how do i check if a Block is a WallSign

torn robin
#

Block.gettype == Material.wallsign

stuck quartz
#

thanks

#

@torn robin but that only works for one type of sign

torn robin
#

gee no way

stuck quartz
#

i want to check if a Block is a WallSign of any type of wood

torn robin
#

then check for all the types

stuck quartz
#

oh god

vernal spruce
#

Or check if it implements Sign or smthng

frigid ember
#

Sign have more wood types?

#

wtf

torn robin
#

thatll allow non-wall signs though

#

oak, dark, etc.

stuck quartz
#

oh i have an idea

frigid ember
#

from what version

vernal spruce
#

Yeah we got a buncha new ones

torn robin
#

idk 1.13 mayb

frigid ember
#

lol

sinful spire
#

1.16.1 adds 2 more sings

#

or 4 if you count wall

stuck quartz
#

Block.getBlockData() instanceof WallSign

frigid ember
#

im playing mc since 2011 and idk about it)

torn robin
#

how do you know about blockdata but not about ==

vernal spruce
#

Oh boy

stuck quartz
#

i do know about ==

torn robin
#

👌

frigid ember
torn robin
#

cause you're setting the page to NormalMap.getText

#

you can't create a basecomponent then simplify it to its getText and expect it to still work

frigid ember
#

anyone know solution?

torn robin
#

use BookMeta.spigot().addPage(BaseComponent)

frigid ember
#

??

#

wait so what i need to do

torn robin
#

you're improperly using setFormat probably GoDead

frigid ember
#

i dont want to add new page

torn robin
#

then use setPage

frigid ember
#

oh

torn robin
#

look at the javadoc that i linked

tacit trellis
#

how do I use it D:?

torn robin
#

what code do you have rn?

tacit trellis
#

1 sec

#

this

#

event.setFormat(rank + ChatColor.RED + player.getName() + ChatColor.WHITE + ": " + event.getMessage());

torn robin
#

event.setFormat(rank + ChatColor.RED + "%s" + ChatColor.WHITE + ": %s");

#

should fix it

bold anchor
#

Format should not include message by default

tacit trellis
#

ahhh

#

okay thanks

#

are there different placeholders?

torn robin
#

first one is player name, second is the message

#

so no

#

the first %s is the player's name, second %s is of course the message

tacit trellis
#

how can I prevent the player from typing %s and messing it up?

torn robin
#

you use the code I gave you

frigid ember
#

@torn robin i need to set it to List<BaseComponent[]> ?

tacit trellis
#

okay

torn robin
#

yes, a Base Component[] per page

#

or you can specify a page

#

setPage(page, basecomponents)

frigid ember
#

ehmmm.... how to do it?

torn robin
#

you were looking at setPages

frigid ember
#

how to create and set taht Base Component?

torn robin
#

look at the methods for TextComponent

gloomy dew
#

Guys ,

#

What does this do ?

torn robin
#

one of them converts it to a Basecomponent[]

gloomy dew
#
public void onArmorStandInteract(PlayerInteractEntityEvent event) {
    Player player = (Player) event.getPlayer();

    if ((event.getRightClicked().getType() == EntityType.ARMOR_STAND)) {
        player.sendMessage("Success");
        player.openInventory(headPose.openInventory(54, "&6Head Pose"));
    }

}```
torn robin
#

also please learn java conventions

gloomy dew
#

What does this do ?

torn robin
#

did you not write it?

gloomy dew
#

no , i found it

torn robin
#

im curious, why are you asking?

gloomy dew
#

I don't even know the basics of java coding!

#

wtf

#

XD

frigid ember
#

when you rightclick at armorstand it send you a message success

#

and opened inventory headpose

torn robin
#

it also throws a ton of NPEs

frigid ember
#

yes xddd

gloomy dew
#

I really want to learn for java , But its so hard for me (:

#

I use "Skript"

frigid ember
#

ya

#

its eazy

#

i mean Java is eazy

#

look at that code

torn robin
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

worthy depot
#

?help

gloomy dew
#

_ask

#

_

lone fog
#

What NPE could that throw

gloomy dew
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

torn robin
#

headPose only, didn't see it was InteractEntity

lone fog
#

Assuming headPose could ever be null at that point

torn robin
#

yes

frigid ember
#

how to create that fckin List<BaseComponent[]>

#

i cant find it

quick arch
#

did anyone say java basics

frigid ember
#

yes

#

i know

quick arch
#

😏

torn robin
#

where does it say its free until 2021

quick arch
#

It used to say that, no idea where it went

frigid ember
#

PLEASE

#

tell me

#

List<BaseComponent[]>

#

HOW

torn robin
#

does .create not exist

frigid ember
#

no

bold anchor
#

Arrays.asList(

frigid ember
#

.setExtra(); only

wraith thicket
#

I see I was pinged for something - must have been half an age ago as I can't see it

torn robin
#

I need this resource to be re-named as soon as possible because It is using a religion god name. Which is mine religion as well. https://www.spigotmc.org/resources/shiva.65014/

You just can't use that name unless for religious purpose
and I am dead serious about this
It's hurting me so much from inside I cant tell right now. Whoever did this ain't gonna be gone forever. Whenever I try contacting the author I get this.

Requested User Not Found
Fr33stylerToday at 9:56 AM
you probabily have a better luck pinging ford imo 🤔

#

lmao nice

quick arch
#

image is probably better 🤔

torn robin
#

too much work

quick arch
#

I have the image copied

torn robin
#

then send it pog

quick arch
torn robin
#

sorry guys i own this word you can't use it

#

¯_(ツ)_/¯

quick arch
#

sounds like some other stuff that's been happening lately...

torn robin
#

unfortunately

quick arch
#

y'know, list to another type of list

wraith thicket
#

If there's an issue with a resource, use the report button.

torn robin
#

@frigid ember Arrays.asList might work

quick arch
#

won't that turn it into a List<BaseComponent>

torn robin
#

prolly

#

i forget what the proper method is to convert it to BaseComponent[] (TextComponent -> BaseComponent[])

quick arch
#

list.add(components.toArray(new BaseComponent[components.size()]));

#

has to be done with that I think

#

I used a lib that required List<BaseComponent[]> (but the component was a list as well)

torn robin
#

hideous

quick arch
#

yes

frigid ember
#

List<BaseComponent> list = Arrays.asList(NormalMap);
vb.spigot().setPages(list);

#

??

#

i really dont understand you guys i have this code:

#

and i need that NormalMap get into List<BaseComponent[]>?

#

and then make vb.spigot().setPages(List<BaseComponent[]>);?

tacit trellis
#

@torn robin

torn robin
#

?

tacit trellis
#

I tried this event.setFormat(rank + ChatColor.RED + "%s" + ChatColor.WHITE + ": " + "%s");

#

but the message is also the name

torn robin
#

could try %1s and %2s

#

otherwise no idea

frigid ember
#

Hey, does anyone know how to create a custom inventory? I'm confused on how to do it.

tiny dagger
#

Bukkit.createInventory?

#

🤔

frigid ember
#

oh thx

#

i thought you used new Inventory();

torn robin
#

rip

tiny dagger
#

nah

frigid ember
#

that's just a way of referencing an existing inventory i gather?

torn robin
#

no?

tiny dagger
#

it would've been a mistake same as how new ItemStack is

frigid ember
#

public final Inventory createGui(String title, int size) {
return Bukkit.getServer().createInventory(null, size, title);
}

#

Hello guys, if I want to add a craft with any type of wood, which material should I choose ?

#

im bad at coding with bukkit

#

so thx

torn robin
#

you’d have to use the class that supports multiple item stack types

#

RecipeChoice iirc

frigid ember
#

Ok thanks !

vernal spruce
#

store a item inside another item,itemception

frigid ember
#

I see wood everywhere 🤪

inland oxide
#

whos questions are still open?

torn robin
#

wasn’t aware we close questions

inland oxide
#

who still needs help

frigid ember
#

ME PLEASE

inland oxide
#

What are you trying to accomplish, break it into pieces

light geyser
#

I could actually use some help. question was left unanswered yesterday.

vernal spruce
#

Meat got stuck in toaster,instructions unclear @inland oxide

frigid ember
#

please i have this code

#

ClickEvent

#

HoverEvent

#

not work in book

light geyser
#

So I started adding permissions yesterday. yaml permissions: uhcp.*: description: Grants access to all UHCPlus commands default: op children: uhcp.preset.*: true ... uhcp.preset.*: description: Grants the player access to all /uhcp preset <arguments> commands default: op children: uhcp.preset.create: true ... Situation is as follows. Now the question is. do children of uhcplus.preset.* also become children of uhcplus.*?

inland oxide
#

"%s" is typically using in String.format, so like event.setFormat(rank + ChatColor.RED + String.format("%s", rank) + ChatColor.WHITE + ": " + String.format("%s", player) );

torn robin
#

no

#

Nononononono

inland oxide
#

or you can just used the string

torn robin
#

keep it as %s

inland oxide
#

ggtg

torn robin
#

spigot formats it after

frigid ember
#

Pleaseee

#

@inland oxide don't ask if you can't help

torn robin
#

don’t offer help if you don’t know everything

#

pog

gritty zodiac
#

Hey guys, is there a minimum of mob-spawning-chunks or view-distance chunks for patrols to spawn? Since I lowered it on 5, I didn't found any patrol spawns on my server. (Didn't tried on higher for now)

torn robin
#

Doubt it

#

I doubt it’s documented if there is

light geyser
#

So I started adding permissions yesterday. yaml permissions: uhcp.*: description: Grants access to all UHCPlus commands default: op children: uhcp.preset.*: true ... uhcp.preset.*: description: Grants the player access to all /uhcp preset <arguments> commands default: op children: uhcp.preset.create: true ... Situation is as follows. Now the question is. do children of uhcplus.preset.* also become children of uhcplus.*?
@light geyser This is plugin.yml, by the way 🙂 ... indicates there's more there, but its of no importance to the question 🙂

torn robin
#

Have you tested it?

#

I think that’d be the best way to find out

light geyser
#

I have not yet. but I will later once I get it implemented in all commands 😄

torn robin
#

👍

tawdry venture
#

is it possible that even with pandawire, players still manage to lag the server with redstone so much that the spigot watchdog takes over?

torn robin
#

Yes

stuck quartz
#

how can i get the chest Block from Inventory

torn robin
#

You can’t explicitly

silent veldt
#

getHolder()

torn robin
#

You’d have to have the inventoryholder

#

Or that

#

If that works

#

lul

tiny dagger
#

don't teach people about invholder pls

torn robin
#

In this case it’s proper usage

silent veldt
#

Well it's the only way to get it

#

You need to do some instanceof checks to make sure its a Chest or DoubleChest

slow furnace
#

is there any way to set a crop age to 7?

silent veldt
#

sure

slow furnace
#

^ i already have the block data and stuff, I tried using metadata, and ageable, but doesn't seem to work

silent veldt
#

are you doing .setMetaData() after you modify the metadata?

slow furnace
#

no, i'm using block.setMetadata(<age thingies>)

#

i'm basically doing this

b.setType(Material.CROPS, true);
b.setMetadata("age", b.getMetadata("age").get(0));
#

but that doesnt seem to work

silent veldt
#

no, that's not it. One second

vernal spruce
#

It was changed in newer versions

#

Now we have Ageable

silent veldt
#

yes, that's it

slow furnace
#

yeah i saw spigot and stackoverflow, and they used setData but it's now deprecated, so I trieeed doing my own one but it doesnt work

torn robin
#

Get it’s blockdata cast it to ageable then setBlockData

silent veldt
#
Block block = someBlock;
BlockData bd = block.getBlockData()
if(bd instanceof Ageable) {
    Ageable ageable = (Ageable) bd;
    ageable.setAge(getMaximumAge());
    block.setBlockData(ageable);
}
slow furnace
#

thank you both! I will try with your solution craig

burnt dock
#

Alright, im tryin to get a custom no permission message, and i dont know where to find the messge for some plugins, anyone know it for ClearLag?

torn robin
#

Don’t forget block.setData

burnt dock
#

o

silent veldt
#

it's at the end

torn robin
#

Download clearlaf and find it?

#

oh wack indentation

slow furnace
#

isn't that deprecated? setBlockData is not resolvable, nor the BlockData type

light geyser
#

Does anyone know the replacement for PlayerPickupItemEvent? its depricated

silent veldt
#

Not showing deprecated in the spigot API

#

What version are you on?

torn robin
#

^

sullen horizon
#

in IntelliJ how do I open up the Maven compiler

light geyser
#

Thats odd, eclipse shows this The type PlayerPickupItemEvent is deprecated

torn robin
#

I mean I just use eclipse ( ͡° ͜ʖ ͡°)

#

That’s not setData lol

vernal spruce
#

It is

glacial umbra
#

Is there any kind of plugin that easily allows you to code a minecraft server so that, given any kind of condition, the server will execute a command?

vernal spruce
#

Its changed now to EntityPickupItemEvent

light geyser
#

huh, neat

torn robin
#

No

#

That’s called a plugin

vernal spruce
#

Yeah needed it before saw its deprecated so i checked javadoc

#

And it pointed to it

slow furnace
#

oh mb i should have said my version, i'm using spigot-1.8.8-R0.1 maybe thats why?

torn robin
#

Reading java docs help ( ͡° ͜ʖ ͡°)

silent veldt
#

Yeah that would have helped lol

light geyser
#

Thank you, ill change it over then 😄

vernal spruce
#

Ikr wtf only nerds read javadoc😂

silent veldt
#

They didn't do it that way back then

torn robin
#

Ugh 1.8

silent veldt
#

Is MaterialData available?

torn robin
#

I think it’s just setData

#

shouldn’t be deprecated in 1.8

slow furnace
#

yeah it is available

vernal spruce
#

Not sure dont think we have docs for 1.8 anymore

silent veldt
#

I mean you can just do setData(7), but

#

There's a "nice" way to do it with MaterialData

torn robin
#

I don’t remember materialdata

#

No idea when it was added

#

Might be a possibility

vernal spruce
#

Boy 1.8 was quite a mess from 1.16 pov

slow furnace
#

ah nice, it seems to be working with b.setData((byte) 7); thanks!

silent veldt
#

here's now

torn robin
#

yes 1.8

#

unbreakable wasn’t even in itemmeta

vernal spruce
#

Yeah durability was also not in itemmeta

#

Now we have Damageable

silent veldt
#
Block block = someBlock;
MaterialData md = block.getData;
if(md instanceof Crops) {
    Crops crops = (Crops) md;
    crops.setState(CropState.RIPE);
    block.setData(crops);
}
torn robin
#

Oh god and AI

#

Couldn’t set an entity to have no ai

vernal spruce
#

monkaS

kind crow
#

Are there any ways to optimize elytra flight other than limit the speed?

vernal spruce
#

Decrease durability faster forcing to repair often Kappa

kind crow
#

I mean something that is not affecting the gameplay

vernal spruce
#

Want to be a dick? Do as a friend requested,getting hunger while flying,have fun flying more than 30se without starving

sinful spire
#

is there like changing PerPlayer RenderDistance? if there is, you could try do that while on elytra

vernal spruce
#

Chunka still get loaded

sinful spire
#

but not that much

vernal spruce
#

Its client sided

sinful spire
#

rip then

kind crow
#

is there like changing PerPlayer RenderDistance? if there is, you could try do that while on elytra
@sinful spire that's what I want. Not sure how to do that

raven hound
#

So basically I can connect to other servers fine but I can't connect to my hosted server, I join, does nothing then kicks me for client side peer or something like that

vernal spruce
#

If a player sets render distance to 1 it still loads 6 chunks or config number

sinful spire
#

^ i mean overwritting the config but to one player

vernal spruce
#

Dont think its possible without breaking some logic

sinful spire
#

ProtocolLib could do that probably

vernal spruce
#

Still sketchy..

kind crow
#

If a player sets render distance to 1 it still loads 6 chunks or config number
@vernal spruce there are one chunk trails from elytras on 2b2t. I want something similar

sinful spire
vernal spruce
#

Thats a custom made chunk loading/unloading plugin

sinful spire
#

for paper oh no

#

seems like its paperonly

kind crow
#

I actually have paper lol

#

That can help

sinful spire
#

oh, go for it then

kind crow
#

Thanks

raven hound
#

So basically I can connect to other servers fine but I can't connect to my hosted server, I join, does nothing then kicks me for client side peer or something like that
:)

sinful spire
#

seems like it just takes the player and int ```java
player.setViewDistance(d);

kind crow
#

So if I set the distance to 1 would it load only one chunk and not the chunks around?

vernal spruce
#

An actual error or log drom the kick message would be more helpfull than "or something like that'

sinful spire
tiny dagger
#

is there a way to get what hand the player used to damage? 🤔

kind crow
#

Ok, I'm gonna try that then, thx

vernal spruce
#

I mean dont think you can damage someone with offhand(unless bow)

#

Like you seem to only be able to use the item rather than hit with it

sinful spire
#

i think you can with bow, trident, crossbow and thats all

sturdy oar
#

Is it possible to select the server connection destination with the BungeeCord API?

#

and change it in real-time

tiny dagger
#

oh

#

thanks

vernal spruce
#

But they are not directly tied to hand used afik

sinful spire
#

what do you mean select?

tiny dagger
#

that's good to hear

sturdy oar
#

make the proxy decide the server that the player will connect to upon connecting to the proxy

#

would i have to cancel ClientConnectEvent?

#

and immediatly send him to another one or something

sinful spire
#

you could probably take a join event and then ```java
ServerInfo target = ProxyServer.getInstance().getServerInfo("servername");
player.connect(target);

#

cancelling it would probably disconnect you

#

why not just change the priorities and connect him to a server?

light geyser
#

does anyone know the replacement of PlayerCommandPreprocessEvent#getRecipients? spigot's javadoc wasnt of any help

#

since that method is depricated

sturdy oar
#

idk about priorities

#

you mean I'd change the default server they connect to?

vernal spruce
#

since that method is depricated
@light geyser if its deprecated it has a reason next to it

#

Usually pointing to the new method

torn robin
#

getOfflinePlayer(String) tho

sinful spire
#

yeah

light geyser
#

In this case, it doesnt @vernal spruce

#

just shows for backwards compatibility

vernal spruce
#

Hmm post the link

ocean prism
#

Hello ! I want to place TALL_GRASS, with a half top, problem is when I set the half to top, my block is broken, someone have an idea ? :c

torn robin
#

Wat

#

That doesn’t make sense

#

What are the recipients to a command

#

What are you trying to do

vernal spruce
#

Ahh its one of the "dont touch events"

torn robin
#

The recipients are empty

#

should be at least

light geyser
#

I need to reread myself on thato ne MSWS lol, just going through the projects replacing depricated events

torn robin
#

I don’t understand why you’re trying to look at it

vernal spruce
#

Its most likely deprecated but still there as some old plugins still use it

torn robin
#

Prolly

#

But literally how would you use it

light geyser
#

Mkay I see, I wanted to block spectators from messaging survival-ers, using /msg etc

torn robin
#

Only recipient that would make sense would be Console

#

I would probably just set permissions per game mode then

light geyser
#

Though I could just do event.getMessage().split(" ")[1] and then Bukkit.getPlayer(whateverIsTheOutputOfThePRevious)

#

pseudocode^

torn robin
#

Spaghetti to it’s extreme I think

light geyser
#

Possibly 😇

torn robin
#

Id just make a custom /msg command

#

That way you don’t have to mess with permission injection

light geyser
#

well I dont want to modify the entire command, just this one party

torn robin
#

Yah but it’s pretty simple to recreate

#

And it’d be a lot easier

#

Otherwise you have to listen to all commands

lone fog
#

Listening to all commands isn’t that bad if you bail out quickly

#

I can’t imagine they are run that often

light geyser
#
if(Bukkit.getPlayer(commandParts[1]).getGameMode().equals(GameMode.SURVIVAL)) {
  event.getPlayer().sendMessage(ChatColor.RED + "You may not whisper to players who are still playing!");
  return;
}``` does the trick I think
#

And I need to listen anyways, because I have to listen for other commands as well

lone fog
#

Null check

#

Plz

vernal spruce
#

Md once said there are methods wich shouldnt exist but they were so used theycant just be erased

light geyser
#

@col ive got a length check above, so shouldnt be necessary

polar gust
#

is there way to use NMS (BlockPosition or Vec3D) to get the type of a block?

#

I'm trying to avoid using Block or Location

torn robin
#

Y

#

Both of those don’t store the world

#

I think at least

#

@light geyser he means Bukkit#getPlayer

polar gust
#

I remember using these somehow to get block type like 3 years ago, but I forgot how to do it

light geyser
#

ahh, yes thats a good one

wet bronze
#

Guys

#

I need a plugin that let's me explode obsidian with TNT but one that works on 1.16

#

Because ObsidianDestroyer is for 1.15

inland oxide
#

ok back

sinful spire
#

it would probably work

stone patio
#

Can someone please help me with my bungeecord server showing this error: Could not connect to a default or fallback server, please try again later: io.netty.channel.ConnectTimeoutException

#

The spigot server IS online & running

#

This is only happening to some servers on one host, but when I try on a different host it works completely fine. Can someone explain why this is happening?

#

I've tried everything even re-installing the spigot server

light geyser
#

checked firewall?

stone patio
#

How can I do that?

light geyser
#

if youre on Ubuntu, use sudo ufw status

stone patio
#

Ok

#

It's a VPS from a provider is that okay?

light geyser
#

just to be sure, are the spigot server(s) and bungee servers on the same host?

sinful spire
#

do you have Windows or Ubuntu on there?

stone patio
#

just to be sure, are the spigot server(s) and bungee servers on the same host?
@light geyser yes

#

do you have Windows or Ubuntu on there?
@sinful spire ubuntu

#

18.04

#

and I have installed pterodactyl panel

frigid ember
#
Bukkit.getPluginManager().callEvent(new EntityDamageEvent(player, DamageCause.ENTITY_ATTACK, baseCase));

is this the proper way to damage a player?

stone patio
sinful spire
#

you need to allow ports that you use

#

on spigot

#

wait nvm

#

pterodactyl uses docker containers

light geyser
#

since you use pterodactyl. have you assigned the ports to the servers?

#

since its one host UFW doesnt do anything with the traffic

stone patio
light geyser
#

I cant load the image due to my network speed, unfortunately. Could you explain in words?

sinful spire
#

i think in the node settings

#

there are port ranges to give

light geyser
#

I use pterodactly myself as well, so I can follow 😄

sinful spire
#

you could try ufw allow 25564 then 25563...

light geyser
#

if ufw is even enabled

#

probably, but

sinful spire
#

can you disable ufw? what

light geyser
#

yeah

#

sudo ufw disableI believe

stone patio
light geyser
#

but I recommend against it

sinful spire
#

wait they're allowed

#

im confused

inland oxide
#

@frigid ember can't just use player.damage(amount, source) ?

sinful spire
#

also really do you type 0.0.0.0 in pterodactyl? is it really that why it didnt work

trim lodge
#

Which recommend? Eclipse - Visual Studio - IntellIde

light geyser
#

0.0.0.0 is allowed in ptero

#

I do that myself

frigid ember
#

@inland oxide That seems like a much beetter way to do it

#

Thanks

sinful spire
#

dammit i used 127.0.0.1 and the node was dead

light geyser
#

@trim lodge I use Eclipse

stone patio
#

also really do you type 0.0.0.0 in pterodactyl? is it really that why it didnt work
@sinful spire i don't think that's the issue. I've had pterodactyl panel on other vps and it worked with 0.0.0.0

light geyser
#

127.0.0.1 probably would mess things up because docker

frigid ember
#

@inland oxide What do I put in for source

stone patio
#

uhm so what can I try?

light geyser
#

You cant use 0.0.0.0 for the container IP, since well thats not how it works, but you can for IP allocation for the node

sinful spire
#

i tried making pterodactyl for 2 months and i get the response why it didnt work after i made it with screen on ubuntu -.-

#

time to change to pterodactyl

#

also Real try ufw allow it

light geyser
#

Im actually considering stepping away from Pterodactyl

#

because Docker, lol

stone patio
#

also Real try ufw allow it
@sinful spire every port?

inland oxide
#

@frigid ember an entity

sinful spire
#

yeah, you could try

light geyser
#

No, dont open every port, just open the ports you need to

stone patio
#

every mc port

#

that i use

light geyser
#

yes

stone patio
#

on a server

light geyser
#

though I Dont think itll affect much, since its all on one host

sinful spire
#

i mean

light geyser
#

well yes

sinful spire
#

and if its not open rip

stone patio
#

do i need to restart the vps after or no?

sinful spire
#

i dont think so

light geyser
#

if your bungee is on port 25565, and a server on 25500, then you only need to open 25565

sinful spire
#

there was something like ufw reload

#

i needed to open 25564 for hub etc

#

with pterodactyl

light geyser
#

yes, but not through UFW

sinful spire
#

no

#

with ufw

stone patio
#

if your bungee is on port 25565, and a server on 25500, then you only need to open 25565
@light geyser bungee is on 25565 and that was already open

light geyser
#

I didnt 🤷‍♂️ think you messed something else up then

#

Then you shouldnt have to modify UFW

sinful spire
#

docker is kinda useless when you host only yourself and not like a public host

light geyser
#

not really imo

#

@stone patio Figure out the IP of your docker container, put that in the bungee config

sinful spire
#

it has some cool features, but why

stone patio
#

how do i do that?

light geyser
#

I dont remmeber the exact syntax, but sudo docker ps mightshow something

sinful spire
#

docker ip showed up after i ssh'd into my server, if you didnt change the startmessage

stone patio
#

I dont remmeber the exact syntax, but sudo docker ps mightshow something
@light geyser it just shows some 0.0.0.0 and ports and ids

light geyser
#

you'll have to google some then, I would but my connection is painfully slow

stone patio
#

google what exactly?

inland oxide
#

Usually on the VPS, all the ports need to be opened that will be used by the containers. On each container, in Ptero, you need to assign the ports accordingly in order for the port to work with the bridged interface on the VPS. The other containers should be able be accessed by the IP of the VPS bridged. 0.0.0.0 just means listen on any interface, which works well for when you are on a container and the IP is assigned by the bridge. The problem is that on a container 127.0.0.1, refers to just in that container, and if you are trying to setup bungeecord with multiple servers each on a container, then none of the IP addresses for the servers should be 127.0.0.1, but probably should be either the IP of the bridge device or WAN port.

light geyser
#

'get docker container ip' or something

sinful spire
#

docker inspect <container_id>

stone patio
#

Usually on the VPS, all the ports need to be opened that will be used by the containers. On each container, in Ptero, you need to assign the ports accordingly in order for the port to work with the bridged interface on the VPS. The other containers should be able be accessed by the IP of the VPS bridged. 0.0.0.0 just means listen on any interface, which works well for when you are on a container and the IP is assigned by the bridge. The problem is that on a container 127.0.0.1, refers to just in that container, and if you are trying to setup bungeecord with multiple servers each on a container, then none of the IP addresses for the servers should be 127.0.0.1, but probably should be either the IP of the bridge device or WAN port.
@inland oxide uhm maybe if it matters, i used a script to install pterodactyl as i'm really new to these things

sinful spire
#

oh no

#

even pterodactyl doesnt support scripts

inland oxide
#

well, most stuff on ptero is setup with a script (egg)

sinful spire
#

you used this right? https://github.com/vilhelmprytz/pterodactyl-installer

stone patio
#

that's what i used ^

sinful spire
#

or mrflacko

#

yeah, those scripts are bugged sometimes

inland oxide
#

but you would install bungee on ptero, then assign it the port 25565, then you would create the other ptero instances for each minecraft server and assign them different ports.

stone patio
#

i'm thinking it's the vps provider because it worked perfectly with other ones

wet bronze
#

I need a plugin that let's me explode obsidian with TNT but one that works on 1.16
Can anyone help me with this?

sinful spire
#

why did you change then

stone patio
#

reasons

sinful spire
#

Janny, ObsidianDestroyer should work it doesnt have anything that isnt in 1.16

inland oxide
#

But key point is on the BungeeCord ptero/docker container, you need to make sure the IPs in the config.yml are not localhost, since that refers to the bungecord container.

stone patio
#

OOOOO

#

it was fixed

#

the ufw ports

#

it worked!!!

sinful spire
#

nice

inland oxide
#

The need to point at the WAN address or at the Bridge Interface address.

stone patio
#

Thank you @light geyser @sinful spire & anyone who helped 😄

sinful spire
#

i need to install pterodactyl now.. dammit

light geyser
#

I wouldnt say you have to but

sinful spire
#

i wonder if my laptop will handle it

light geyser
#

Ptero adds some performance penalty

sinful spire
#

no i just dont like the screen interface

light geyser
#

I notice that primarily with iowait

sinful spire
#

it limits the logs to like 10 lines

light geyser
#

cant you like > log.log or something?

sinful spire
#

nope

light geyser
#

damn

sinful spire
#

in js i just

#

wait

light geyser
#

looked a tmux yet? ive heard good stuff about it

sinful spire
#

ok nvm that code is 1024 long

#

i did

#

but i cant find anything about it, because theres a android app named like it

light geyser
#

and 10 lines logs as in 10 lines of scrolling back up?

sinful spire
#

no you cant scroll

light geyser
#

Cuz I dont think ive had that issue

#

I can 🤔

sinful spire
#

oh wait, its tmux not termux? dam

light geyser
#

yeah tmux is screen but different, termux is the android app

sinful spire
#

tmux is better because its has ids like "minecraft-bungee"

#

not "129512.minecraft-bungee"

#

and you can automate stuff with scripts

random lark
#

Good land clamining plugins?

light geyser
#

uhhh GriefPRevention I think

storm sparrow
#

^ i've used it for years, never had an issue with it

sinful spire
#

^^ yeah its good

light geyser
#

Ok i am of confusion:

timesRan++;
System.out.println("RANTWO: " + timesRan);``` timesRan was 0, then I increment, then its still 0 🤔
#

its an Integer

sinful spire
#

uh what

light geyser
#

yup

#

Code is ran inside a BukkitRunnable, static int timesRan

#

log is as follows lol: [22:09:10 INFO]: 0 [22:09:10 INFO]: RANTWO: 0 [22:09:11 INFO]: 0 [22:09:11 INFO]: RANTWO: 0 [22:09:12 INFO]: 0 [22:09:12 INFO]: RANTWO: 0 [22:09:13 INFO]: 0 [22:09:13 INFO]: RANTWO: 0

sinful spire
light geyser
#

full code block: ```java
System.out.println(timesRan);

                    if(timesRan >= 10) {
                        player.damage(0.1);
                    } else if(timesRan >= 50) {
                        player.damage(0.5);
                    } else if(timesRan >= 100)
                    
                    timesRan++;
                    System.out.println("RANTWO: " + timesRan);```
#

What is going on here then 🤔

sinful spire
#

oh god discord formatting

light geyser
#

oh yeah

#

its borked

sinful spire
#

?paste

worldly heathBOT
sinful spire
#

please

light geyser
#

Of course

sinful spire
#

wait thats just a copy of hastebin 😄

light geyser
#

And you cant shift-tab >.>

sinful spire
#

rip

light geyser
#

that reads better 😄

sinful spire
#

why you damaging the player for not doing runs?

#

oh nvm

#

now that i think about it

#

it makes sense

light geyser
#

nah timesRan just means how often this BukkitRunnable has ran

sinful spire
#

ohh

#

lol

light geyser
#

its a runTaskTimer

sinful spire
#

i was thinking if it was some sort of minigame plugin

light geyser
#

and it aint working like I want it to 😂

#

well, its a sort of easter egg

#

if a player has diorite in their inventory, they get damaged

sinful spire
#

my guy

polar gust
#

is there a way to get block types from x,y,z without using Location or Block?

light geyser
#

The community I develop this plugin for, has a certain grudge against diorite xd

sinful spire
#

do it for polished_diorite, diorite_stairs etc. i want to be in that community too lmao

light geyser
#

ie 'birdpoop'

#

not checking for the stairs etc, since its inside a uhc plugin, i dont exepct people to craft that lol

sinful spire
#

you shouldn't damage someone for mining a block on uhc i think

#

hm getting block types wait

light geyser
#

that, and I originally wrote the module in 1.15 when diorite stairs where it wasnt a thing yet 👀

#

ok that sentence is borked, but you get the gist

#

nah its just damage for picking it up ^_^

#

the longer they hold onto it, the more evil it gets

sinful spire
#

without a location or block

#

can you use player?

light geyser
#

yeah

#

EntityItemPickupEvent#getPlayer();

sinful spire
#

i mean the

is there a way to get block types from x,y,z without using Location or Block?

normal palm
#

Is it possible to activate the tab completion only for the commands for which you have permissions? If I set tab-complete: 0 in spigot.yml all users can see all commands and if I set -1 nobody can see anything.

sinful spire
#

so ```java
p.getLocation().getWorld().getBlock(0, 0, 0).getType();

light geyser
#

dont have to 🙂

#

I just want the damage to progressivly get worse if they hold on to the block longer

inland oxide
#

hold onto?

#

implies item

light geyser
#

it is an item 🙂

#

That stuff all works, its just the incremental counter for the loop that doesnt, lol

inland oxide
#

oh maybe too many questions floating around right now

light geyser
#

timesRan is a static int

inland oxide
#

wish folks would just list the entire code rather than snippets

sinful spire
#

yeah

keen holly
#

.... [20:18:12 ERROR] [LiteBans]: litebans-pool - Exception during pool initialization.
.... [20:18:12 ERROR] [LiteBans]: Failed to connect to [jdbc:mariadb://localhost:3306/litebans;useSSL=false&serverTimezone=UTC] using mariadb driver.
.... [20:18:12 ERROR] [LiteBans]: Error: Failed to initialize pool: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Connection refused (Connection refused)
.... [20:18:12 INFO]: Failed to connect to database.

#

pls help

light geyser
keen compass
#

@keen holly make sure your DB server is running

sinful spire
#

timesRan = 0;
shouldn't it be int timesRan = 0;

light geyser
#

i declare it earlier in the class 🙂

sinful spire
#

oh wait what

#

i dont see it anywhere

light geyser
#

Not in the snippet

#

Its a larger class xd

sinful spire
#

ohh

light geyser
#
public class ModuleDioriteDamage implements Listener {

    static List<UUID> playersWithDiorite = new ArrayList<>();
    static int timesRan;
    static boolean warningGiven;
    
    @EventHandler
    public void onPlayerPickupItemEvent(EntityPickupItemEvent event) {

        Item item = event.getItem();```
keen holly
#

I am certain that my DB server is running

light geyser
#

thats the top

keen compass
#

@sinful spire
timesRan = timesRan + 1;
this can be written like this instead
timesRan += 1;

light geyser
#

And as timesRan++

#

Tried all, no difference in result xd

sinful spire
#

he starts with timesRan = 0

light geyser
#

Just trying more simple things to get it figured out lol

#

But I'll let it rest for tonight and look at it tomorrow

sinful spire
#

ok

#

maybe it'll work tomorrow 😄

keen compass
#

where do you initialize your variables?

#

at the top of the class?

light geyser
#

Before the BukkitRunnable

normal palm
#

Could you help me?

light geyser
#

I declare them at the top of the class, initialize them above the BukkitRunnable

keen compass
#

is there a reason you need timesRan nand warningGive outside of the runnable?

light geyser
#

No

#

Uts just if I do it inside, it gets set to 0 every time

#

Everytime it loops that is

#

So I solved it like this

keen compass
#

don't initialize it in the run method

light geyser
#

I dont

#

I do it above

keen compass
#

thatt isn't what I meant

#

Just below runnable and just above run()

#

should work for you then 😉

light geyser
#

Ah right, yep will fix that tomorrow

#

Then they dont have to be static either

inland oxide
#

Aren't the variables passed to the runnable going to be final unless they are threadsafe?

light geyser
#

Thank you for that O.o

keen compass
#

You are creating an anonymous inner class is what is happening

inland oxide
#

what is timesRan anyway, you don't show what kind of object it is.

light geyser
#

Integer

#

Static one

keen compass
#

don't make it static =/

inland oxide
#

Did you try AtomicInteger?

light geyser
#

Nope, didn't know that was a thing

#

But I'll try Frostalfs solution tomorrow when I'm at my computer again, else I'll report again in here xd

keen compass
#

your issue is that your objects are not public

#

therefore like any other class

#

you can't grab them

inland oxide
#

not sure if it will make a difference, but it's threadsafe

light geyser
#

Well that's interesting, since it did work in my other class XD

keen compass
#

BukkitRunnable() is being created as an anonymous inner class

patent monolith
#

random question: is minecraft single-threaded only for the sake of the world block/entity operations? or is there more

keen compass
#

so basically you have 2 classes in one but the same rules between classes still apply 😉

patent monolith
#

(also yes i am aware there are more threads for netty and chat, but im talking about the core aspects of minecraft)

patent monolith
#

if so, what if there was a thread per world? this is more of a vanilla/nms thing not necessarily a spigot thing

inland oxide
#

Primarily for chunk initialization. Not sure about world/block operations.

sinful spire
#

i dont think minecraft supports multithreading

keen compass
#

because the they are initialized at the top @light geyser and static

#

the ones you do use

patent monolith
#

i know, but i just have ideas if they did

light geyser
#

Fair 🤔 ill implement your solution tomorrow

storm sparrow
#

is there any way to pass outdated client errors to the player on a bungeecord network? I had a player get disconnected from both servers for being outdated, but all it said was failed to connect to default or fallback

sinful spire
#

the only multithreaded thing is lightning engine 😄

patent monolith
#

I thought it would be super convenient if each world had its own thread lmfao

sinful spire
#

it would be

patent monolith
#

then for 1v1s, i can spin up another world rather than another server

#

@sinful spire chatting is async as well

inland oxide
#

the problem is not creating threads, but syncronizing events and state.

keen compass
#

basically what you want is another server started inside the already running server o.O

patent monolith
#

not inside the same jvm

#

some other server does this

#

i think it is cubemc or something

#

whenever you enter a 1v1, it will spin up another server (not world)

#

then i think it does some magic with bungee

keen compass
#

Oh you want a method to spin up another server for worlds

sinful spire
#

hypixel has a lot of bungee servers when you play skyblock and other minigames

keen compass
#

This is actually fairly easy to create. It is a bit of a tedious setup though before of things you will need to make this possible. But it is doable

patent monolith
#

yeah

keen compass
#

what you need is to create a master VM image with all the things you want setup the services etc, then you just use some API methods for the VM to make a copy of the master image, launch the VM and then you need a plugin to add it to the server list 😉

patent monolith
#

I dont know bungee at all, but for now I will just make separate worlds

#

so*

#

@keen compass calling a subprocess?

#

I made this library like a year ago that allows you to spin up a sub-jvm and talk to it using its input/output streams

keen compass
#

depends which VM software you use. Virtualbox you can run commands to get everything setup, and Java allows running commands 😉

inland oxide
#

Well can always make multiple new worlds run on different servers, and bridge them through bungee, but not sure there is something to handle separating the existing dimensions (world, nether, the_end) and provide a revised dimension manager.

patent monolith
#

the input/output streams would use something i made called a 'splitoutputstream' and 'splitinputstream' and it basically lets each side switch channels in the stream

inland oxide
#

If you just want custom worlds, can also look at MySQL Player Data Bridge to allow moving player data when moving between servers

keen compass
#

and you can dynamically set the IP addresses on the VM without having to worry about setting that in the server configs 😛

patent monolith
#

then i would system.setout, system.setin to mimick the expected behaviour

#

after all that is done, a securitymanager can be activated

#

thanks for the advice

#

I think I will just stick to making different worlds

#

or just use the same world and make glass arena boxes LOL

keen compass
#

well, what you are wanting is already possible. Just a lot more involved in the before hand setup stuff then what you are probably wanting 😉

patent monolith
#

it sounds really cool, but I dont need it. I was just wondering if there was a convenient way to do it

inland oxide
#

then there is always Slime World Manager

patent monolith
inland oxide
#

the only problem with post startup world generation is lag in the main thread

#

at least with 1.16.x

keen compass
#

if you decide to launch the worlds in the server. Generally not the ideal way to do it if you are creating worlds for the purpose of arenas lol

#

generally a lot better to just launch additional server instances instead 😉

inland oxide
#

arenas can be pregenerated and just reloaded, though.

#

if you want something like another survival world, yeh, maybe another jvm instance would fit the bill

keen compass
#

but it really depends on what is going on in those worlds

#

and how many players

keen holly
#

.... [20:18:12 ERROR] [LiteBans]: litebans-pool - Exception during pool initialization.
.... [20:18:12 ERROR] [LiteBans]: Failed to connect to [jdbc:mariadb://localhost:3306/litebans;useSSL=false&serverTimezone=UTC] using mariadb driver.
.... [20:18:12 ERROR] [LiteBans]: Error: Failed to initialize pool: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
.... [20:18:12 ERROR] [LiteBans]: Cause: Connection refused (Connection refused)
.... [20:18:12 INFO]: Failed to connect to database.
still need help. my database works, this same configuration worked on my old server.

inland oxide
#

say you wanted to spin up multiple private servers in jvm containers for players to access

#

This actually was done on a server in the past that I've played on

keen compass
#

@keen holly just because it world on your old server doesn't mean it works everywhere

#

is the mysql server up?

keen holly
#

yes

keen compass
#

Then change the part of localhost to point to 127.0.0.1

keen holly
#

i did that, no dice

keen compass
#

then the server is not up

inland oxide
#

how did you migrate the database to the new server?

keen holly
#

I dumped the databases and then imported it to the new server

inland oxide
#

and the users?

keen holly
#

yes

#

[root@keen holly-panel ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.2.32 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running) since Fri 2020-07-17 14:03:39 CDT; 1h 49min ago

keen compass
#

then check the user credentials

wind dock
#

How many minecraft servers would you guys recommend for a bungeecord network?

keen compass
#

as many as you can run

#

😉

inland oxide
#

check that you can connect over 3306 to the mariadb server

sinful spire
#

you mean hub servers? like if one gets down etc

wind dock
#

My friend has a dedicated machine, and he's willing to offer me a couple servers, im wondering how many to ask for

#

Its not going to have any minigames like skywars where you need tons of servers

sinful spire
#

oh skywars

wind dock
#

Its not*

#

I mean for the entire network

keen holly
#

The minecraft server is on the same server as the mariadb server

sinful spire
#

if you have an active community skywars need like 30 servers to be good

keen holly
#

There shouldn't be a port issue

inland oxide
#

@keen holly what os?

keen holly
#

CentOS 7

ashen schooner
#

hey, is this discord for spigot in general or any plugin within spigot?

keen compass
#

CentOS blocks ports by default, however it shouldn't affect the loopback address though =/

wind dock
#

I'm not talking about skywars

inland oxide
#

and you can connect to the database from bash?

#

as root?

sinful spire
#

mostly Spigot and BungeeCord, but some people may now plugins

wind dock
#

Its going to have mainly core gamemodes

sinful spire
#

oh, depends on how many gamemodes you are going to have

keen holly
#

I'll try doing that

wind dock
#

@sinful spire but what would you recommend for like general, idk how many gamemodes im gonna have

keen compass
#

Then how do you know how many servers you will need?

wind dock
#

I'm saying an estimate of how many a good server should have in ur opinion :/

keen compass
#

as many as you can run, there is no good amount or bad amount

wind dock
#

So... is 3 regular servers and 1 bungee ok?

keen compass
#

sure

#

5 is ok to, as well as 2

wind dock
#

How would u do 2 lol

#

1 bungee and 1 regular?

wraith thicket
#

How many separate servers is "good" depends on the use case. You generally want 1 server per game mode you want to support. But depending on game modes, you might need multiple for one game mode as well.

keen compass
#

hub servers don't need to be dedicated hub servers

#

your hub server can also be a survival server

#

😉

wind dock
#

Oh yeahhhh

wraith thicket
#

It's sort of like asking "What's the best laptop?" - it depends on what you want to use it for

inland oxide
#

depends on what he is offering.

wind dock
#

Smart move, but won't the tablist show the players in the ENTIRE server?

inland oxide
#

is he offering a couple containers or a couple pterodactyl instances?

keen compass
#

I mean if all you have is a bungee and survival not going to be an issue XD

wind dock
#

Multicraft :/

keen compass
#

eeew multicraft

inland oxide
#

so you typically have to run servers on separate instances

#

including bungeecord

wind dock
#

Yeah

inland oxide
#

well, be gracious, say you will take 3 to start, one for bungee, one for a hub and one for a survival server, but let him know that after you get those up and running, might consider more if there are enough players

keen compass
#

bungee doesn't need a lot of ram btw

#

at most just needs 1GB

#

giving it more ram isn't going to do anything for it XD

storm sparrow
#

1gb per 250 players is what people usually do

wind dock
#

Oki

inland oxide
#

key point is don't ask for more than you can handle, and be gracious

wind dock
#

He gave me a 2gb bungee server :/

sinful spire
#

then its going to run smooth + 1gb of ram

wind dock
#

Is that a good thing or overkill/not needed?

keen compass
#

@storm sparrow I guess that is a way to look at it, wouldn't necessarily agree on that though lol

sinful spire
#

if you dont have like a thousand players it probably not needed

keen compass
#

it is a bit of overkill but it is fine @wind dock

wind dock
#

Oki

#

Thanks guys

keen compass
#

hub servers typically only need 2-4GB as well

#

depending on what you have going on there

sinful spire
#

hey geometry a question

#

im kind of colorblind, what is on your avatar lol

keen compass
#

it is honey

sinful spire
#

oh ok

#

lol

keen compass
#

honeycomb on the side, honey jar

sinful spire
#

thanks

keen compass
#

sometimes clicking those images makes them larger too btw

#

not sure if it helps you with being colorblind, but at least you can make out more details that way

sinful spire
#

i guess i can change some stuff in discords css to get images to be normal in colorblind

inland oxide
#

I finally got my 20w29a working

sinful spire
#

gg

keen compass
#

was there something wrong with it?

inland oxide
#

yeh, there is a vanilla bug with the new angle argument

#

it's not getting registered, so bungee will choke on it

sinful spire
#

its weird because when i run f.lux which makes a night mode with yellowish screen, it shows images as if i wasn't colorblind

keen compass
#

are you only colorblind to yellow colors?

#

or just colorblind in general?

sinful spire
#

yellow-green i think

inland oxide
#

R-G or B-Y or complete

sinful spire
#

wait nvm

#

b-y

#

wrong color 😄

inland oxide
#

there are 7 types in total

sinful spire
#

but with, i can

sturdy oar
#

bruh 35

#

nice

tiny dagger
#

what do you mean

#

you're colorblind?

#

🤔

#

the default color scheme should be able to distinguish all the individual colors

sinful spire
#

wdym

tiny dagger
#

why would he need flux

sinful spire
#

F.lux is making images somehow so i see them like norma,l and not colorblind

tiny dagger
#

maybe your contrast is off the charts

#

you should be able to see all the separated gradients

sinful spire
#

Uh

#

Dammit

#

I cant send images

#

The image isnt loading

subtle blade
#

bruh 35
Too bad that's a 74, chief

polar gust
#

Does adding maven dependencies work for plugins?

frigid ember
#

no thats 71

polar gust
#

is there a org.reflections jar file?

subtle blade
#

If you can't see 74, there's a possibility that you may be colour blind

#

Which some people are but don't know

sinful spire
#

why is it outlined

#

i can see clearly that its 74

subtle blade
#

I drew around it lol

sinful spire
#

oh

#

lol