#help-development

1 messages ยท Page 884 of 1

quaint mantle
#

yeah ik

wet breach
#

Yes, the difficulty I find it with it, is having a decent linter that can pick up when you do something wrong

quaint mantle
#

The syntax is kinda strange

twilit wharf
#

its like a hybrid

worthy yarrow
#

At least I feel semi confident with reading kotlin now haha

twilit wharf
#

it is very loose ig, like you dont need semicolons, but it is still "required"

wet breach
#

Javascript is probably easier to learn if you learn PHP first

worthy yarrow
#

took a gander at a couple projects and actually wasnt that bad

quaint mantle
#

php looks cursed

twilit wharf
#

a lot of people consider it outdated (for web development)

wet breach
#

well Java borrowed quite a bit from PHP

#

hence if you learn PHP its super quick to switch to Java ๐Ÿ˜›

worthy yarrow
#

Or just learn java

wet breach
#

its by far not outdated

twilit wharf
#

I just hear its not worth learning as JS mixed with a powerful framework like Vue, Next, or Svelte will get you miles ahead with 1/10 the effort. I am not sure though as I dont know PHP

worthy yarrow
#

I think it's good to explore other languages but I feel like you should put a solid amount of time into all of them (into actually learning the syntax)

wet breach
#

and my PHP server will still outperform any JS server you have

twilit wharf
#

its not just performance

worthy yarrow
#

I have never touched any other language than java, I only just recently started trying to read kotlin...

wet breach
#

in the web space it certainly is. The advantage of JS though is that you can use your customers systems instead of your own to do things. But Javascript isn't a great language for anything back end

worthy yarrow
#

To be fair I've wanted to start trying to mess around with python

#

its very commonly used in business context eh?

wet breach
#

However JS was originally intended to be used for front end, not back end or the kinds of things it currently does

twilit wharf
#

python is a really weird one

#

it is slow, bulky, easy to learn, but I havent seen many uses of it

#

although now a new compiler came out that makes it incredibly fast

wet breach
twilit wharf
worthy yarrow
#

Oh boy don't we love our algorithms

wet breach
#

no

#

it can be if you are trying to make it do everything

#

but it was never designed to like do everything XD

#

but what I like with python is the ability to combine it with something like Bash though

worthy yarrow
#

frost

twilit wharf
#

I did a prime number calc using python that went up to like 100,000, and it took like 15s on python, like 600ms on c++ (it was an algorithm I found online, probably not the most efficient), the difference was insane, and all that was different was the language

worthy yarrow
#

Can you give me notes on my economy manager class so far?

#

It's not big or anything

wet breach
#

python inherently not making use of native code isn't necessarily bad you just have to take care of that part yourself is all

twilit wharf
#

thats the whole interpreted vs compiled stuff, where C++ is machine code before being ran, whereas python is interepreted into machine code while being ran, right? praying I remember from my CS class

wet breach
#

Even Java is susceptible to this problem, however the developers do a pretty good job though in keeping up with that

worthy yarrow
wet breach
twilit wharf
wet breach
#

native applications like C and C++ do this automatically and the compiler helps as well

#

python can be compiled, but it doesn't necessarily need to be compiled to run

worthy yarrow
#

I'm trying to make this little custom coins plugin or wtv

#

(p2w sorta functionality)

wet breach
#

and then re-design to allow this to be executed in multiple threads

twilit wharf
# worthy yarrow

the readibility of your code could be improved, just the spacing and stuff

worthy yarrow
twilit wharf
#

my brain is a little slow rn and line 3 & 4 caught me off gaurd

wet breach
#

an economy plugin is one of those plugins where the majority of it doesn't need to be locked to a single thread

#

especially when it comes to processing stuff

worthy yarrow
#

Well here's the thing

#

The function of this economy is to be implemented through console commands ie: buycraft functions

wet breach
#

even more so to allow multiple thread processing

worthy yarrow
#

Ok

#

That's good notes

wet breach
#

because you can handle multiple connections in this manner

#

regardless of the order they showed up

worthy yarrow
#

You wouldn't happen to have any examples of this implementation perhaps? I have never messed with threading haha

wet breach
#

and you shouldn't rely on console commands, most everything can be accomplished in the code and not even touch the console

worthy yarrow
wet breach
#

there is decent tutorials out there that teaches how to make use of runnables in various ways including making your own threads

worthy yarrow
#

ok awesome

wet breach
#

from there, once you get the handle on how threads are created, accessed, and removed. Look into learning about workers

#

Worker Queues

worthy yarrow
#

An issue I see arising: getting which threads I need to get from exterior sources such as buycraft

wet breach
#

Worker Queues will teach you how to minimize the amount of threads you are creating to stay closer to what is needed in comparison to the workload

#

so you are not just spawning threads everywhere ๐Ÿ˜›

#

Threads are good, but too many of them is bad XD

worthy yarrow
#

I gotta put this in my notes real quick

#

if you have more

#

by all means

wet breach
#

and then your system worries about processing it

worthy yarrow
#

So do buycraft functions work by sending like a new thread request or something?

wet breach
#

no, buycraft works because it has its own plugin that listens for connections on a specific port

#

and then it sends its communication to said plugin

worthy yarrow
#

Oh right..

#

I just lookup buycraftx api tutorial on yt and get what I need

wet breach
#

the plugin then determines what to do with it, depending on what it got, whether that be to run a custom command or something else

#

You could make your own buycraft site fyi

#

The secret sauch to buycraft is paypals API

#

specifically its callback functions

worthy yarrow
#

Well I don't have any use for making my own buycraft site

#

This was just a project I was wanting to make

wet breach
#

handy when you don't want to pay rates for something that is free ๐Ÿ˜›

worthy yarrow
#

Something to perhaps keep for portfolio building ya know?

wet breach
#

maybe? idk

worthy yarrow
#

Just experience

wet breach
#

what helps with learning is to think about the problems and solutions differently then everyone else

#

for example, everyone assumes you have to do everything in the server when this is in fact not true

#

you could just spawn another java process entirely

#

this java process is now separate from whatever is going on in the server ๐Ÿ™‚

#

almost like a thread, but has more advantages to it lol

#

also, Java allows you to hook into other languages too, and the command line

#

handy when you just need something like a simple bash script to execute XD

#

or python if that is what you fancy

worthy yarrow
#

Yeah of course the code isn't just limited to the bounds of the server, like I said I have just never gone beyond the main thread so to be fair I was not thinking about any process like that

#

Thank you by the way for all the notes I enjoyed that talk a lot!

wet breach
#

lol

#

you are one of the few that does

zinc sundial
#

HEy,

I need help with getting user ip, now

String playerAddress = event.getAddress().toString(); this return me the player address, so far everything good.

But the issue is that in Minecraft server it give me ipv4 but on the website it give me ipv6...

Now i need to get the user ipv6 from the Minecraft is that possible ?

sullen marlin
#

If you want ipv6 you need a AAAA record and an IPv6 address on your server

zinc sundial
#

Oh so if the server is on ipv4 it won't give ipv6

sullen marlin
#

Correct, that's how the internet works

#

What are you trying to do

#

?xy

undone axleBOT
lament maple
#

Hey im new to coding spigot plugins, does someone know why i get a null pointer execption error in the console?

Lobby (Main Class)
public static Location spawnLocation = new Location(Bukkit.getWorld("Lobby"), 18.491824023704698, 19.0, 49.47120706849732, 179, 1);

Other Class
player.teleport(Lobby.spawnLocation);

sullen marlin
#

You shouldn't be using a static variable, it's initialised at the wrong time

#

Also make sure that's actually your world name

zinc sundial
sullen marlin
#

Set it in onEnable and show the error if it's still an issue

lament maple
upper hazel
#

here are 2 swords with a sharpness enchantment and a fire spell

#

does sharpness 11 really increase damage by 4 units?

dry hazel
#

please learn java basics before attempting plugins

upper hazel
#

what to do if the attributes of an item reset the base damage of the item when they appear

dapper flower
#

I have 3 listeners that operate on a single file, and sometimes what happens is that they do the operation at the same time and it corrupts the file, how do i fix this?

shadow night
#

by not operating on the same file at the same time

dapper flower
shadow night
dry hazel
#

or simply have a lock somewhere and acquire it when you're about to write

shadow night
#

it sounds like a pretty common problem, so you could probably find this out yourself by googling

dapper flower
#

i did, but i can't wrap my head around how locks work

hazy parrot
#

Start operation -> lock -> another thread try to edit file, would not be able because it's locked -> operation finish from first thread -> release lock

shadow night
#

I wonder if you could use CompletableFutures for that

dry hazel
#

wat

shadow night
#

I've been obsessed with them for a while

dry hazel
dapper flower
#

i put a synchronized(this) {} on the major functions but it still somehow happens

dry hazel
#

because you need to synchronize on the same object

#

this synchronizes on the current class instance, if you're doing it in two different classes and/or instances, it won't work

dapper flower
#

aw shit

shadow night
#

what was that nerd emoji for

dry hazel
#

emily hates me

shadow night
#

why

dapper flower
#

also i remember syncronized functions to be a thing

dry hazel
#

you have to have an object somewhere that you pass to both synchronized blocks, i.e. you put a new Object() into a field in the first listener and get it in the second listener as well

#

synchronized methods are basically just wrapping the contents of the method in a synchronized block and synchronizing on either the instance or the class type, depending on whether it's static or not

dapper flower
#

any object will do?

dry hazel
#

yea but you probably don't want to synchronize on random stuff

dapper flower
#

This is how my listeners and file looks like, all 3 of them use the furnacesFile, can't i lock into that instance?

 override fun onEnable() {
        furnacesFile = CSV(dataFolder, "furnaces.csv")
        if(!dataFolder.exists()) dataFolder.mkdirs()
        if(!furnacesFile.exists()) furnacesFile.createNewFile()

        filePermission(furnacesFile)

        server.pluginManager.registerEvents(PlayerOpensLavaFurnace(furnacesFile), this)
        server.pluginManager.registerEvents(LFurnaceBreakPlace(furnacesFile), this)
        server.pluginManager.registerEvents(CookingHandler(furnacesFile), this)
        addRecipe()
    }```
#

instead of creating a dummy object to lock on

dry hazel
#

yeah probably

dapper flower
#

that wasnt a fix rip

quaint mantle
#

hello, is there a template available for a website leaderboard for minecraft? i can't code so i'm hoping there's a template out there that i just missed

upper hazel
#

is it possible to create a plugin for fake online with bots
or does this require a bunch of clients?

#

or just tab

gleaming grove
#

Is It possible to make an entity visible only to selected players without using NMS???

shadow night
#

for players (if you wanna hide/show them) there is also hidePlayer and showPlayer

gleaming grove
#

Thx, I was looking for such method in the Entity Class, that why I can't find it

drowsy onyx
#

Hey all, is it okay to post a question related to the minecraft protocol?

tender shard
#

yes

shadow night
#

sometimes people ask here even for help with other programming languages, so ofc it's okay

ashen quest
#

are there any testing frameworks for spigot plugins?

#

like JUnit

dry hazel
#

junit lol

#
  • mockbukkit
ashen quest
#

mockbukkit is what i was looking for

drowsy onyx
#

Ok then here it is:
Hey all,

I am writing a 1.8.9 minecraft server from scratch in typescript. This server is for now very basic, it handles incoming packets from clients and replies to them.

Right now, when the server receives a login start packet, it directly replies with a Login Success packet containing a generated UUID and the player username. The buffer has the following format, taken from: https://wiki.vg/index.php?title=Protocol&oldid=7368#Login_Success

const uuid = uuid() // 875814ef-fd10-45fb-b244-aed0ba663094

[  16,                    x, ..., x, 
// โ”” UUID len (VarInt)    โ”” UUID     
    7,                        y, ..., y ]
//  โ”” Username len (VarInt)   โ”” Username

Unfortunately, the client keeps throwing a "DecoderException: The received encoded string buffer length is longer than maximum allowed (45 > 36).

I tried setting the uuid to something simple, like "1234123412341234" or "1234-1234-1234-1234" but this throws a DecoderException: readerIndex(27) + lenght(1) exceeds writerIndex(27)

Any help is appreciated ๐Ÿ™

quiet ice
drowsy onyx
shadow night
quiet ice
#

Well according to the documentation I'm wrong, but idk

shadow night
#

But yeah, the UUID is split into two longs/64 bit integers and that's how you usually transfer it

chrome beacon
#

Yeah uuids are two longs

quiet ice
drowsy onyx
#

ok but on v1.8.9 in the docs it says the UUID is a String, and in this particular case it is "separated by hyphens"...

#

just tried setting the uuid to a buffer of size 16 (equivalent to 2 64bits) and client throws DecoderException: readerIndex(26) + lenght(1) exceeds writerIndex(26)

quiet ice
#

Alternatively you could ask over at #mcdevs@irc.libera.chat they are more likely to know the answer

drowsy onyx
#

is that an actual email address or a discord channel ๐Ÿ˜„ ?

quiet ice
#

Though do be patient there are pretty much only three people that could answer

quiet ice
#

The discord before discord

#

Do be weary though: it can leak your ip address if you are paranoid about that

drowsy onyx
#

How do I communicate with an IRC channel lol? Not familiar at all with this

quiet ice
sharp heart
#

Hello, is it possible to auto update a plugin with request to spigotmc.org ?

late sonnet
vapid otter
#

Hello. Why I can't cast class that extends Monster to Zombie?

late sonnet
vapid otter
#

Yes, I am setting EntityClass.ZOMBIE

#

But if my custom mosnter class extends Monster it cannot be cast to Zombie

late sonnet
vapid otter
#

Yes, ClassCastException

late sonnet
#

and anyy more details?
i dont work with custom entities then not sure if maybe the issue is how you are creating that entityy... (and in what version)

vapid otter
#

and when I trying to extends my custom mob class then spawn it

#

i'm getting error

#

So when JediMob extends Zombie class its working

#

but I need custom class with any type

late sonnet
#

well in NMS the zombie extends from EntityMonster...

but also you are running Purpur not sure if they make changes in that

vapid otter
#

Yes, EntityZombie extends EntityMonster

#

But cast is not working

#

I was trying to extend classes: Monster, Mob, PathfinderMob

late sonnet
#

i mean the only way you can cast to EntityZombie is if the class custom using is extend from EntityZombie.. the

vapid otter
#

Yes, that's problem

late sonnet
#

but PathfinderMob like in your code is another custom class?

vapid otter
#

No

#

This is NMS class

#

Is it possible to make custom mob class with changeable type?

late sonnet
#

nope

icy beacon
#

Is it fine to use a dotenv file in production to store data like database creds?

late sonnet
late sonnet
icy beacon
#

?

late sonnet
#

i mean you talk about a .env?

icy beacon
#

Yeah. I'm going to be deploying a REST API which needs to connect to a database etc, and I'm thinking of the best way to provide data like database creds. My first instinct was a .env file

late sonnet
quaint mantle
#

Hey, Im making an RPG, and I was just loking for opinions. I was wondering which data provider I should use, MongoDB or MySQL. I know both to a degree, well enough to use either really, and was just wondering which would be faster, or better performing in my case. Any advice/opinions are helpful! Thanks

minor junco
slate crown
#

hey guys! I need to make sure that when writing /signe - a sign with the text "HellO!" opens, can this be done via NMS/ProtocolLib or? I did it with the opening of the tablet, but the problem is that I still can't make the text

agile hollow
#

with location i have to store for get the position of the player in the middle of the block he's standing? i tried with xyz and pitch and yaw but it's moving me in the middle of the 4 blocks

agile hollow
#

if i want to store like some arrays info how can i do? (maybe it's better with an sql)

icy monolith
#

Does anyone know how to reload a config?
I tried using: plugin.reloadConfig();
But when i change config and then reloading it, but it dosnt seem to update it

icy monolith
fathom jay
#

Is there a way to use custom fonts in item lore just like in messages? (Where in messages you use BaseComponent[])

fathom jay
#

like in the example

echo basalt
#

Paper and NMS has it, spigot does not

#

(iirc)

fathom jay
#

hmm interesting

fathom jay
zealous osprey
fathom jay
#

should I try making it on Paper? (still learning Spigot + Java)

fathom jay
river oracle
#

Personally I'd just dip into nms for a bit I'd hopefully expect components to be merged by 1.21

zealous osprey
#

nah, I'm not "in the market" for that

river oracle
#

NMS isn't very hard to maintain with mojmaps

fathom jay
#

idk much abt NMS ill read the spigot wiki about it

river oracle
#

I can help you If you want

#

But you'll have to give me like 30 minutes to get out of bed and get up

fathom jay
#

no no, no need to worry ty for the availability tho

river oracle
#

Good place to start to get mojmaps is below

#

?nms

fathom jay
#

but can I send you DMs in case i have some small questions?

river oracle
fathom jay
#

ok ok

river oracle
#

I also reccomend a multi module approach if you don't know how to do that I can help

storm jungle
#

what is the correct method for 1.20.4 minecraft version to correctly retrieve GUI name. Coding a plugin and i need to retrieve the correct name of a GUI so onInventoryClick can work correctly

river oracle
#

Daily reminder there is an InventoryView#setTitle method your titles aren't safe and never will be

slender elbow
#

mfw players rename a chest in the anvil to "Vulcan AntiCheat"

quaint mantle
#

this guy like disabled all checks for himself and started going wild on the server

chrome beacon
#

Yeah that's exactly why you don't use name checks for inventories

shadow night
#

why did mojang not add inventory uuids yet

river oracle
#

you don't need to

#

its inherently unneeded

#

also they would never add UUIDs to inventories regardless its like if I just added a UUID to my arraylist to identify it, that's stupid design

#

if anything had UUIDs its InventoryViews and actually they already do have a UUID technically that being the players who has it open

tender shard
#

because if so you're still using the old config

icy monolith
#

Nop its taking the new one

tender shard
#

then what exactly is the issue

icy beacon
#

i was setting up a vps i've just bought and i was trying to make a new user, which i did, i gave the user sudo permissions and ssh'd into the server with the credentials of the user. i then edited sshd_config to do PermitRootLogin no and ran /etc/init.d/ssh restart - my terminal froze, so i attempted to reconnect and timed out. i restarted the server and now i'm receiving Connection failed: connection refused. No more addresses to try. by termius. firewall (ufw) is open on ssh (ufw open ssh) and i have not changed the port. any idea how this could be resolved and why this could have happened? i dont really wanna redo the whole setup again

wet breach
#

do they permit loading a rescue OS?

icy beacon
#

i don't think so, but i can login via RDP apparently, but I have no idea what that is and whether it will work since i've changed the root pwd

wet breach
#

RDP = remote desktop protocol

#

you can use VNC

tender shard
#

check if SSH is running with netstat -tulpen

wet breach
#

can't do that if they can't connect

icy beacon
tender shard
#

did you not say that you have RDP or VNC or whatever

gleaming grove
#

I want to find Entity by ID Problem is that Bukkit.getServer().getEntity(uuid) takes UUID as input parameter but, Entity#getId() returns int. So how can I get UUID of an entity?

wet breach
icy beacon
wet breach
#

and didn't know what that was

wet breach
icy beacon
#

doing that rn

gleaming grove
wet breach
#

should give you a console ๐Ÿ™‚

shadow night
icy beacon
wet breach
#

can you force a reboot on the VPS?

icy beacon
#

i did already

#

i mean i can try again

river oracle
#

who is your provider ZBL?

wet breach
#

seems you didn't setup the firewall the way you thought

icy beacon
river oracle
#

ik with hetzner you can VNC that shit no matter what you do through their website

icy beacon
#

if this won't work out im gonna have to redo the entire thing

#

thankfully i didn't do much yet

wet breach
#

there is not much you can do without the ability of loading a rescue OS

icy beacon
wet breach
#

one of the things why I like OVH

icy beacon
#

one sec

tender shard
#

which kind of weird hoster are you using that they don't give you a proper remote console nor a rescue os

shadow night
wet breach
# icy beacon one sec

if they allow it, you need to mount some directories so you don't screw up permissions etc

icy beacon
# shadow night what is it called

have you perhaps heart of hosting-minecraft
they provide terrible fucking customer support but overall the hosting is high quality

wet breach
#

and then all you need to do is have ufw not run automatically

shadow night
icy beacon
#

it's quite popular

icy beacon
#

i've used it multiple times before specifically for a minecraft hosting

#

but now that i need a vps i headed to them again

#

ok they have some sort of rescue thing

#

trying to figure it out

shadow night
#

hmm, well it doesn't seem awful

#

just the average hosting provider

tender shard
#

so can you boot into a rescue system like grml or sth, or not?

wet breach
#

seems aweful to me

wet breach
icy beacon
#

they have some sort of rescue system

#

but i have no idea what it implies

#

one sec

wet breach
#

as long as they can just boot to a live OS it doesn't really matter which

tender shard
tender shard
wet breach
#

that is dumb

#

only need to prevent it from running on start

#

so they can just use the normal system to log in

icy beacon
#

it is taking unhealthily long to reboot

tender shard
#

logging in without ssh is gonna be a bit complicated

wet breach
#

oh read it wrong

#

anyways, they should have ssh if they have rescue OS

#

but, its not the SSH failing though

#

the firewall is blocking their connections

icy beacon
#

two options:

  1. "boot from drive" choose this option to boot your server from the drive next time it reboots
  2. "boot in rescue mode (rescue iso)" choose this option to boot from a rescue iso mode next time it reboots
    i chose the second option and started the reboot now, and it's taking way too long to reboot idek why
#

it's been like 2 minutes

#

nvm it's rebooted

wet breach
#

it takes a bit of time to fetch the ISO

icy beacon
#

now how would i log into the terminal without ssh access

wet breach
#

you should technically have ssh, so try ssh and using your default login

#

if that doesn't work, use RDP

icy beacon
#

rdp times out, ssh fails with the same error "Connection failed: connection refused. No more addresses to try."

wet breach
#

then its probably not you

#

its most likely the host system or the ip address

#

ip address in that the network related things have suspended taking connections

quaint mantle
#

Why RDP for server?

icy beacon
#

wait they have a "vnc access" button which opens a very pixelated terminal in my browser

river oracle
#

you probably need to reset your server I'd highly suggest switching to a better european hosting provider like Hetzner or OVH

wet breach
icy beacon
wet breach
tender shard
icy beacon
wet breach
#

hmm, stuck on some weird screen

icy beacon
#

i'll reboot it once more

wet breach
#

guess they didn't bother testing their rescue ISO

#

to see if it actually does any rescuing

icy beacon
#

or i did something wrong

#

the hosting has a rather large userbase so i'd assume such large bugs would have been patched by now

tender shard
#

maybe you just banned yourself with fail2ban

icy beacon
#

that is a very real opportunity

#

i do not remember the try limit i've set but i must've exceeded it by now

#

it used to timeout but after a while it started to give me the "Connection failed: connection refused. No more addresses to try."

#

i've vnced into it again and now it seems to be booting up or smth?

#

ohi can run commands it just requires a password

#

1 sec

icy beacon
#

yeahh

wet breach
#

russian anything hasn't been decent since the late 90's

icy beacon
#

lmao

#

sadly i have to agree

#

this thingy does not respond to my keystrokes whatsoever

quaint mantle
#

Bros dont know linux security future

#

Its purposely dont show chars when auth

tender shard
#

i dont know any distro that hides the username

dry hazel
#

^^

icy beacon
#

i am not that stupid

tender shard
quaint mantle
#

My bad

icy beacon
#

yayyyy

#

ok i should probably disable fail2ban and ufw

wet breach
#

yes

torn shuttle
#

ayo 9minecraft took their shitty page down

icy beacon
#

"package fail2ban is not installed so not removed"

#

i smell cap

torn shuttle
#

gg no re

icy beacon
wet breach
#

you didn't mount all the directories, don't try uninstalling it

#

just disable it from the services

icy beacon
#

how do i do that

#

oh

#

kk

#

it is telling me that the service is not loaded

wet breach
#

are you sure you are not looking at the services for the rescue OS?

icy beacon
#

i was thinking about that yes

#

what should i even do lol i've never booted into a rescue os before

wet breach
#

because typically to do anything with the OS that is installed you need to mount the partition

#

typically its either SDA or SDB that needs to be mounted

#

you will have to use the partition tool to figure that out

icy beacon
#

is it just mount /dev/sda?

wet breach
#

well if its a normal linux install, typically sda contains your boot partition related stuff

#

and sdb contains everything else

icy beacon
#

i mean the command

#

is it just that

tender shard
#

mount /path/to/disk /path/to/mount

wet breach
#

^

icy beacon
#

uhhhhhhhhh

tender shard
#
mkdir -p /mnt/whatever
mount /dev/mydisk /mnt/whatever
#

and not just sda but the partition

#

did you just use a normal ext4 partition or did you use LVM or anything?

icy beacon
#

i have no clue i was just provided with a fresh ubuntu installation

wet breach
#

odds are they used LVM

#

if they didn't touch anything during install

tender shard
#

enter vgscan

#

does it show anything

icy beacon
#

mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error when running

mkdir -p /mnt/attsda
mmount /dev/sda /mnt/attsda
icy beacon
#

not found but can be installed with apt install lvm2

#

do i install and run again

tender shard
#

if they rescue system does not have vgscan, then they probably didnt setup lvm

wet breach
#

depends on the iso provided

tender shard
#

just do lsblk -f

wet breach
#

could be the iso just doesn't have lvm as it isn't technically necessary

tender shard
icy beacon
tender shard
#

mount /dev/sda1 /mnt/myfolder

icy beacon
#

oh i also tried with sda1 and it gave me superblock has unknown read-only compatible features (0x8) enabled

icy beacon
#

i feel like in the time we've been troubleshooting this i could've redone the setup twice lmao

#

but i'm too invested into this now

kind hatch
# icy beacon

I find it weird that the FSAVAIL says 0 on everything.

tender shard
#

which OS is that rescue system?

#

does it even support XFS? do you have xfs_repair available?

icy beacon
#

is not installed

icy beacon
tender shard
#

if it's debian or similar, install xfsprogs

icy beacon
#

ubuntu 20.04

#

temporary failure resolving 'archive.ubuntu.com' there's no way it has no access to the internet please

#

nvm

#

it's doing something

#

should i just reinstall the system

#

yeah imma

wet breach
#

weird they gave you an outdated live OS disk

icy beacon
#

this whole experience is weird lol

wet breach
#

the issue is that the the FS makes use of an updated kernel that the live OS does not have and isn't compatible with

icy beacon
#

probably a ufw misconfiguration after all, but i don't see how that could've happened, because after configuring ufw i was still able to connect

wet breach
#

well ufw doesn't terminate existing connections

#

but what most likely happened is your fail2ban clobbered you

icy beacon
#

i think it was a combination of fail2ban and ufw

#

i was getting timeouted for some time

#

and then i started getting errors immediately

wet breach
#

well when you set permitrootlogin to false, and if you didn't update the fail2ban settings

#

it auto bans anyone that attempts to log in with root

icy beacon
#

well that 'd be good to know 1 hour ago

#

xD

wet breach
#

well its common knowledge to whitelist one's self before implementing auto banning stuff

tender shard
#

XP having better support for network drives than windows 11

icy beacon
wet breach
icy beacon
#

i had another sudoed user

#

and then i just tried root as a last resort

wet breach
#

and then blam

#

banned

icy beacon
#

so i had 2 problems not 1

#

xD

tender shard
#

why even bother with fail2ban, just diasble password auth and done

icy beacon
#

i wanted to do passkey auth but it was too hard for my smol bren to comprehend

river oracle
tender shard
#

it's not like those SSH bots would be very dangerous anyway...

#

unless you use "admin" as user and "admin" as password, they won't get very far lol

icy beacon
#

lmao

kind hatch
wet breach
hasty oyster
#

I'm trying to delete all signs that "pop off" when their attached block is removed, what event do I need to listen to? :)

worthy yarrow
#

Block break event id assume

hasty oyster
#

Called when a block is broken by a player. problem is I set it using code, so it's probably not the player's doing

worthy yarrow
#

What do you mean by attached block

hasty oyster
#

Sign is on stone, stone gets set to air, sign breaks

#

BlockDropItemEvent is also attached to a player

#

BlockPhysicsEvent maybe?

worthy yarrow
#

Mmmm itโ€™s awesome youโ€™re a docs readerโค๏ธ if you read through it long enough youโ€™ll find your answer, I have no clue of spigots methods that detect block events outside of player interaction

#

Iโ€™m sure if your patient enough as well, someone who actually knows spigot can get you that answer

#

Not that I donโ€™t know it haha, Iโ€™m just self taught in java through 4 years on and off Minecraft framework so there are a couple ideas I have but nothing that doesnโ€™t involve the requirement of player interaction, sorry!

hasty oyster
#

Thanks!

#

Works great :)

wet breach
worthy yarrow
#

I should just become a professional documentation researcher and put a solid 2k hours into spigot maybe then Iโ€™ll be useful D:

eternal jasper
#

hi who can help me pls

dry hazel
#

ask your question

kind hatch
#

?ask

undone axleBOT
#

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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

hasty oyster
wet breach
#

o.O

eternal jasper
#

i need help to start my spigot server pls

wet breach
#

you didn't mention anything about player interactions

hasty oyster
#

Tbh, I didn't realise they were linked

kind hatch
worthy yarrow
hasty oyster
wet breach
#

yeah don't cancel the item spawn event?

#

you can just remove the entity without cancelling the event

hasty oyster
#

Oh I know why

#

I'm an idiot

#

Ignore me

wet breach
#

lol ok

hasty oyster
#

Thanks!

worthy yarrow
#

Happens to all of us man

spare mason
#

Is It possible to create a line between two locations?

tender shard
#

you could use particles, or this funny elder guardian beam

spare mason
#

Spigot support Elder guardiรกn Beam?

tender shard
spare mason
#

Guardiรกn beams are heavy for performance?

tender shard
#

I dont know

#

The only alternative i know are normal particles

kind hatch
#

Just stretch some display entities over a really long distance. :kek:

tender shard
#

Oh yeah thatd ofc also work

spare mason
#

What is a display entity?

river oracle
#

New in 1.19.4+

agile hollow
#

if i stop the server the array list will be cleared right?

tardy delta
#

yes

agile hollow
#

and how can i store it in a like sql?

spare mason
river oracle
#

You can make it smol you can make it big you can even make it bigger

spare mason
#

Its time for a display entity with a stick

#

Entity interaction range is suported?

kind hatch
#

That's in the snapshots right now.

worthy yarrow
#

I was thinking about a magical items kinda plugin... something with like lucky trinkets that provide certain benefits, demonic wishing eyes, etc stuff for a magical sort of time period... got any suggestions for any more magical sort of items I could include in this?

worthy yarrow
#

I was wanting to keep away from weapons so keep that in mind as well

worthy yarrow
# shadow night Armor

I was thinking about armor but wasnt really sure where to go with it... how do I make armor magical??

shadow night
#

Maybe some kinda cultist armor or sum to buff damage from certain weapons

#

You could also make something similar to draconic evolution armor where you don't take damage until you have taken enough hits

worthy yarrow
#

Hmm maybe like classes of armor perhaps? (full set bonus system kinda thing?)

zinc harness
#

Hey @worthy yarrow can you help me ? I write a message in help-server

worthy yarrow
#

Hmm I like it, just seems like too appealing the pvp side of things, I was wanting to incorporate a lot of magical items that might benefit a player in an instance of not having forms of travel, or perhaps portable storages, etc... stuff thats like quality of life sorta thing

shadow night
#

Maybe you could also add a few bosses

#

To make armour more useful

worthy yarrow
#

What if I made an armor + bosses system that incorporates special "boss" sets that may provide real world pvp benefits or perhaps sets that help with certain bosses stuff like that? I think that would be pretty cool for armor / bosses

shadow night
#

yee

#

sounds like terraria

worthy yarrow
#

Maybe like "boss runes" applicable to pieces of gear that will apply special bonuses

shadow night
worthy yarrow
spare mason
#

Sounds like a good idea

worthy yarrow
shadow night
#

ye ig

worthy yarrow
shadow night
#

maybe some magic/enchantable food

worthy yarrow
#

I was thinking of a food system where it's like "bigger portions" when you eat lets say a 3 roll sushi platter... it splits into like 2 fish after eating the inital "portion"

#

Sort of like a portable cake kinda thing I guess you could say

shadow night
#

hm

worthy yarrow
#

Also this system would include custom recipes or whatever for these food items

fallow gyro
#

Hi. Just wondering, for the following code, would I need to run this asynchronously, or is all the networking handled on the client end?

Thanks!

chrome beacon
fallow gyro
chrome beacon
#

Yes

wet breach
fallow gyro
wet breach
#

well, not sure if it works now or not since updates. But typically when it comes to items or anything to do with the world you just don't do some things async or in another thread lol

#

server tends to not get happy with that

wise mesa
#

is there an event for when someone saves a structure with a structure block

fallow gyro
worthy yarrow
viral hazel
#
 
EventtHandler
    public void onTrashInventoryClick(InventoryClickEvent event) {
        Player player = (Player) event.getWhoClicked();
        Inventory clickedInventory = event.getClickedInventory();
        ItemStack clickedItem = event.getCurrentItem();

        if (clickedInventory != null && clickedInventory.getName().equals("Trash") && clickedItem != null) {
            if (clickedItem.getType() == Material.GRAY_STAINED_GLASS_PANE) {
                event.setCancelled(true); // Prevent the player from picking up Glass Pane from the trash
            }
            // You can add additional conditions for other item types you want to consider
        }
    }``` 

why getName(). are wrong?
fallow gyro
worthy yarrow
worthy yarrow
#

I'm not sure how you'd "supposed" to manage itemstacks in that way

fallow gyro
worthy yarrow
#

Just have them trying their absolute best to break any and everything haha

fallow gyro
#

I'm sure they will lol

wet breach
#

makes sense now

fallow gyro
worthy yarrow
#

haha good thing frost is around

#

They are thread expert ๐Ÿ˜›

fallow gyro
#

Well I'm glad I got talking to the correct people lol

worthy yarrow
#

I try to help where I can... though its usually just proposals of how to implement logic since I am not the most experienced with spigot, also I hate reading through docs so

fallow gyro
worthy yarrow
#

That's certainly the way I like to think of it

fierce gale
#

Does anyone have experience with Paypal IPN and SpigotMC?

tender shard
viral hazel
#

thanks for help

#

but i fix the rror

dire saffron
river oracle
dire saffron
#

this is what they said

remote swallow
#

do you use bungeecord

river oracle
#

I don't remember spigot fixing anything along these lines while I always reccomend updating it usually isn't for these reasons. This seems to be a BungeeCord vulnrability. Might be beneficial to create an issue on the BungeeCord issue tracker on github mentioning users are able to bypass bungee authentication. Granted without this client code it might be difficult to actually fix

remote swallow
#

iirc thats not a bungee issue

river oracle
#

it was idk how many years ago

shadow night
#

how would you even spoof the uuid

river oracle
#

idk if it was ever fixed

eternal oxide
#

If they are running Bungee online

shadow night
#

this is kinda confusing me

remote swallow
river oracle
#

You used to beable to get around bungeecord and spoof your UUID since BungeeCord requires backend servers to be "online-mode: false" You can take any user you want

#

idk if this is still true

remote swallow
#

yeah it is

echo basalt
#

velocity be like

shadow night
#

aren't there like bungeeproxy things or something like that

remote swallow
#

spigot does say to secure your backend but people dont listen

eternal oxide
#

not using localhost though

#

I'd guess their bungee is set to offline with some other authentication

atomic swift
#

what is ther best way to load a yml file in bungee/velocity

echo basalt
#

bungee has a config system for that

atomic swift
#

and what about velocity

echo basalt
#

no clue

#

worst case scenario use snakeyml

dire saffron
eternal oxide
echo basalt
#

seems like they have snakeyaml

dire saffron
eternal oxide
#

odd indeed then

remote swallow
#

close the backend ports and use bungeecord

eternal oxide
#

be sure your servers are really running on localhost

dire saffron
shadow night
eternal oxide
#

there is no path between localhost and any external port

remote swallow
#

setup bungeeguard

shadow night
remote swallow
#

yup

shadow night
#

btw, tf is a notchian client

dire saffron
#

bungee guard will fix all this?

remote swallow
#

bungeeguard will required a token that is only provided by bungeecord

tender shard
wet breach
shadow night
wet breach
#

you obviously do if someone uuid spoofed

#

can only uuid spoofed in offline mode

#

only way they could circumvent the online mode is by not connecting through the proxy

#

IE directly connecting to the MC servers

dire saffron
#

they can brute force the bungee messge when joining direct

remote swallow
#

check that the ports are definately shut for backend servers, and i would advise setting bungeeguard up

wet breach
#

idk what you are talking about with brute forcing

#

I explained to you what it is going on whether you agree with it or not

shadow night
dire saffron
spare crypt
#

I had a buddy that got spoofed. The MC servers showed that the connection was coming from 127.0.0.1, suggesting the hacker successfully spoofed to authenticate through Bungee itself.

dire saffron
#

they can get passed this messge

#

with there client

#

then uuid spoof you

wet breach
slender elbow
#

mfw firewall rules exist

tender shard
spare crypt
shadow night
tender shard
#

Oh

river oracle
wet breach
river oracle
#

otherwise it smells of poor configuration

wet breach
#

sorry but magical code is not a thing

shadow night
river oracle
eternal oxide
#

Yep, only time I've ever seen someone get past Bungee was a mis configured setup. didn;t follow the "secure your system" after installing Bungee.

spare crypt
#

I don't know how they managed. That's the thing. All I'm saying is I've seen it before. Just not sure how to reproduce it in order direct anyone on what might need to be done to address it

wet breach
river oracle
#

ahh fair

#

I moreso mean if bungee has some bug that allows you to get past online config somehow that is something that should be addressed in depthg

shadow night
wet breach
#

but bungee doesn't make changes to the protocol

#

how do you mess something up that you are not changing?

shadow night
wet breach
#

and if bungee was messing up with online mode, sessions would mess up every so often

#

or something with the authenticating would mess up

slender elbow
#

the proxy takes care of authentication during the login process just as if it was the server, that process is completely transparent to the client, once that is done it'll forward some info to the server

#

the login process between the client and the proxy does not change

wet breach
#

Emily is correct, so I can't see how bungee would have some flaw that would allow someone to magically bypass

#

two, if such a thing exists, why is it that more people are not saying something or reporting this o.O

eternal oxide
#

I don;t see Bungee allowing a Client to Force it to take a certain UUID. Impossible

slender elbow
#

you can skip the login process by skipping the proxy (you'd need a modded client so it'll forward the spoofed info to the server, as if it was the proxy doing it)

slender elbow
#

or that, yeah

eternal oxide
#

You can;t skip the proxy though, IF they truly are on LocalHost

slender elbow
#

I mean if your firewall is improperly set up...

eternal oxide
#

Localhost has no bindingsa at all the any public address

river oracle
wet breach
slender elbow
#

ah

eternal oxide
spare mason
#

there's a way to modify the time that the particles exist?

eternal oxide
#

no

icy beacon
#

i have finally reset the server, the configuration panel at this hosting is so buggy i couldn't switch off the rescue mode for hours lmao

#

will try to setup it with more care tmr

wet breach
#

should just switch providers lmao

tender shard
#

Spigot uses Log4j to log console output, hence making it easy to listen to incoming console messages, or to block certain console messages from appearing. Prequisities You need to have Log4J on your classpath. We simply add the dependency to our pom.xml using the provided scope, as Spigot already contains those classes on runtime: Create...

subtle folio
#

when the server shuts down / in the onDisable event, is it possible to set a lot of blocks back to air or is it too late and would I need to instead set them back to air on startup?

chrome beacon
#

You could probably do it in onDisable

subtle folio
#

sweet

chrome beacon
#

but why do you need to remove a lot of blocks when the server shutdown?

wet breach
#

plugins can't disable logging

subtle folio
#

if the server restarts, i don't feel like storing and persisting what blocks were placed and what the countdown was paused at

wet breach
#

console output is not the same as logging

#

two different systems

worthy yarrow
#

Hi frost any ideas for magical items? Something along the lines : quality of life, ie: maybe portable storage, forms of transport, etc?

remote swallow
#

no way cmarco doesnt have bible plugin on his mc server

worthy yarrow
#

What makes these mailboxes magical? ๐Ÿ˜›

wet breach
#

I do have an idea to create a mail delivery thing, where an entity brings you your packages or mail

worthy yarrow
#

Oi have you seen Robbin hood : men in tights?

#

Fox mail system perhaps

slender elbow
#

cmarco gonna make a plugin about student loans and paying rent

worthy yarrow
dry hazel
#

๐Ÿ˜Ž

sick hinge
#

I'm making inventory menus and I have a problem:
I have a custom kotlin DSL for my inventories, which creates an instance of my InventoryMenu class, which is then stored on the player (via a custom Data object I have). The problem is that every time an InventoryCloseEvent is fired, I set that the player's current inventory menu to null (because in my code handling inventory menus, InventoryClickEvents are cancelled when there's an active inventory menu, but I want players to be able to use their inventory when there's no inventory menu active). the thing is, in the DSL, I'll have an action to open a menu when another menu is already active (this is used for a submenu), which triggers InventoryCloseEvent, which sets the player's inventory menu to null, causing the inventory menu to not work. Is there a way I can supress the firing of InventoryCloseEvent when I open a menu?

edit: fixed by adding a kludge where it records if a submenu is open

eternal oxide
#

no

plain sequoia
#
TeamColor teamColor = TeamColor.values()[i % TeamColor.values().length];
Team team = scoreboard.registerNewTeam(teamColor.name().toLowerCase());
team.setAllowFriendlyFire(false);
team.setColor(teamColor.getChatColor());
team.setPrefix(teamColor.getChatColor().toString());

Hi this is the way I register new teams. TeamColor is just an enum with a chatcolor in it.

smallestTeam.addEntry(player.getUniqueId().toString());
#

And this how I add a player

#

But in-game the playername doesn't have a color

#

Not in the playerlist

#

not in chat

#

and not on his nametag

eternal oxide
#

you add players by name. Entities by Stringified UUID

plain sequoia
#

why?

eternal oxide
#

Because thats how Teams works

plain sequoia
#

where can I find that info?

eternal oxide
#

It probably isn;t documented. You just find it when you try to use Teams

plain sequoia
#

that's bs

tender shard
#

org.bukkit.craftbukkit.scoreboard.CraftTeam

slender elbow
young knoll
#

Yeah scoreboards are weird

#

Blame Mojang tbh

sand spire
#

Is there a way to give an inventory/GUI some sort of UID so I don't need to use .getView().getTitle() to identify the GUI, and so renaming a chest won't work

young knoll
#

Use the inventory instance

sand spire
sand spire
river oracle
#

the entire thing is the solution to your problem :P

sand spire
#

But it didn't have a method to give an UID to the inventory, so somehow it does that another way i guess

remote swallow
#

it just identifies it by the view or inventory iirc

sand spire
remote swallow
#

because the inventory name doesnt matter

sand spire
#

huh

orchid gazelle
#
        TextDisplay display = player.getWorld().spawn(location, TextDisplay.class, pre -> {


        });

        display.setCustomName("\\uFFFD");
        display.setCustomNameVisible(true);```
any ideas on why this does not work?
#

oh wait

#

I forgot to load my resourcepack lol

tender shard
#

why are you using the consumer if you don't use it lol

slender elbow
#

why not use setText ๐Ÿค”

young knoll
#

That is the correct way

slender elbow
#

how text displays are meant to be used

orchid gazelle
young knoll
#

I donโ€™t think the custom name ever shows

orchid gazelle
#

good point, imma retry

#

it still does not work lol

#

/: still nothing

tender shard
#

shoudnt you use only one backslash?

#

otherwise you set it to literal \uFFFD

#

but don't you want to use the char with that id?

orchid gazelle
#

yes I do

#

there is 0 resources on how to work with resourcepacks /: had to use chatgpt

#

still not working

tender shard
#

use one backslash only

orchid gazelle
#

well it is getting displayed, but not with the custom font

river oracle
orchid gazelle
#

what?

river oracle
#

either A. Use Paper or B. dip into NMS

tender shard
#

/summon text_display ~ ~ ~ {text:'{"text":"\uFFFD","font":"myfont"}'}
does it show if you summon it like this?

orchid gazelle
#

"Invalid escape sequence \u"

#

and idk what "font": blablabla means

young knoll
#

You can replace stuff in the default font silly

orchid gazelle
#

it isn't like I defined any custom font

river oracle
young knoll
#

You donโ€™t need components

river oracle
#

custom fonts are great for this

young knoll
#

Why not?

tender shard
#

or two? idk

young knoll
#

Thereโ€™s hundreds of reserved private use characters in Unicode you can use

orchid gazelle
#

still shows the ? unicode

river oracle
#

then you're texture pack is miconfigured

orchid gazelle
#

yeah idk how to properly configure it

young knoll
#

Used by who smh

orchid gazelle
#

ChatGPT told me to use the number representation of the unicode

river oracle
young knoll
#

You think I let other people touch my server?

#

Blasphemy

orchid gazelle
#

so 65533

#
   "pack": {
     "pack_format": 18,
     "description": "s"
   },
   "font": {
    "providers": [
      {
        "type": "bitmap",
        "file": "font/65533.png"
      }
    ]
   }
}```
#

mcmeta

young knoll
#

Whereโ€™s the font file

tender shard
#

hm I know that at least for sounds, you must not use the file extension

orchid gazelle
#

\assets\minecraft\textures\font

young knoll
#

Yes but you didnโ€™t

orchid gazelle
#

what?

young knoll
#

Change the actual font file

orchid gazelle
#

what font file

#

where

young knoll
#

assets/minecraft/fonts

orchid gazelle
#

that does not exist in my RP

#

I used some random template

#

also, my title background is grey smgh

#

there is no proper guide to make resourcepacks and no proper template

tender shard
#

at least there's a decent tool on spigotmc to merge resource packs

young knoll
#

There is most definitely a proper template

orchid gazelle
#

link?

tender shard
young knoll
#

Have the entire default resource pack

slender elbow
#

minecraft.wiki supremacy

young knoll
#

If only google would get that message

orchid gazelle
orchid gazelle
young knoll
#

Granted idk how to do fonts with the new system

#

Tis magic

slender elbow
#

See also
Tutorials/Creating a resource pack

tender shard
#

can't you just upload a font file to chatgpt and ask it to turn it into a resource pack lol

orchid gazelle
young knoll
#

Idk google it

#

Or find a pack that does it

orchid gazelle
#

well but I already registered my shit in the pack mcmeta

tender shard
#

this is what chatgpt told me when I asked how to turn a ttf into a resource pack

young knoll
#

Try that one

orchid gazelle
young knoll
#

assets/minecraft/textures/font/your_font_name

#

Although you can put the image basically anywhere

orchid gazelle
#

great I did what alex sent

#

great nothing works

young knoll
#

Download the one I sent and look at how they do it

orchid gazelle
#

ty

#

great, still not working smh

#

I am way too stressed

#

this is annoying

young knoll
#

Did you put it as a custom font or in the default one

orchid gazelle
#

default

young knoll
#

ยฏ_(ใƒ„)_/ยฏ

#

Copy and paste the raw character in chat, see if it works

orchid gazelle
#

nothing

#

I guess imma just calm down for now and completely restructure my resourcepack properly tomorrow?

young knoll
#

Itโ€™s extra fun when youโ€™re trying to generate resource packs via code

orchid gazelle
#

good that I don't need that for this plugin

peak depot
#

My Question is half Coding half Server help I got an custom texture pack where I have an Image for my Scoreboard Displayname but it wont load and only show the invalid char thing does it need to be specifc size for the scoreboard

grand flint
peak depot
peak depot
young knoll
#

Youโ€™d have to use 2 characters

#

And some spacing

obsidian plinth
#

Whatโ€™s a good way to hide a certain entity (like a cow) from a player everything I try with protocol lip isnโ€™t working in 1.20.4

valid storm
#

can someone help me

valid storm
#

hi

#

anyone able to shoot me some advice

eternal oxide
#

Don't sleep with loose women

hybrid spoke
young knoll
#

Donโ€™t eat the yellow snow

slender elbow
#

if it's black, fight back, if it's brown, lie down, if it's white, say goodnight

slender elbow
#

bears

wintry lynx
#

xD

#

Nvm

storm scaffold
#

Is there a way to send a resource pack in a plugin as the player joins before loading in, like how server.properties now works with packs

storm scaffold
young knoll
#

Pretty sure adding it on join is basically the same

obsidian plinth
#

rthx

storm scaffold
river oracle
young knoll
#

I swear Iโ€™ve always seen the packs load right after I join

#

You also get the prompt after joining if you have that enabled

slender elbow
#

i guess they're asking if there is anything exposed about the configuration phase

#

which, no

storm scaffold
slender elbow
#

would love some intent system for delaying the configuration phase finishing

river oracle
#

Time to expose configuration phase oh nvm... that would require me to touch the spigot plugin loader nvm

echo basalt
#

noob

slender elbow
#

leader

young knoll
#

Ah right the config phase

#

Forgot about that

river oracle
#

Bruh I hate typing on my phone ๐Ÿ˜ข

river oracle
#

You would

young knoll
#

What

river oracle
#

Even before world

young knoll
#

Configuration phase is when players join

#

You spoon

storm scaffold
#

Isn't the config phase when the player joins

#

the bit where resource packs now load if in server.properties

young knoll
#

Yes

#

It goes login -> configuration -> play

river oracle
#

Becusse I thoughts you couldn't access the server object

storm scaffold
young knoll
#

Thatโ€™s nothing to do with the connection phase

#

I donโ€™t think thereโ€™s really a name for that

#

Registry phase I guess

river oracle
young knoll
#

Smh do you even NMS bro

river oracle
slender elbow
river oracle
young knoll
#

Bootstrapping, registry, Mojang being rude, whatever you want to call it

river oracle
young knoll
#

Doubt it

#

They love their ice cold registries

fluid river
#
public class ShitListener : EventListener<PlayerShittedHimselfEvent> {

    public override void OnEvent(PlayerShittedHimselfEvent eventData) {
        Logger.GetLogger().Log("Haha funny" + eventData.GetPlayer().GetName());
    }

}```
#

i finally made it on unity

storm scaffold
young knoll
#

Ew gross I can see the C# code style from here

fluid river
young knoll
#

Well your braces arenโ€™t

#

But look at those disgusting upper case method names

fluid river
#

i just prefer it this way(as java)

river oracle
young knoll
#

Visual studio on its way to scream at you:

river oracle
#

Braces on the next line is pure brain dead behavior (sorry md)

fluid river
#

this shit finally works

#

and it can load events from mods

young knoll
#

Iโ€™m very sad there isnโ€™t a gif of Brendon Urie kicking the door open on tenor

fluid river
#

thanks everyone who helped me with that shit

next plume
river oracle
next plume
#

And if that bothers you, you need to reevaluate your priorities in life.

river oracle
#

Braces being on same line is still #1

next plume
#

I 'm paraphrasing here, but K&R said pick a style you like and stick with it.

river oracle
next plume
#

They had a particular style that they liked, but realized it was advantageous for people to use the style they were most comfortable with.

echo basalt
#

google style

river oracle
#

yeah they need to grow up and do same line braces

next plume
#

So you're wrong to criticize other peoples' choices.

echo basalt
#

or die

kind hatch
#

I use a slightly modified google style. :p

echo basalt
#

wasn't microsoft style mega cursed

young knoll
#

It do feel a bit funky

kind hatch
river oracle
#

I could maybe let it go if they just comitted a Felony or something, but this I could never

echo basalt
#

:OOOO THEY USE GOOGLE STYLE

river oracle
#

@echo basalt Its confirmed I'm a better troll than CMarco

next plume
#

That's nothing to be proud of.

river oracle
#

Atleast Cmarco uses same line braces though ๐Ÿค”

river oracle
dawn valley
#

cna anyone help me with my code?

#

i have an issue.

#

i tried to make a plugin that cancels drop event from stone , if /nocobble is toggled so when stone break nothing drops but it did not work

#

here is my code in spigotcraft channel

echo basalt
#

?paste

undone axleBOT
echo basalt
#

Toss the code in here

kind hatch
#

Why in that channel? This is the development channel after all.

echo basalt
kind hatch
#

If you're trying to prevent drops from stone, then you should probably check against Material.STONE instead of Material.COBBLESTONE.

echo basalt
#

Potential issue: You're checking if the block type is cobblestone, not if the dropped item is

dawn valley
#

i cannot send links here

#

it does not allow me

river oracle
#

yes you can

dawn valley
#

ill try again

#

oh

#

what

#

i was spamming earlier

#

;-;

remote swallow
#

you still dont check the item