#help-archived

1 messages · Page 77 of 1

timber barn
#

oof

wanton delta
#

It doesnt matter if it saves because youre deleting it right?

keen compass
#

since you will be deleting the world to reset it, makes no sense to have the server save changes, therefore disable auto-save to save on some performance.

frigid ember
#

no just calm down

#

please

#

ur not understanding

wanton delta
#

lol

#

Im not sure if you’re understanding either

frigid ember
#

i am

#

look

#

do you see that

wanton delta
#

Yes

frigid ember
#

ok

#

so when i load the arena i just disable the auto save

keen compass
#

yes

fair abyss
#

can I get a bungeecord server's consolesender from bungeecord plugin?

I want to dispatch command to a specify server. can I do it without using pluginmessaging?

wanton delta
#

Yea

frigid ember
#

so that it does not save to the region files

wanton delta
#

Well youre deleting the region files

frigid ember
#

yes?

wanton delta
#

So youre disabling autosave for the wrong purpose

#

But you should disable it anyway

#

Because remember this world is a copy

#

Not the master world

frigid ember
#

yes but after i disable the autosave

#

all the chunk changes are saved in memory?

#

yes

wanton delta
#

They are saved in memory but thats why you unload it

frigid ember
#

then after the game ends

wanton delta
#

So they are no longer in memory

frigid ember
#

i unload the world

wanton delta
#

Unload the world after game ends

#

Yes

frigid ember
#

and the create the world

wanton delta
#

No

#

You copy the world

#

Different

frigid ember
#

why if it has not been changed

wanton delta
#

You delete the world actually

#

Then copy it

frigid ember
#

but why if the chunks have not been changed in the file

wanton delta
#

The chunks will be saved

frigid ember
#

the files are UNCHANGED

wanton delta
#

Thats what unload does

#

Unloading the world will apply changes

frigid ember
#

ok let me listen from your point of view

#

what do i do when i load the arena

#

i copy the arena to a different folder

wanton delta
#

You copy the master world to the where your server worlds are

#

Load the world

frigid ember
#

ok so when the arena is loaded

wanton delta
#

Ye

frigid ember
#

i copy

wanton delta
#

No

#

You copy and load the world before you load the arena

frigid ember
#

ok what do i use to do that

wanton delta
#

Wdym

frigid ember
#

how do i copy the world

wanton delta
#

Google how to copy a directory in java

#

Probably File

frigid ember
#

ok

#

i copy the whole world folder to a different folder

#

lets call it

#

arena_original

#

yes?

naive goblet
#

so

wanton delta
#

You dont copy to the master world

#

You have it saved

#

And hou just copy from it

naive goblet
#

I mean you'd need to create a new directory then clone the files to the new dir?

wanton delta
#

The master world already exists

#

You are not creating it

frigid ember
#

so i copy these files

#

to a different folder

#

right?

naive goblet
#

pretty sure

wanton delta
#

You have the master world

#

Say in a folder called maps/

frigid ember
#

maps/arena

#

ok

wanton delta
#

You are copying the arena directory to wherever your server is

#

So you can teleport players to that world

frigid ember
#

ah so

#

i make a copy of my saved arenas in maps/

#

as i am loading the arenas to be palyable

hollow thorn
#

im making a lava walker

#

plugin

#

but when i jump into lava

#

it glitches

frigid ember
#

and then i copy the master world to a place where the server can read it

#

load it

#

game ends

#

delete it

#

right?

wanton delta
#

Yes youre plugin shouldnt be manipulating the maps/ foler

#

Only reading from it

frigid ember
#

yeah

timber barn
wanton delta
#

Yes your steps sound logical

frigid ember
#

maps stores

wanton delta
#

Just make sure to unload it

frigid ember
#

my original arenas

#

i make a copy of them

hollow thorn
frigid ember
#

ok that is a way

#

i had another idea

#

where i dont need to copy any worlds anywhere

#

or even create anything else

naive goblet
#

when u wrote a good pseudo code and now poop

frigid ember
#

just memory and the world

timber barn
#

what does the glitch looks like @hollow thorn ?

idle zodiac
#

paste

#

wat

#

paste it

#

what is the link lol

#

?paste

wanton delta
#

@frigid ember you dont want to just unload the world without saving then load it again

worldly heathBOT
idle zodiac
#

um

#

ah

wanton delta
#

It can be unreliable

idle zodiac
#

thanks

frigid ember
#

@wanton delta because it may get corrupted?

hollow thorn
#

what does the glitch looks like @hollow thorn ?
@timber barn if i run into lava i set on fire and get tped one block above the lava

idle zodiac
#

I'm making a Shop Menu, but the Buy Menu isn't working (i.e. I can pick up items and neither price nor item amount are altered)
https://paste.md-5.net/ekitaxatum.java the buy menu is at Line 122.

timber barn
#

@hollow thorn I would gess its because of line 10 and 11

#

you teleport yourself 1 block above lava

#

¯_(ツ)_/¯

hollow thorn
#

but then i dont fall down again

timber barn
#

yes because gravity is false

#

remove the teleport thing

#

how about now?

hollow thorn
#

then i would be in lava

#

and on fire

timber barn
#

ok, what do you mean by being 1 block above lava? Like it works as intended or with 1 free block between you and lava?

idle zodiac
#

I'm making a Shop Menu, but the Buy Menu isn't working (i.e. I can pick up items and neither price nor item amount are altered)
https://paste.md-5.net/ekitaxatum.java the buy menu is at Line 122.

dusty topaz
#

lines 23-49 make my eyes hurt a bit :(

idle zodiac
#

XSD

naive goblet
#

Only 23-49?

inland depot
#

Btw, instead of hardcoding each individual item I'd recommend using a yml file. Much easier and quicker to manage 🙂

idle zodiac
#

How would I go about that?

naive goblet
#

Make an ItemBuilder and use arrays

idle zodiac
#

I'm using ItemBuilders

naive goblet
#

No?

#

You're just using it's raw constructors

inland depot
#

Arrays in the config.

naive goblet
#

Why should he use a config?

idle zodiac
#

I'm so confused

inland depot
#

i find them easier to manage

idle zodiac
#

this isn't what I'm looking for

inland depot
#

you dont have to but its just a suggestion down the line

idle zodiac
#

My e.setCancelled(true); isn't working

#

ye ik

#

I'll probably sort that out later

naive goblet
#

First of all why BukkitRunnable

idle zodiac
#

because I can get that to work reliably

#

also

#

that's fine

naive goblet
#

BukkitScheduler#runTaskLater(Consumer<BukkitTask>)

idle zodiac
#

the problem is my Buy Menu

#

the e.setCancelled(true); isn't working

naive goblet
#

Why comparing titles?

idle zodiac
#

Why not?

naive goblet
#

What if another plugin or a config has that name?

#

Why static instance of main?

idle zodiac
#

LOOK

#

I'm not worried about that for the moment

#

if you aren't willing to help with what I'm ACTUALLY requiring help with

#

then I mean

wanton delta
#

Are you sure your code is reaching e.setCancelled

naive goblet
#

Yeah e.setCancelled doesnt work?

idle zodiac
#

I don't need to be berated for my mishaps

naive goblet
#

which line

idle zodiac
#

224

#

I'm proibably going insane

#

i've been programming for 36 hours

naive goblet
#

there is no setCancelled at 224?

idle zodiac
naive goblet
#

update ur bin then

idle zodiac
#

ah

#

ok

#

tired sorry

naive goblet
#

its fine

idle zodiac
wanton delta
#

Is it throwing an error?

idle zodiac
#

everything apart from that works

#

no

wanton delta
#

Are you sure its reaching that point?

idle zodiac
#

nvm

wanton delta
#

Have you debugged it?

idle zodiac
#

it's throwing an NPE

#

sorry

wanton delta
#

mhm

idle zodiac
#

I can't with myself today

naive goblet
#
                if (e.getClickedInventory().getTitle().equalsIgnoreCase(ChatColor.YELLOW + "Buy Menu"))
                {
#

Maybe this never goes through

wanton delta
#

No

naive goblet
#

where is NPE thrown?

wanton delta
#

He needs to null check the clicked item

#

I think

idle zodiac
#

line 78 apparently

#

but every other menu works fine

#

my brian hurts

hollow thorn
#

how do i get the SPEED of a player

naive goblet
#

mb null check e.getClickedInventory ?

hollow thorn
#

(as in m/s (blocks per second))

naive goblet
#

iirc its nullable

idle zodiac
#

Conclure can you remind me how to do that XDDD

#

I'm so sorry lol

#

I'm just so ture

#

tire

#

tired

naive goblet
#

if (e.getClickedInventory() != null)

wanton delta
#

if(something== null)

idle zodiac
#

ah

wanton delta
#

Hence

idle zodiac
#

rtehjiaos

wanton delta
#

Null check

idle zodiac
#

o

#

iok

#

thasnk

naive goblet
#

depends if he is nesting or not

wanton delta
#

Well yea

#

You want to use implicit else

hollow thorn
#

how do i get the SPEED of a player

naive goblet
#

You should unless very specific cases

#

getVelocity?

hollow thorn
#

in blocks per sec?

naive goblet
#

have a timer that the player distance can rely on

#

Or I mean you wanna test the block / sec?

wanton delta
#

Velocity is only for when the player is in the air

idle zodiac
#

I've added && e.getClickedInventory() != null in the if statements checking the clicked inventory

naive goblet
#

You need a distance and a time

idle zodiac
#

still doesnt work

naive goblet
#

still NPE?

idle zodiac
#

no

#

no np3

#

npe

naive goblet
#

ok good

#

so what

#

now?

idle zodiac
#

my e.setCancelld(true); doesnt work still

#

also why do you guys replace . with #?

wanton delta
#

What you do is schedule a repeating task every tick and save the previous location, get the distance of the new location between the old one, then divide by 0.05

naive goblet
#

is line 153 reached?

idle zodiac
#

the menu is operned

wanton delta
#

Class#method

idle zodiac
#

yes

wanton delta
#

Its just how you document things

idle zodiac
#

o ok

hoary parcel
#

its how it works in the javadocs, thats why ppl use it

idle zodiac
#

ok

hoary parcel
#

not because "thats just how it is", lol

idle zodiac
#

XD

#

my e.setCancelld(true); doesnt work still

naive goblet
#

I mean typing the entire event class name is kind of long

#

and we know what he meands

wanton delta
#

It is just how it is tho

idle zodiac
#

ye ik

#

thats fine

#

but my e.setCancelld(true); doesnt work still#

wanton delta
#

Wdym doesn work

#

Put a debug message at that point

idle zodiac
#

i can pick things up from the inventory

wanton delta
#

And test if it’s actually grtting there

#

System.out.print(“event cancelled”)

idle zodiac
#

no

#

it's not getting there

wanton delta
#

So what does rhat tell you

idle zodiac
#

i literally have no clue

#

my brain is frazzled

wanton delta
#

You need more debug messages

idle zodiac
#

ok

naive goblet
#

For each operation do the debug message

idle zodiac
#

i wasn't spamming lol

naive goblet
#

In that way we can easier find where it goes wrong

wanton delta
#

Yea, usually for each comparison

naive goblet
#

^

wanton delta
#

Every time you do a switch or if/else

idle zodiac
#

ok

wanton delta
#

And make the message different every time so you know which message it is lol

idle zodiac
#

So

#

I htink i know where i'm at

#

so

#

i dont think my event is recognising my buy menu

#

idk why

#

but i dont think it is

wanton delta
#

wdym

#

Have you debugged

#

Because thats the only way to know

idle zodiac
#

because It seems like I have a debug msg there already

wanton delta
#

I dont see one

idle zodiac
#

or i mean

#

smth along the lines of that

#

player.sendMessage(ChatColor.stripColor(e.getCurrentItem().getItemMeta().getDisplayName()));

#

line 155

#

i think

wanton delta
#

So what does rhat tell you

#

The title of the inventory doesnt match the title of the event inventory

#

So you should switch to a different method of detecting if a player is in the inventory

#

You just said it doesnt?

frigid ember
#

but you put the check for buy menu inside of the blocks level 1 menu?

wanton delta
#

Or thats what the event is saying

#

Put more debug messages

#

Eevey time you compare something in an if/else

#

Youre being very reluctant to actual debug stuff

#

Do you know what is going wrong?

#

So what is wrong?

#

mhm

#

Add the players to a hashmap or arraylist or smth

#

And remove them when they exit the inventory

#

You should just not compare the titles of the inventories

frigid ember
#

if you dont try to check if they're in a different menu from a different menu

naive goblet
#

You could use InventoryHolder but it's not a good practice

#

We all do ;0

#

idk if this can help

#

Outdated but you get the hint

#

dont giv up

#

:/

wanton delta
#

Nononono

#

Dont do that

#

Because inventories are two seperate instances

#

You cant compare them

latent rock
#

i7 7700K or Ryzen 5 3600x for OVH?

wanton delta
#

You need to keep track of the players in your inventory

#

Whenever they open your inventory add them to a list or whatever

#

SetCancelled isnt working because your code isnt getting to that point

#

-.-

#

Your if/else statement returns false

#

So the event isnt cancelled

#

No

#

Print to the console what the event’s inventory title is

#

Because right now its saying it doesnt equal the same thing

#

You should be debugging

frigid ember
#

but????? can't it just be the fact

#

that you're checking for a different clicked inventory inside the original inventory

wanton delta
#

What

frigid ember
#

you're still inside the blocks (level 1) menu

vernal spruce
#

stop spamming

wanton delta
#

LMAOO he just got banned i think

idle zodiac
#

this is diot

frigid ember
#

no

idle zodiac
#

sorry

wanton delta
#

Oh

#

Nvm he’s here

idle zodiac
#

i just got excited

wanton delta
#

Deleted all of his messages lol

idle zodiac
#

riprip

#

oh well

#

so

wanton delta
#

You should stop saying “so”

idle zodiac
#

i just found out that it thinks i'm inside my blocks menu

#

sorry its a habit

#

this automod is too efficient

#

can't they switch to smth shite like mee6

#

XDD

radiant hollow
#

what kind of dumdum is going on in here

wanton delta
#

i have no clue

eager lagoon
#

:thocc:

wanton delta
#

This man is practically braindead and doesn’t wanna take a break

idle zodiac
#

2 spigot pros trying to tell a very tired noob how to use his brain

#

literally

#

i have 1 braincell

wanton delta
#

LOL

#

Might help to sleep? :)

idle zodiac
#

it thinks i'm in my first menu

wanton delta
#

Yes

idle zodiac
#

its early

wanton delta
#

Oh

idle zodiac
#

i've been coding since 4 am

#

its 7 pm

wanton delta
#

oh?!?!?

idle zodiac
#

my brain is slightly

#

ya know

wanton delta
#

Are you from hawaii or smth

idle zodiac
#

ez 60 cps bdm montaged

#

but i mean

#

i can still code amirite lads

frigid ember
#

no xd

idle zodiac
#

r/woooosh

#

it was rheotreifsocol

#

noit roi asmd ehdi

#

oops

#

not to answer

#

anyway

#

how do i get it to not think that i'm in blocks

keen compass
#

o.O

idle zodiac
#

because my brain is hurt

#

omg frostalk

#

hi

frigid ember
#

seperate them

#

with like a bracket

idle zodiac
#

?

worldly heathBOT
#

Edit this to change the output of the command!

idle zodiac
#

o ok

#

what

frigid ember
#

so

#

under openBuyRunnable.run whatever put a }

fair abyss
#

readUTF() throws EOFException
com.google.common.io.ByteArrayDataInput

idle zodiac
#

OH

#

MY BRAIN OK

vernal spruce
#

jeez guess the config api offers is that bad?

old elk
#

on my bungee cord server without any extra perms plugin how to I set a group

idle zodiac
#

it still thinks that i'm in blocks

#

@frigid ember

vernal spruce
#

the group is offered by a permision plugin

#

unless you want to handle them yourself

old elk
#

I have luckperms for my servers but i mean on the bungee cord server for bungee plugins how do I set groups with the default permissions

vernal spruce
red zenith
#

Yeah, but in that same 5 seconds, someone else will google it for me /s

sturdy oar
#

lol he still hasn't done it?

#

It takes literally 30min do setup a LuckPerms on BungeeCord

naive goblet
#

30 min

#

1 wpm ?

old elk
#

@sturdy oar I set up luckperms on bungee cord a while ago im not talking about server perms i was talking about bungee perms

red zenith
#

You mean permissions related to access of bungee related commands?

old elk
#

yeah

naive goblet
#

/lp user Conclure perm set perm.node true server=bungee [Fallback]
/lpb user Conclure perm set perm.node true [Proxy]

#

iirc

red zenith
#

lpb is for bungee

naive goblet
#

lpb can still be used to set fallback server perms

vernal spruce
#

@naive goblet where is that nerd picture,i lost it Kappa

naive goblet
#

Good you lost it 🤡

deep olive
naive goblet
#

Alr having a server instance running?

deep olive
#

I think so he just stops the server

#

sorry if my english is wrong i'm brazilian

inland depot
#

I'm using the plugin "Holograms" by SainttX to manage envoys on my server. I want to use holograms to make player specific leaderboards but I don't think this plugin has that feature. I think it'd be a bit difficult to swap the envoys to holographic displays, but I really want these other holograms to work.

Note: The player holograms and envoy holograms aren't linked.

Should I install holographic displays on my server and keep the other hologram plugin so I can use holographic displays to manage the non-envoy holograms or is there a smarter solution?

deep olive
#

he tried to use the default port and the error

vernal spruce
#

why Holograms

#

isnt HolographicDisplays the most used?

inland depot
#

yes but the api didn't have what i needed

#

although if i absolutely needed to i could probably figure out some workarounds with my code

vernal spruce
#

i mean.. what it didnt have

#

you spawn a holgoram not much else

inland depot
#

it was the removal method of the holograms

vernal spruce
#

hologram.delete hm?

inland depot
#

no i did that

#

im saying it would sometimes delete different holograms

#

i could probably revisit my code and see if i can manage it

vernal spruce
#

it depends on how you store them though

#

havent had any problems with deleting certain holograms

inland depot
#

that was probably my issue

vernal spruce
#

yeah i need to fully rewrite alot of plugins

#

from along time ago

#

it burns my eyes seeing what i wrote thee

inland depot
#

same here

#

even stuff from a few weeks/months ago

#

and before i started documenting my plugins and stuff

#

just an absolute mess

naive goblet
#

who documents

#

lmao

#

ok actually gj if u doing it

inland depot
#

like this is what i'm referring to

vernal spruce
#

yeah now that i switched to intellij and it auto completes

naive goblet
#

That's kind of redundant but yeah

vernal spruce
#

i finally name my methods the right name😂

naive goblet
#

fair enough

inland depot
#

not sure if you call that documentation but it works

naive goblet
#

You have the effort

inland depot
#

just helps me remember what parameters i need

vernal spruce
#

boy thats bit too much for me

#

i usually just type some random //This does this shit

naive goblet
#
/**
 * void method called pro
 */
void pro() {

}```
deep olive
#
// Uh... Did I do that?

Time: 13/05/20 14:21
Description: Exception in server tick loop

java.lang.IllegalArgumentException: port out of range:71015
    at java.net.InetSocketAddress.checkPort(Unknown Source)
    at java.net.InetSocketAddress.<init>(Unknown Source)
    at io.netty.bootstrap.AbstractBootstrap.localAddress(AbstractBootstrap.java:163)
    at net.minecraft.server.v1_15_R1.ServerConnection.a(ServerConnection.java:80)
    at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:193)
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784)
    at java.lang.Thread.run(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (x86) version 10.0
    Java Version: 1.8.0_241, Oracle Corporation
    Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    Memory: 750350448 bytes (715 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    CPUs: 4
    JVM Flags: 2 total; -Xmx1024M -Xms1024M
    CraftBukkit Information: 
   Running: CraftBukkit version git-Spigot-800b93f-8160e29 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT) false
   Plugins: {}
   Warnings: DEFAULT
   Reload Count: 0```this and the crash report that gave when i tried to put in a random port...
naive goblet
#

BIN

#

PLS

inland depot
#

lmao thats also a decent method

vernal spruce
#

ahh yes paper

#

oo wait its spigot

#

port out of range? damn

#

change port to something lower

#

or appropiate to the default 25565

naive goblet
#
Description: Exception in server tick loop

java.lang.IllegalArgumentException: port out of range:71015
    at java.net.InetSocketAddress.checkPort(Unknown Source)
    at java.net.InetSocketAddress.<init>(Unknown Source)
    at io.netty.bootstrap.AbstractBootstrap.localAddress(AbstractBootstrap.java:163)
    at net.minecraft.server.v1_15_R1.ServerConnection.a(ServerConnection.java:80)
    at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:193)
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784)
    at java.lang.Thread.run(Unknown Source)
#

okay css looks cool

vernal spruce
#

no

deep olive
#

ok

naive goblet
#

well you can't have port 71015?

#

it only goes up to like 60000 or smtng iirc?

#

or am I dumb now?

deep olive
#

Are you going to run

fair abyss
#

yes

#

port has a limit

deep olive
#

but now from what I understand you haven't found the port

fair abyss
#

is it your plugin? @deep olive

deep olive
#

I'll get the name wait ae

#

can you see this image?

#

i will try to take out worldguard i think and he

#

wtf I entered a website to get my ip and by the way my ip keeps changing

sturdy oar
#

the hell

#

why are you hosting on port 70k

#

the greater port you can use is (2^16)-1

timber barn
#

LUL

#

havent realized that

sturdy oar
#

that's because ports are 16bit numbers

#

and since port 0 exists

#

the greater is 65535

deep olive
#

bro I put the default port and still not going

frigid pumice
#

can u post the new crash report here?

sturdy oar
#

post the new stacktrace

#

with default port (25565 for minecraft)

deep olive
#
[14:35:43] [Server thread/INFO]: Loading properties
[14:35:45] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-800b93f-8160e29 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
[14:35:45] [Server thread/INFO]: Debug logging is disabled
[14:35:45] [Server thread/INFO]: Server Ping Player Sample Count: 12
[14:35:45] [Server thread/INFO]: Using 4 threads for Netty based IO
[14:35:45] [Server thread/INFO]: Default game type: SURVIVAL
[14:35:45] [Server thread/INFO]: Generating keypair
[14:35:45] [Server thread/INFO]: Starting Minecraft server on myip:25565
[14:35:45] [Server thread/INFO]: Using default channel type
[14:35:47] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
[14:35:47] [Server thread/WARN]: The exception was: java.net.BindException: Cannot assign requested address: bind
[14:35:47] [Server thread/WARN]: Perhaps a server is already running on that port?
[14:35:47] [Server thread/INFO]: Stopping server
[14:35:47] [Server thread/INFO]: Saving players
[14:35:47] [Server thread/INFO]: Saving worlds```
timber barn
#

failed to bind to port

#

a server or java application is already running on 25565

#

close all ur java applications

#

if u are running linux kill the java process

peak marten
#

Are you already running a server?

sturdy oar
#

yeah close all process that are binding that port

timber barn
#

Are you using Screen under Linux? @deep olive

deep olive
#

no

timber barn
#

ok, Linux at all?

frigid ember
#

I never understood how you added the coloring to discord code blocks

#

do you put like the language after the ```<-

peak marten
#

@deep olive , use a open port checker on your IP with the given port

#

if it say's it's open, some other service is already using that port

wanton delta
#

```java
Your code
```

timber barn
#

not needed, it should work after killing all java processes

frigid ember
#

ah

deep olive
#

now that i saw it has no open port

timber barn
#

thanks @wanton delta

frigid ember
#

i guess

#

it isnt really java

timber barn
#

So that was a lie

#

But its looking fancy @frigid ember

faint hinge
#

hi all i dont suppose there is a way to get the mojang auth lib using maven is there?

dusty topaz
#

Anyone know how to secure a bungee network

#

Someone just logged on on my account, but I can't replicate what he did to get on lol

tiny dagger
#

He used another bungee

#

That's why you should hide your servers

faint hinge
#

by the soundsof things ur allowing unpaid users to access the network. which then means a person can create an miencraft account with the name of ur account and logged in to ur network. correct me if thats what but thats what i have herd can be done

tiny dagger
#

By either local host or a firewall

dusty topaz
#

He used another bungee

#

wdym

#

he setup his own bungee pointing to my server or something?

timber barn
#

in which account?

faint hinge
#

@tiny dagger even if he used another bungee that wouldnt explain why he could access via his accounnt.

timber barn
#

Your Minecraft account? @dusty topaz

dusty topaz
#

yea, obviously offline mode

#

since bungee and all

timber barn
#

Well but your bungee is in online? Doesnt it?

faint hinge
#

It sounds like someone has used a offline account to access ur offlinemode servers.

#

using the same username as ur own

timber barn
#

A player isnt supposed to get directly on a server without passing bungeecord

#

@dusty topaz

faint hinge
#

^^^^

#

u can decline non proxy joins using plugins

dusty topaz
#

yes, but i just hopped on an offline account and tried to join every one

timber barn
#

You may failed ur settings then

dusty topaz
#

and couldn't get on, so its not that

timber barn
#

do you use subdomains?

dusty topaz
#

no, i have a domain that isn't proxied through cloudflare

timber barn
#

Hmmm

#

It's been a while since I set up a bungeecord, gimme a minute

pure canopy
#

would someone donate to my server?

faint hinge
#

....

pure canopy
#

c: ?

timber barn
#

¯_(ツ)_/¯

faint hinge
#

@pure canopy To get dontions on your server you might find you have to entice players to want to donate. I recommend checking out some of the plugins on the forums which might add more motive for players to donate. such as pets hats cosmetics etc.

pure canopy
#

v: then nobody would donate to my server?

faint hinge
#

Ensure ur purchasable in game stuff meets the eula requirements tho.

hallow surge
#

Lol going around asking for peolpe to ddonate isnt gonna help believe it or not

faint hinge
#

^^

hallow surge
#

Im just gonna start shaming you for being desperate

keen compass
#

Should probably be careful in doing such things because there is a fine line between donating and purchases lol. Generally if you have to donate in order to obtain something, that you otherwise can't obtain by normal means, is a purchase and not a donation XD

hallow surge
#

maybe actually get a solid server and some players and it will all happen xD

faint hinge
#

^^^

sturdy oar
#

I can donate -200€

pure canopy
#

:l

naive goblet
#

Potato make it worth

#

And mb

faint hinge
#

Minecraft servers are a quick get rich scheme

timber barn
#

Sure, how about 100 bucks. Just send me ur bank credentials and online banking login

keen compass
#

or a quick money sink

pure canopy
#

:l

keen compass
#

its like a 50/50 chance one of those will happen

#

XD

pure canopy
#

then no ?
c;

hallow surge
#

stop asking before i get toxic

faint hinge
#

Alot of minecraft servers take alot of time and effort to develop a good experiance for players. its no get rich quick scheme

keen compass
#

unfortunately, I can not make donations this month. Maybe next month 😉

hallow surge
#

Give me a reason to donate dont just be a sell out and ask

keen compass
#

And that too

hallow surge
#

Im not going to be happy with those who expect handouts just because your mom and dad give you whatever doesn't mean thats how it works stop asking for dono's when nobody wants to

pure canopy
#

Give me a reason to donate dont just be a sell out and ask
@hallow surge I can not configure more with the memory they give me, since my server is free

hallow surge
#

Using free hosting thats just stupid

keen compass
#

You can't afford hosting?

hallow surge
#

nOPE

#

why he wants our money

#

xD

pure canopy
#

why do you think I ask for a donation silly
-.-

frigid ember
#

give me all of your money

keen compass
#

Is your server any good?

sturdy oar
#

servers are an investment, if you can't afford to get a shared hosting/ dedi you should wait to have money

hallow surge
#

frostalf its prolly a 10 year old trying to dev a mc server

#

les be honest

sturdy oar
#

the more money you invest into your server, the more chance it'll be a great one

pure canopy
#

Well, I'll keep waiting for the queue and trying to add more plugins
...

frigid ember
#

if invested for the right things

sturdy oar
#

you simply don't "add" plugins to make it better to be honest

hallow surge
#

@pure canopy you using aternos xD

keen compass
#

sure, doesn't mean they can't have potential. I once hosted a server for a 12 year old, and surprisingly they were able to pay me though lmao

pure canopy
#

nop

sturdy oar
#

@keen compass you mean his dad paid you

frigid ember
pure canopy
#

:;c

sturdy oar
#

everything not OVH/Hetzner/DigitalOcean is bad

frigid ember
#

bought 5 dollar subscription

timber barn
#

@keen compass nice

random canopy
#

hii

keen compass
#

@sturdy oar no, they got an allowance, so I guess in a way you would be technically correct. But their network did well for a bit of time

hallow surge
#

zPotato if all your gonna do is ask for donos get out rn

random canopy
#

@everyone

#

yuh

hallow surge
#

xD thats not how that works

pure canopy
#

:;l

timber barn
#

@sturdy oar Webtropia also has good servers

frigid ember
#

vultr can be gud to host

#

they have cheap

pure canopy
#

good. Thanks, I still didn't lose anything when trying

frigid ember
#

used it for 4 years

random canopy
#

when is 1.16 spigot coming out

frigid ember
#

is 1.16 out?

sturdy oar
#

2 months

random canopy
#

no

keen compass
#

When you decide to go make the updates @random canopy

timber barn
#

kinda toxic

#

:D

#

Whats ur server ip @pure canopy

tacit aurora
#

does anyone have a alt account? I need a second account for testing a plugin

keen compass
#

just use offline mode and another client

timber barn
#

lul

sturdy oar
#

offline mode has been exactly made for server testing

keen compass
#

one of the only legitimate uses of it

#

Well technically no

#

it was made for servers with no access to the internet

sturdy oar
#

also

#

but come on, how do you have no itnernet

keen compass
#

however it doubles for making testing easier

sturdy oar
#

if you downloaded the server

timber barn
#

LAN Partys @sturdy oar

keen compass
#

^

frigid ember
#

offline mode gud

keen compass
#

Or maybe someone just wants a server at home, but not accessible from the outside

timber barn
#

But its 2020... no more classic lan partys :(

pure canopy
#

@timber barn I'm waiting for the damn tail

frigid ember
#

u can use hamachi

pure canopy
#

:;l

keen compass
#

Anyways in those circumstances without offline mode you wouldn't be able to join since the server would keep trying to authenticate

#

XD

timber barn
#

HAMACHI

#

OMFG

#

last time i heard that

frigid ember
#

for lan parties over the internet

timber barn
#

was

#

idk

#

10 years ago

vernal spruce
#

i used hamachi quite a lot

#

if ur ISP fkd u behind a NAT

#

its good enough

timber barn
#

:D

pure canopy
#

@timber barn I'm waiting for the damn tail
:l

timber barn
#

lel

#

what tail

#

my english isnt that fluent

pure canopy
#

hablas español xdd ?

timber barn
#

no espana

#

sorry

pure canopy
#

:v

tacit aurora
#

@timber barn sprechen sie deutsch? xd

coarse shoal
pure canopy
#

tu ingles no es bueno pero no hablas español :V ?

coarse shoal
#

Why are the forums still down 😭

pure canopy
#

que tipo de estaunidence eres v:

timber barn
#

yes but lets stay in english

#

@tacit aurora

pure canopy
#

Ok, it's fine

keen compass
#

well you could probably refer to conversation of last night/earlier this morning @coarse shoal

tacit aurora
#

😄 @timber barn

pure canopy
#

@timber barn so ... why do you want the ip if it is off, and is queued from server.pro

coarse shoal
#

@keen compass Scrolling through these chats? yikes

timber barn
#

I didnt know if its off or not

keen compass
#

its in #general @coarse shoal

pure canopy
#

:l

keen compass
#

not that it makes it any easier to scroll back

#

XD

timber barn
#

rofl

#

ctrl-f

#

is ur friend

keen compass
#

need to know what to search for though

timber barn
#

If u know what you need to search 👌

#

oh I'm too slow

keen compass
#

However, if you know anything about how the internet works, you can give it some thought and come to a sound conclusion of what that might be 😉

tacit aurora
#

if i install the cracked launcher(mc-launcher.com) does this delete files on my "normal" Minecraft Launcher

keen compass
#

I really have no clue

tacit aurora
#

*folder not launcher sry

keen compass
#

Generally if I need to test with more players, I just make a plugin to create them

#

and have them fake players do things that I want to test

tacit aurora
#

ok

timber barn
#

Show off @keen compass

keen compass
#

usually easier and better that way since you can load up as many fake players as you want without needing to launch a bunch of clients 😛

#

also, fake players can run commands too if you tell them to do commands XD

timber barn
#

Show off @keen compass
@timber barn :P

keen compass
#

if you do go that route, just know that it is easier to make fake players if the server is in offline mode, then it is if the server is online mode.

vale slate
#

evening, I heard FakePlayers

naive goblet
#

how to get players 2020 😮

subtle blade
#

do something that isn't factions

#

or literally anything oversaturated

keen compass
#

I suppose you could attach AI to them fake players XD

naive goblet
#

lmao

#

actually high iq

keen compass
#

no wonder factions servers are popular, the players are not real. What a plot twist 👀

#

that would just be terrible if that was actually implemented. Players purchasing kits just so they can be better then bots XD

timber barn
#

oof

#

No bad idea. A plugin which simulates successful servers 😂

vale slate
#

I did this, but never published it, for obvious reasons

tacit aurora
#

big brain

timber barn
#

point out the reasons for me please @vale slate

naive goblet
#

How to compete with hypixel 🧠

keen compass
#

the downside is if you constantly have more bots then legitimate players XD

#

your bots are not exactly going to be making purchases

naive goblet
#

implement it

keen compass
#

however, I know how I would implement chat though

vale slate
#

Although I think they are incredibly obvious:

  1. There are a**holes (Sorry but there is no other name for them) on this planet, which would use this plugin for purposes I don't want it to be used to, like advertising a server with lots of players
  2. It would be against the TaC
  3. It was a fun project
keen compass
#

I would just use Chester bot for chat 😄

vale slate
#

I modified the ELIZA principle and it was great fun

#

total confusion

dusty topaz
#

hey frost, any idea how someone is getting onto my network on my account

timber barn
#

there u go

dusty topaz
#

only ports that seem to be open are ssh, http, https, sql, http-proxy and then the 4 server ports

timber barn
#

wait

dusty topaz
#

did a full range 1-66k scan

timber barn
#

why 4 server ports?

dusty topaz
#

4 servers

timber barn
#

@dusty topaz

dusty topaz
#

on the bungee

timber barn
#

you just need 1

keen compass
#

what do you mean on your network on your account? What kind of network and what kind of an account?

timber barn
#

the bungee

dusty topaz
#

Somebody managed to connect onto one of my bungee servers on an offline mode version of my account

timber barn
#

the other 3 gets directed intern

dusty topaz
#

I'm trying to replicate and then will patch it, but I'm unsure how

timber barn
#

no need to open them

keen compass
#

is your bungee in offline mode?

vale slate
#

you'll need 2 per server

timber barn
#

you just need 1
@timber barn @dusty topaz this is ur solution

dusty topaz
#

i don't need 100 pings

timber barn
#

:D

dusty topaz
#

i am reading every message

timber barn
#

good

#

wasnt sure

vale slate
#

still need 2 open ports

dusty topaz
#

uhh, the server is online mode

timber barn
#

why @vale slate

vale slate
#

TCP UDP

timber barn
#

shit on udp

#

nobody needs udp

dusty topaz
#

I'm thinking it's to do with how I have my servers listed

#

ie

#
servers:
  hub:
    motd: '&bHub Server'
    address: 37.187.76.139:25547
    restricted: false
#

Should that be 127.0.0.1:25547

#

or wouldn't that change anything - i've never setup bungee before

#

but now, having seen someone give themselves all permissions, i am in a rush to learn 😅

timber barn
#

https://prnt.sc/sg8qo2
This is how ur network should looks like. If you open the ports to your other 3 servers then they can get accessed without passing bungee

keen compass
#

shouldn't restricted be set to true? o.O

timber barn
#

I guess

keen compass
#

Bungeecord config docs doesn't comment on that setting

#

so I can't remember what it does

#

XD

dusty topaz
#

Note: restricted prevents players from joining the server unless they have the bungeecord.server.[servername] permission

#

from a quick google

timber barn
#

However, closing these 3 ports does not mean that they cant get listened to internally. Your bungeecord would still be able to direct to these 3 ports

keen compass
#

are your servers all on the same machine ?

timber barn
#

shit english intensifies

dusty topaz
#

yep

keen compass
#

then set your mc servers to listen on the loop back address

#

use the loop back address as your servers addresses in the bungee config

#

loop back address is 127.0.0.1 if you didn't know

#

once that is done, direct connections to the MC servers is impossible

#

since the MC servers are not listening on a public interface

#

only bungee should be

frigid ember
dusty topaz
#

so i should close those ports and use loopback

keen compass
#

don't need to mess with the firewall

#

just change the ip the mc servers listen on to 127.0.0.1 and then update the bungee config

#

the problem is they are directly connecting and if they do that they bypass bungee, which bungee takes care of authentication and direct connecting to a server is the same as being on a network in offline mode

dusty topaz
#

yeah, but i can't replicate it

timber barn
#

so i should close those ports and use loopback
@dusty topaz yeees

dusty topaz
#

using whatever client, the furthest I got was logging on with a username with a different UUID

#

(and that required turning off the whitelist!)

keen compass
#

Either way, just change the ip the mc servers listen on and it solves your problems and you don't have to worry about closing any ports

#

can't access 127.0.0.1 from the outside so no ports to close or open

timber barn
#

Do you use linux @dusty topaz ?

dusty topaz
#

yeah, but it's intriguing none the less

#

but thank you for the help, i'll change it now

timber barn
#

Ubuntu?

keen compass
#

how they did it, is most likely a result of incorrect iptables

#

and not a configuration on the MC server stuff

dusty topaz
#

i haven't done any iptable configuration

timber barn
#

and with ufw?

keen compass
#

ufw uses iptables

timber barn
#

I know that but maybe he dont

#

:D

keen compass
#

ah

#

right

timber barn
#

so many ppl start over to set up a server without knowing how to set one up properly, so you need to ask these questions

dusty topaz
#

but how on earth could he have done it

keen compass
#

I just told you

dusty topaz
#

i can't replicate it though

keen compass
#

Well without seeing your iptables I can't really tell you. But I have a good idea though

timber barn
#

37.187.76.139:25547 is the ip?

dusty topaz
#

please don't try and connect 😅

timber barn
#

:D

dusty topaz
#

i'm in scope for my network, you are not

#

:^(

keen compass
#

this isn't home hosted is it?

gleaming totem
#

Anyone know how hard it is to make custom bosses with custom models?

dusty topaz
#

no, it's on a dedicated server

keen compass
#

ok, so how they managed to do it, is by being in the same network as your dedicated server

timber barn
#

Oh you use Pterodactyl?

keen compass
#

you might have blocked the public, but did you also include inside your network too? lol

timber barn
#

Nice piece of webinterface

dusty topaz
#

i'm unsure what you mean frost

keen compass
#

if you have a dedicated server in a data center, there is other dedicated servers next to your box, which are inside the same network as your dedicated box

dusty topaz
#

I doubt that is how they entered though

timber barn
#

I think its seperated frost

keen compass
#

think of it like your home network

#

all your computers in the home network can connect to each other as long as they know where they are at

#

but for the most part the public can't though because of the firewall/router. However, when you create firewall rules, they are generally aimed at connections from outside that network

#

but not ones that originate from inside it

#

so unless you create specific rules for that, it is a way to access a server in ways that shouldn't be allowed

dusty topaz
#

yeah, i don't think that was it

#

it came from an outside IP

keen compass
#

check that users ip

#

you can do a whois check on ip's

#

to see who owns it

timber barn
#

did u managed to secure the server now Avro?

dusty topaz
#

i'm trying to exploit them myslef first

timber barn
#

:D

#

tryhard

dusty topaz
#

Private Ip Address Lan

keen compass
#

Well should problem dump your iptables list

#

Private Ip Address Lan usually means originating from same network as your box

timber barn
#

I dont think its his servers config but spigot/bungee configs

dusty topaz
#

but the net range is 172.16.0.0 - 172.31.255.255

#

that's waaaaayyy off my box

keen compass
#

no its not

#

that is private ip space

#

meaning its literally from inside the same data center on the same network box as your dedicated box

#

its the only way to use that ip address to connect to your server

#

So it was as I stated then 😉

dusty topaz
#

hm

#

so how would he use that address to connect? and how do i prevent against that

keen compass
#

Because you can get a private ip from the router

#

it just won't route you outside of the network

#

you can even set it manually too

#

your dedicated box can have multiple ip's fyi

#

So, like I said, you didn't factor connections originating from inside the network

#

so your firewall rules didn't apply because it wasn't told to

dusty topaz
#

so how would i configure for that scenario

keen compass
#

block the private ip address spaces

#

block the entire range for them. There is 3 kinds

#

172.16.0.0, 192.168.0.0, and 10.0.0.0

#

you can block entire ranges with iptables

#

so for each of them, I would block the entire private ip spaces for all three of those

dusty topaz
#

sudo iptables -A INPUT -s 172.16.0.0/16 -j DROP

#

for all 3?

keen compass
#

think that should be /24

#

let me double check

#
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
dusty topaz
#

done

#

any other ip table configurations needed? or am i all secure now

#

with the localhost changes + these ip tables

keen compass
#

should be good now

dusty topaz
#

awesome

keen compass
#

good thing I know networking 😄

dusty topaz
#

why'd you think i singled you out?

#

i fall asleep every time they cover it

#

you are talented

limber forge
#

Am I allowed to sell an minecraft full Server like KnockIT on SpigotMC?

keen compass
#

I am surprised someone decided to get a server in your dedicated boxes data center

#

just to do that

quasi rapids
#

Does this work with a spigot server?

#

or only bungee?

keen compass
#

it is rare form of attack and not one commonly thought about hence why you don't really see much covered on that form of vector

limber forge
#

Am I allowed to sell an minecraft full Server like KnockIT on SpigotMC??

frigid ember
#

No

#

Unless you see a server sale place im pretty sure at least

keen compass
#

do note @dusty topaz since you used the iptables command, if your dedicated box reboots those additions will be lost

#

so probably would be wise to use UFW which makes sure to re-apply iptable rules

#

or make a bash script to run at reboot's to re-apply them or do it manually lol

dusty topaz
#

will use ufw

#

didn't know, thanks for the headsup

#

how would i do it with ufw though? never used it before

keen compass
#
sudo ufw enable
sudo ufw deny from 10.0.0.0/8
sudo ufw deny from 172.16.0.0/12
sudo ufw deny from 192.168.0.0/16
sudo ufw status
#

status will let you see the the iptables entries to ensure they applied

dusty topaz
#

yep awesome

#

all done

keen compass
#

and then just add any other rules you had

#

but with that and your mc servers listening on localhost you should be good though

dusty topaz
#

hmm, it seems that after doing all this i can't connect to my server anymore lol

white hearth
#

Hello, I have my world slowly destroying itself 😩
[22:13:54] [Server thread/ERROR]: Chunk file at [-17, -12] is in the wrong location; relocating. (Expected [-17, -12], got [-17, -11]) [22:13:54] [Server thread/ERROR]: Chunk file at [-16, -12] is in the wrong location; relocating. (Expected [-16, -12], got [-16, -11]) [22:13:54] [Server thread/ERROR]: Chunk file at [-15, -12] is in the wrong location; relocating. (Expected [-15, -12], got [-15, -11]) [22:13:54] [Server thread/ERROR]: Chunk file at [-18, -12] is in the wrong location; relocating. (Expected [-18, -12], got [-18, -10]) [22:13:54] [Server thread/ERROR]: Chunk file at [-19, -12] is in the wrong location; relocating. (Expected [-19, -12], got [-19, -10]) [22:13:54] [Server thread/ERROR]: Chunk file at [-21, -12] is in the wrong location; relocating. (Expected [-21, -12], got [-21, -11]) [22:13:54] [Server thread/ERROR]: Chunk file at [-20, -12] is in the wrong location; relocating. (Expected [-20, -12], got [-20, -11]) [22:13:54] [Server thread/ERROR]: Chunk file at [-14, -12] is in the wrong location; relocating. (Expected [-14, -12], got [-14, -11]) [22:13:54] [Server thread/ERROR]: Chunk file at [-13, -12] is in the wrong location; relocating. (Expected [-13, -12], got [-13, -11])
I tested a plugin (tikijukebox) and installed it. After a few hours we see chunks just randomly changing position. Logs just spam that crap all the time.

keen compass
#

did you allow your ssh ports @dusty topaz ?

dusty topaz
#

yea, i don't mean ssh

#

i mean the bungee

keen compass
#

allow connections to 25565

dusty topaz
#

I can ping the serverlist

#

I just get stuck on logging in

#

20:21:46 [INFO] [AvroVulcan] disconnected with: Could not connect to a default or fallback server, please try again later: io.netty.channel.ConnectTimeoutException

keen compass
#

did you update your bungee configs?

#

need to put that loop back ip as the ip for your mc servers

#

all the ports can stay the same for your mc servers, just change their ips in bungee config to be 127.0.0.1. Your bungee servers ip is your dedicated boxes IP or 0.0.0.0 which ever you prefer

dusty topaz
#

which file is this in for the servers

#

server.properties?

keen compass
#

bungeecords config file

dusty topaz
#

yeah i've changed those

keen compass
#

ok now update your mc servers server.properties file

#

and change the ip they listen on as 127.0.0.1

#

restart them and your bungee and they should be back to normal again

dusty topaz
#

for some reason bungee keeps overwriting the config,yml

#

I change it to 127.0.0.1, and it changes it to some random IP - no matter what I do

#

i think it's changing it automatically to the ip associated to the box?

idle zodiac
dusty topaz
#

shade it in

idle zodiac
#

?

worldly heathBOT
#

Edit this to change the output of the command!

idle zodiac
#

I'm using IntelliJ

#

how would I go about that

keen compass
#

@dusty topaz should edit the config while it is offline, but not sure why it would be overwriting the config.

#

are you sure you editing the file with correct permissions o.O

dusty topaz
#

yep, editing it with root

full reef
#

Hi, does someone know how to set the speed of a minecart?

keen compass
#

change its velocity

full reef
#

Sure, but this depends on the direction the minecart is facing

full reef
#

Sure, but in what direction the velocity gets applied to?

keen compass
#

which ever direction you want

dusty topaz
#

it's overwriting

#

i tried shutting down bungee, editing through ssh as root with sudo

#

saving, reboot the dedi

keen compass
#

do you have a webpanel or something?

dusty topaz
#

open bungee

#

and it's back to being 172!

#

yes, i have ptero

keen compass
#

that would be why

#

need to edit it, through ptero

frigid ember
#

hey

keen compass
#

personally I don't use webpanels if you have ssh access

#

I use a systemd service to launch my servers 😉

dusty topaz
#

i can't see a setting for it in ptero

keen compass
#

well, it is ptero that is overwriting it

frigid ember
#

i need help

#

Does anybody know a good plugin that will execute /playsound server-side if I use /broadcast or the BungeeCord /alert command? thanks 😁

idle zodiac
#

So I shaded the plugin in

#

but it still doesn't work

#

NoClassDefFoundError

#

@dusty topaz

zealous yoke
#

you set the right scope?

#

basically setting no scope or <scope>compile</scope> is fine

frigid ember
#

how do you get the minecraft console client

marsh nova
#

We still don't know what you mean

naive goblet
#

Giggle yt

#

There exist some good tuts there

frigid ember
#

it controls the server

naive goblet
#

Huh

marsh nova
#

You mean the server console?

#

Are you trying to get the console as a CommandSender?

#

Bukkit.getConsoleSender

frigid ember
#

sure

naive goblet
#

Ah okay get the ConsoleSender and invoke sendMessage

frigid ember
#

how do i get it

marsh nova
#

I just told you

#

Bukkit.getConsoleSender()

idle zodiac
#

@zealous yoke YES

#

sorry

#

es

#

yes

#

i'm still here

#

hi

frigid ember
#

idk how to use it

idle zodiac
#

hi conclure XD

naive goblet
#

Bukkit.getConsoleSender().sendMessage(“message”);

#

Hi occy

#

Troubleshooting again ?😋

idle zodiac
#

yes

zealous yoke
#

and you actually build your project with maven clean package?

idle zodiac
#

um