#help-development

1 messages · Page 1309 of 1

slender elbow
#

joy joy 100

wet breach
#

oh what a shame, guess my words were too much for them and I haven't even said that much either

rough drift
#

where was that one doc about scheduling tasks across ticks to prevent some ticks taking too long?

#

I can't seem to find that page

wet breach
#

?scheduler

#

?scheduling

undone axleBOT
slender elbow
#

?work-distro or whatever

rough drift
#

ty

slender elbow
#

look at smile

wet breach
#

ah

stable lark
#

hello guys I am working currently for my first big project Anticheat: NeXploit
do you have some kind of tips how to detect auto farms berritone (it will be free )

thorn isle
#

auto what now

stable lark
#

it is detecting more than half of modules that meteor client has soo i think it is good now but there is still room for improvment

slender elbow
#

people use bone meal.. cheats?

stable lark
slender elbow
#

you can literally put bone meal in a dispenser

stable lark
#

it is much faster than in dispenser

slender elbow
#

a) cheating crops is pathetic b) how many carrots do you need that using cheats is so much more worth it than 1-ticking a dispenser

#

anyway

#

i don't care

umbral ridge
#

why not just block custom clients to connect to your server in the first place?

umbral ridge
#

custom clients sent custom packets to the server

#

which can be tracked somehow

stable lark
#

yea buut clients can cancel packets

#

with server proof

slender elbow
#

a cheat client telling the server a cheat client is joining is quite a hilarious concept

umbral ridge
#

exactly

slender elbow
#

no, they don't always send custom packets

#

but you can detect patterns in the packets for the cheats that are being used

umbral ridge
#

thats exactly right

wet breach
stable lark
#

because on some server there is economic and they can easily farm and i am trying to detect most stuff that is not that hard to detect with basic math

wet breach
#

is farming supposed to be difficult?

#

if you want people to wait in terms of time, you would just simply ban the use of bonemeal, so I really don't see the issue here lmao

stable lark
#

I am just trying to detect everything

#

soo

sly topaz
#

I would probably make a plugin to limit bonemeal usage rather

#

or make a feature out of it and turn bonemeal into a more precious resource

wet breach
#

thus, the cycle of economics

#

anyways, don't really see the issue of using bonemeal super quick though lmao

sly topaz
wet breach
slender elbow
#

it's not binary

#

you can just.. slow it down

sly topaz
wet breach
#

well it is

slender elbow
#

but it's not

umbral ridge
#

Rasist

sly topaz
#

it'll happen eventually when some users play for long enough, but if you let players just destroy the economy in a few days then there's no community formed

umbral ridge
#

XD

thorn isle
#

my only advice to anyone working on an anticheat plugin is to give up

wet breach
#

no one cares about the community except those who formed it to begin with

#

anyways, I guess people love to create problems out of nowhere

#

and then come up with some elaborate solution even though the most simple one already existed -.-

thorn isle
#

either way what does the "cheat" consist of, anyway? a player should only be able to bonemeal something 20 times a tick legitimately, if they're going over that, it's anticheat territory; if the issue is that 20 bone meal per tick is too much for you, it really should go in a separate plugin that balances bonemeal instead

#

i think the server already caps it to 20 per tick to begin with

#

i mean per second

#

1 per tick

slender elbow
#

but why disable a mechanism completely for the people that care when you can limit it? then the people that want to cheat will be limited and leave, and the people that don't want to will not be bothered by it

thorn isle
#

if i wanted to balance this, i'd write a plugin to apply an item cooldown to bone meal on use, using the vanilla cooldown mechanism

wet breach
#

not sure what experience you speaking from. Literally have never had an issue with removing items from a server

#

if people disliked it, well it wasn't for them and they are not the only ones ever in the world

thorn isle
#

this would be more intuitive than whatever an anticheat plugin would do

sly topaz
#

I mean, everyone manages their servers differently. Just because that worked for you doesn't mean it will work for everyone, sometimes it is hard to get a grasp of even a few players

#

the point here is that they're trying to do something to balance their economy

wet breach
#

well it does work for everyone. The ones that tried to please everyone die off

stable lark
#

I am not server owner bruh I am just trying to detect cheaters

thorn isle
#

that's not within the purview of an anticheat plugin

slender elbow
slender elbow
#

lmao

#

what are you onto

stable lark
#

+every server owner will set it yourself so what is the point

thorn isle
#

if you're looking for cheaters, being able to use bonemeal 20 times per second on a block is a legitimate vanilla feature

slender elbow
#

why are you so adamant about removing a mechanism for the people who care about using it genuinely

#

when you can limit the usage for those who cheat and allow the genuine use

wet breach
#

interesting you call it a cheat when its allowed o.O

sly topaz
#

I won't get ragebaited in a pointless bonemeal discussion so I'll leave it here, the guy already got answers to their question anyway lol

stable lark
#

yea

wet breach
#

your guys defintions are pretty weird. and yes the servers that do try to please everyone do indeed don't make it

#

not even hypixel tries to please everyone lmao

umbral ridge
#

my suggestion is dont use anticheat at all.. but perm ban people if you catch them. Ip ban. Name ban. Perm ban them any way possible

slender elbow
#

who is talking about pleasing everyone?

thorn isle
#

only a problem on cracked servers

slender elbow
#

i am talking about pleasing the people who want to play naturally, specifically leaving out cheaters

umbral ridge
#

and use a premium server

wooden bay
#

Hire mods

wet breach
#

Anyways good luck with the elaborate solution, even though simple ones exist and are highly effective

wet breach
sly topaz
quaint mantle
#

If you hate cheaters then you should start playing singleplayer

stable lark
thorn isle
#

i think anticheat has its place even on premium servers, staff probably won't be online and directly watching over every player 1:1 24/7; punishments can be left up to staff, but notifications/logging and preventation of blatant cheats is still useful

sly topaz
#

flying without creative (elytras aside) isn't a vanilla feature

#

it is a plugin thing

wet breach
#

that isnt my point and if you can't understand that, then obviously I shouldn't even attempt to speak with you -.-

stable lark
#

bruh bc of that i want to detect all kind of staff in to the logs

stable lark
thorn isle
#

someone taping their right mouse button down with bonemeal in their hand most likely isn't worth logging to be honest

#

if you get more than one item use packet per tick, sure, that's fishy and probably a modified client, that ought to be logged

wet breach
thorn isle
#

but below that it's just noise and useless false positives

stable lark
thorn isle
#

that'd be a direction/interact check unrelated to bonemeal

stable lark
#

and I am trying to that

thorn isle
#

check whether the interacted-with block is within line of sight

stable lark
#

kk

wooden bay
umbral ridge
#

If only we could live longer

#

Life is too short for coding

#

its too short

thorn isle
#

send the keyboard inputs to the server and render the game on the cloud

wet breach
#

however, without a custom client its pretty pointless making anti-cheats for something that accepts what the client says and not the other way around

#

but I have always found it pretty effective to just scan the packets for the info you seek

#

to get the data early and do whatever verification later

umbral ridge
stable lark
wooden bay
stable lark
#

that would be beautiful

thorn isle
#

that's on your cpu

stable lark
#

I didnt sleep for long time

slender elbow
quaint mantle
wooden bay
stable lark
thorn isle
#

i think the server does or at least is supposed to limit your item use packets to 1 per tick, so 20 is the legitimate maximum per second

stable lark
slender elbow
#

does it tho?

wooden bay
#

what's that

thorn isle
#

i'm not sure

slender elbow
#

it has no cooldown so idk

wet breach
thorn isle
#

i'd expect it to; if not, i'd expect an anticheat plugin to limit it to 1 per tick

quaint mantle
stable lark
thorn isle
#

on the topic of anticheats, have any of you used grimac?

wet breach
real crater
#

I dont know the first thing, thats why I was hoping that someone would teach me how to as they go

opal zodiac
#

Watch the first 5 or so and cherry pick from there on

real crater
grand flint
#

this is a really nice java course

real crater
#

I dont have a computer which is the big thing

grand flint
#

then code on phone

real crater
#

I can?

#

Ohh

grand flint
#

get a keyboard sure

#

u can even get a cheap monitor

#

a keyboard and mouse

real crater
#

I have both

grand flint
#

use ur phone as the pc

real crater
#

Can I get java on my phone

grand flint
#

if u have a samsung its really easy to make it work asa. desktop

grand flint
#

uhhhhhhh

oblique furnace
#

Hi, I am currently coding a plugin with crowns that has a texture pack.
VALOR("Crown of Valor ⚔\uFE0F", ChatColor.RED, "", "Battle Cry", 30, 1),
this is a crown with the custom model data = 1.
(Its a netherite helmet btw)
This is the netherite_helmet.json in My_texture_pack/assets/minecraft/models/item:
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/netherite_helmet"
},
"overrides": [
{"predicate": { "custom_model_data": 1 }, "model": "item/valor_crown"}
]
}
and I have a texture in My_texture_pack/assets/minecraft/textures/item/valor_crown.png
if I give myself the valor crown, while I have my texture pack on, its just a normal netherite helmet. Can someone help me?

grand flint
#

u can use an app

real crater
real crater
grand flint
#

idk

outer ember
#

Im so Happy
i worked on a code for 3days
and yeah ALL THE COMMANDS DOESNT WORK
Yay 😄

grand flint
#

on phone since its website

oblique furnace
smoky anchor
smoky anchor
# oblique furnace 1.21.4

The way you use custom model data has changed
BUT You should not be using it in this way anymore at all
Use item_model component instead

grand flint
#

for example if u want to have an optional pack

#

u should use custom model data

#

cuz if u use item model and there is no resource pack

#

it will show up untextured

#

but without pack it will show as base item

smoky anchor
#

Ok well I guess you are correct in this case
But I would not do an "optional resourcepack"
You can always force the client to download the RP

oblique furnace
#

and how does this new way work?😅

smoky anchor
grand flint
#

like i got a gen server its optional

#

since its only like a cosmetic thing

#

but item models are dope and the best

smoky anchor
grand flint
#

just use nexo 🙏

smoky anchor
#

Boi
This guy is making a simple item
There is negative need to depend on whatever that may be

oblique furnace
#

uhm... I want to make 9 new item textures😅

smoky anchor
#

Ye that's fine, just do the same thing 9 times

opal zodiac
chrome beacon
grand flint
grand flint
#

well tbh for learning codecademy provides everything anyways

chrome beacon
#

terminal emulator for android

#

you can install the jdk and such through there

grand flint
#

ooo

chrome beacon
#

Also Samsung Dex is only available on the higher end models

grand flint
#

olivo

#

wanna play roblox

chrome beacon
#

No, I don't play Roblox

grand flint
#

olivi

#

wanna play

#

rocket league

chrome beacon
#

Don't really play that neither

grand flint
#

cs2

chrome beacon
#

nope

grand flint
#

what do u plau

chrome beacon
#

Apex Legends

grand flint
#

and

chrome beacon
#

Minecraft

grand flint
#

wanna play minecraft

chrome beacon
#

sometimes

#

play what

#

I only really play modded

grand flint
#

wanna play hexxit

#

or the bedrock pack i paid 15$ for

grand flint
chrome beacon
#

Bedrock 💀

grand flint
#

balright

tired elbow
#

Hi

#

I need help

winter jungle
#

?xy

undone axleBOT
winter jungle
#

wrong site nvm

tired elbow
#

Look, when I make an entity and add a location, I want this location to access the path of the config.yml, but for that I need to go through the name of the entity, so I want to access the name

#

(custom) and after naming it, access the location and be able to invoke the entity correctly, how do I do it?

sullen marlin
#

Sorry what

violet blade
tired elbow
#

Something like fancy holograms

violet blade
#

most of these plugins work by first spawning the entity at the player’s current location, and then you adjust it afterward

#

after that, you can also populate the file with placeholder data, like a sample first line and the initial location

minor urchin
#

so i recently updated my mc server and spigot api to the latest version, but my custom heads now dont have a texture in my inventory but they do on my head when i am in f5? This is my code

        ItemStack item = new ItemStack(Material.PLAYER_HEAD);
        SkullMeta meta = (SkullMeta) item.getItemMeta();
        if(stackable) {
            meta.setOwnerProfile(stackableHead(texture));
        }else {
            meta.setOwnerProfile(unstackableHead(texture));
        }
        item.setItemMeta(meta);
        return item;
    }
    
    public PlayerProfile unstackableHead(String url) {
        PlayerProfile profile = Bukkit.createPlayerProfile(UUID.randomUUID());
        PlayerTextures textures = profile.getTextures();
        URL urlObject;
        try {
            urlObject = new URI("https://textures.minecraft.net/texture/" + url).toURL();
        } catch (URISyntaxException exception) {
            throw new RuntimeException("String violates RFC 2396", exception);
        } catch (MalformedURLException exception) {
            throw new RuntimeException("Invalid URL", exception);
        }
        textures.setSkin(urlObject);
        profile.setTextures(textures);
        return profile;
    }
    
    public PlayerProfile stackableHead(String url) {
        PlayerProfile profile = Bukkit.createPlayerProfile(UUID.fromString("7910bd8e-11c3-49d4-96ec-9e6c6beb56c4"));
        PlayerTextures textures = profile.getTextures();
        URL urlObject;
        try {
            urlObject = new URI("https://textures.minecraft.net/texture/" + url).toURL();
        } catch (URISyntaxException exception) {
            throw new RuntimeException("String violates RFC 2396", exception);
        } catch (MalformedURLException exception) {
            throw new RuntimeException("Invalid URL", exception);
        }
        textures.setSkin(urlObject);
        profile.setTextures(textures);
        return profile;
    }```
#

im not sure if im allowed to send blocks of code like that I don't talk here much

tired elbow
violet blade
violet blade
minor urchin
tired elbow
#

No bro, I mean loading the entity in the location that was set in the config

violet blade
violet blade
tired elbow
#

So if I create a void by creating a new entity and sending it its location, will it be created?

#

But that wasn't my question XD but thanks, I just wanted to know how to access a part of the path since I wanted to use: "*. location" but they told me that it wasn't possible and I shouldn't use *

violet blade
minor urchin
violet blade
tired elbow
#

I'm going to give you a small example of config

#

hologram1:
Location:
X:16
Y:5
Z:62
Hologram2:
Location:
X:22
Y:12
Z:1

violet blade
tired elbow
#

Now my question is, how do I access the path location if I must first access the name and this name can vary and I cannot use a getPath

minor urchin
#

ahhh looks too confusing for me ive never worked with jsons but ty

violet blade
#

and for that well give it a way to identify that entity

tired elbow
minor urchin
tired elbow
#

But how will you access your properties if the plugin can get confused and not search for your properties just because the path "your name" is different

minor urchin
#

I couldnt see it in the javadocs either

violet blade
violet blade
#

then u can do something like

real crater
chrome beacon
#

Make sure you don't use the google play version

#

as it's quite old

minor urchin
#

oh it still doesn't show the head texture in the inventory

cobalt drift
#

Hi, how can I get the name of an ItemStack? So, if the itemstack has an ItemMeta, the display name should be used, otherwise the name of the material should be used. Not e.g. OAK_LOG but the name of the item the player also sees if that item is in his inventory yk?

chrome beacon
#

Ideally you'd use a translateable text component as the name is controlled by the client

#

The server only contains the en_us language file

cobalt drift
chrome beacon
#

Where do you want to use the component

cobalt drift
#

If you mean that

#

I want to code a caseopening and there should be a message like: "Hey, you won ITEM_NAME" in the chat if the player gets an item from a case

chrome beacon
cobalt drift
trim quest
#

Olivo is one of the gigachads of this server

cobalt drift
#

I dont think that Material#getName or similiar will work because at the spigot docs you sent me the name for the DIAMOND_SWORD is swordDiamond ...

sullen marlin
cobalt drift
mortal hare
#

are hashmaps really faster than binary search? i mean theoretically yes, but when it comes to reality does it really outperform binary search? i mean binary search uses like 20 operations for worst case of searching for a million of records which is not bad compared to something like hashmap which would allocate a new heap object, resizes the array, computes the hash, iterates through the bucket on worst case and then it reaches the destination

#

i feel like O(1) of hashmap is a big lie since it has more complexity in terms of implementations to lets say sorted binary search

#

i need benchmark

chrome beacon
#

Yeah HashMaps are faster

#

but for small amounts of data the difference is negligible

chrome beacon
mortal hare
# chrome beacon assuming you have a decent hash function

but like worst case for binary search of billion records is like 30 operations, i feel like hashmap's implementation would need to go beyond that count to even properly work with all that overhead of heap allocation syscalls and computation of hash

#

i feel like hashmaps insertion is faster than binary search one, but when it comes to search binary search wins due to the overhead of the implementation

#

but cant really prove this

#

maybe im wrong but that's just my intuition

#

i feel like it cant be that all that memory overhead and calls would be cheaper than 30 operations

chrome beacon
#

Not sure what heap allocations you're talking about

mortal hare
#

in order to keep collisions as low as possible hashmap implementations keep the threshold value which when it reaches, hashmap resizes itself to minimize collisions

#

also allocations of bucket lists for hash collisions

chrome beacon
#

were you not talking about getting data

mortal hare
#

well you're right, but i think that all comes down to benchmarks

chrome beacon
#

Can recommend using JMH if you want to benchmark

thorn isle
#

are hashmaps really faster than binary search
lol

#

the thing about binary search is that it has very poor memory locality

young knoll
#

Technically all searching in programming is a binary search

#

Since they all run on binary

thorn isle
#

that is to say, sure, your indexing logic is cheaper, but every iteration of it is going to be a colossal cache miss

#

conversely on e.g. an open addressing hash map, you usually find the entry within a handful of collisions, typically within a single cache line, and even if not, the memory reads are coherent and easily prefetched by the cpu

#

you need to keep in mind that while processors have gotten many orders of magnitude faster over the years, memory is still relatively slow

#

that is not to say that binary search isn't viable; practically all "big data" mediums like relational databases still boil down to binary search and traversible tree structures

#

regarding the "heap allocation syscalls", that's just the tried old arraylist vs linkedlist argument that we've had for longer than most of us have been alive; each has its pros and cons

#

a flattened binary tree is going to have to be resized as well once it overgrows the capacity of the array allocated for it, no different from a hashmap; or if you're using indirection with pointers in between nodes, you get the same "heap allocation syscall" and poor memory locality cons as you do with linked lists

young knoll
#

What if I just allocate the array to be Integer.MAX_INT in size

slender elbow
#

caring about heap alloc syscalls in a jvm language

#

god forbid the vm reserves memory

fresh timber
#

how is Hypixel able to give mining fatigue without making arm swing animation ultra slow? I want to duplicate that

chrome beacon
#

Mining fatigue 255

young knoll
#

Aka negative mining fatigue

fresh timber
chrome beacon
#

That does not look like 1.8

fresh timber
#

its 1.19.4

chrome beacon
#

Recommend you update and set the attribute instead

fresh timber
#

no server is newest but I support older versions

#

I use attributes for 1.21 players

#

but I want it to work for ppl on 1.19

#

and other versions

#

is there a way to do this?

fresh timber
grim ice
#

?paste

undone axleBOT
grim ice
#

i realize this isnt spigot but this is the only dev server im still in 🙃

#

anyone got an idea of why my jar is genuinely empty?

#

this is all thats in there lol

drowsy helm
#

does generating a regular non-shadow jar do the same?

drowsy helm
#

very strange

#

my only idea is it is maybe in the wrong directory?

grim ice
#

but its not

#

i thought i was trippin since i havent coded in a while 😭

young knoll
#

Try a blood sacrifice

#

Gradle likes those

grim ice
#

boutta delete caches and pray it fixes itself

#

😭

slender elbow
#

you should use an up-to-date version of shadowjar, see https://gradleup.com/shadow/getting-started/

but your problem is most likely this

sourceSets.main {
    output.setResourcesDir(sourceSets.main.flatMap { it.java.classesDirectory })
}

and remove input.set(tasks.shadowJar.get().archiveFile) from the remapJar task, simply doing the from(tasks.shadowJar) is enough

also why are you using two different versions of the mixin library?

grim ice
#

as for the two different versions of the mixin library

#

frankly i have no idea

#

im using a template thats been recommended to me (which ive used a few years ago i believe)

#

Still the same thing

mortal vortex
#

Which is correct?

LootTable lootTable = drop.getLootTable().getLootTable()

or:

LootTable lootTable = Bukkit.getLootTable(drop.getLootTable().getLootTable().getKey());

or both literally the same?

#

shoot, forgot to mention drop is an instance of:

public class RandomDrop {
    
    public enum DropType {
        MATERIAL,
        LOOT_TABLE,
    }
    
    ...
    private LootTables lootTable;
    private List<ItemStack> items;
    
    // other constructors
    
    public RandomDrop(DropType type, LootTables lootTable) {
        this.type = type;
        this.lootTable = lootTable;
    }

    public LootTables getLootTable() {
        return lootTable;
    }
slender elbow
grim ice
#

Tysm for the help

rancid stream
#

guys i need help

#

i am making a plguin and the command there are 2 of the same one but one iwth a name space

#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
__**Admin:**__

selfrole Add or remove a selfrole from yourself.

__**Cleanup:**__

cleanup Base command for deleting messages.

__**Core:**__

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

__**Downloader:**__

findcog Find which cog a command comes from.

__**Mod:**__

names Show previous usernames, global display names, and server...
userinfo Show information about a member.

__**ModLog:**__

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

__**Permissions:**__

permissions Command permission management tools.

mortal vortex
rancid stream
#

no

mortal vortex
#

or is the cmd name already in use?

rancid stream
#

it wont let me upload the image

mortal vortex
#

upload to imgur,

#

otherwise to send attachments here you'll need to verify with ?verify

rancid stream
#

?verify

mortal vortex
#

Yeah thats always the case

rancid stream
#

but its a differnt name

#

the plugin is caslled cookie bite and the command is cookie shop

mortal vortex
#

no i understand that

rancid stream
# mortal vortex Yeah thats always the case

do you have a fix my 1st idea was because the old plugin woudlnt load on test server i used my terst plgin and it hasd the same comand but twhen igot it to work (the issue was that the plguin name had a space) but i removed it and it iss till there and i even made a new server

mortal vortex
#

Every plugin does this afaik

rancid stream
#

my old plugin that i was testing on didnt

#

and i made a command called test command and it does it with it as well

mortal vortex
#

well. thats because what ur looking up, qualifies the namespace.

#

If your plugin is called foobar and the command is foo, although these names are not the same, when you search /f.., youre going to see both foobar:foo and foo, because the name space satisifes the condition of the search parameter.

#

if instead your plugin was called fortnite, and the command was battleplass, typing /bat... will never show the namespace

rancid stream
#

Hmmmmmmmmmm

#

Thanks

#

But is there anyway for me not to have it

mortal vortex
#

that would just be silly

#

u can remove the tab complete

rancid stream
#

?

#

Do what

#

What is the tab

mortal vortex
#

the key on ur keyboard.

#

like how you press it, it shows you the possiblities

mortal vortex
#

whcich is localized to just ur server

rancid stream
#

Ok but will it effect the other ones

mortal vortex
#

Yeeah

#

otherwise use onTabComplete.

rancid stream
#

So if I use on tab complete it won't remove anything else

mortal vortex
#

yeah

rancid stream
#

If it or rename the command doesn't work what can I do

short pilot
#

wait no

#

im getting it all wrong

#

it's called a blockstate

#

how do you modify blockstate of a button, specifically the attachment part, not the direction

short pilot
#

oh i see it inherits attachable

#
    button.setAttachedFace(Switch.Face.FLOOR);
    block.setBlockData(button);

Like this?

violet blade
#

If it is deprecated it always points out to another method

#

Should work

short pilot
#
if (data instanceof Switch buttonData) {
   buttonData.setAttachedFace(FaceAttachable.AttachedFace.FLOOR);
}
wide cipher
#

How can i get an itemstack from a YAMLConfiguration. Ik there is getItemStack(String), but idk how to make that work in the .yml file, currently, i have material: STICK but that doesn't work

thorn isle
#

It's part of the configurationsrializable api, which is really a serialization and not a configuration api

wide cipher
#

so how would i be able to get an itemstack from a .yml file?

thorn isle
#

You can do cfg.set(key, itemstack) to serialize a stack, then save the config

wide cipher
#

ok

frigid citrus
#

Hi guys, has anyone worked with Bundles?

I need to make it so that you can put non-stackable items (potions) in it more than one.

I tried to catch the InventoryClickEvent, but when I try to put the second potion in the Bundle - the event does not work at all.

grand flint
#

I'm pretty sure it's hardcoded not sure if it can be changed

thorn isle
#

you probably can shove more items into the bundle with the api, but i'm guessing the client sees that the bundle is full and won't even send an inventory interaction packet when clicked

frigid citrus
#

You can put more than 1 potion in it via code.

But I can't figure out how to track clicks in a normal game

thorn isle
#

you could maybe jerryrig it to work by making the bundle always appear as empty to the player

frigid citrus
smoky anchor
#

idk how feasable that is but
when player clicks the bundle change the max item stack size of the potion to 64 (or whatever you want)
give it a random UUID so it doesn't show stacked and so you can only ever remove just one
then when player takes an item out, just remove those components
That would be what I'd try

thorn isle
#

that should work i think

#

it's a bit finicky since you don't want to miss any instances of the player taking stuff out, but it should be doable

frigid citrus
#

thanks you, guys!
i'll try it

rancid stream
cerulean cave
#

guys if anyone dont mind pleae can someone dev me a complex plugin for minecraft for free

#

please dm me

winter jungle
#

“Complex” and “free” are two words that don't go well together.

pseudo hazel
#

I mean sure, but then its gonna take a few years to create

alpine solar
#

4 years minimum

potent crescent
grand flint
#

maybe if its a good idea and u sell it or release it after

trail cargo
#

Is it not allowed to include a grass block design in part of a logo (for a plugin, server software, or even a Python program)?
Even if the design is hand-drawn, would using it still be considered not allowed?

grand flint
#

well depends what it looks like

#

if it looks like a grass block

#

probably not

#

if its grass

#

probably yes

#

where did u even get the not allowed from i didnt know that wasnt allowed

slender elbow
#

EULA & MUG

cobalt drift
#

Hi, is there a website where all the translation keys for the items are listed?

thorn isle
#

you can get it from the material

cobalt drift
chrome beacon
cobalt drift
chrome beacon
#

You can use adventure on Spigot

#

however that does not solve the problem

#

you still need the translation key

cobalt drift
quaint mantle
thorn isle
#

update to a version that isn't dead

#

or downgrade to 1.8 which regrettably isn't dead yet

daring light
cobalt drift
chrome beacon
cobalt drift
chrome beacon
#

The server comes with only the en_us language file

#

I don't remember if it contains all keys or not

cobalt drift
#

I installed mc launcher in /opt

chrome beacon
cobalt drift
chrome beacon
cobalt drift
#

ah ok

#

Where is the en_us file located?

#

searched for it but no results

violet blade
#

inside the .jar file

chrome beacon
#

^

cobalt drift
#

Ah ok

#

And how can I open the jar? Will decompiler work?

chrome beacon
#

jars are effectively just zip files

#

you can open them with your program of choice

cobalt drift
#

ah ok

#

and where exactly in the jar?

chrome beacon
chrome beacon
#

Not 1.18.2 smh

#

(you can switch version though)

young knoll
#

Mhm

cobalt drift
#

So and now the only way I can implement it for my 1.18 plugin, is to put it all into a map?

#

Maybe with AI it will go faster but this will be very annoying

young knoll
#

I mean it’s probably doable with NMS

chrome beacon
#

You can just read it as a map using the config api

#

Remember that yaml is a superset of json, all json is valid yaml

cobalt drift
#

thats a great idea

chrome beacon
#

or yeah use nms which already handles the names and such

young knoll
#

Actually I wonder how accurate just doing “item.” + Material#getKey()#getKey() + “.name” would be

grand flint
#

what if instead of nms we just rewrite the entire minecraft server

#

from scratch with nothing in it

chrome beacon
cobalt drift
young knoll
#

Actually you’d have to do either block.minecraft.<key> or item.minecraft.<key> depending on Material.isBlock

grand flint
#

could call it mine something

#

maybe like minestorm

cobalt drift
young knoll
#

Yeah that should work

cobalt drift
#

Great, thank yall

minor urchin
#

is there a way to make a mob with no AI to constantly be looking at a player?

#

can i just do mob.getEyeLocation().setDirection()

cobalt drift
cobalt drift
minor urchin
sly topaz
#

what version are you on?

cobalt drift
sly topaz
cobalt drift
minor urchin
sly topaz
#

or if you're using internals, you could use the lookAt methods

minor urchin
sly topaz
#

actually, I didn't realize that you said no AI. I am unsure whether you can make them look at anything

minor urchin
fresh timber
#

So I am using a POV/camera feature for my server in 1.21.8 where I spawn a new armor stand then set the player's camera packet with protocol lib to the armor stand (I hide the armor stand after and use invisibility to hide player's arms)

I have a few questions

  • Is there any better system for this or is this the right way to do it with armor stands?
  • If the player is far away and doesn't have the chunk where the camera is loaded, the camera won't work at all. Should I just teleport the player over there and then back or is there a better way for this too?
thorn isle
#

if you make the player spectate the armor stand, you probably shouldn't hide it (i assume by hide you mean the Player::hide/showEntity api, which will destroy the entity on the client side and break spectator mode)

#

i'm not sure if the client will behave well when spectating an entity out of its tracking/chunk loading range

#

you can try it, but i suspect that once you teleport the player back, the chunks will de-render and things will break

#

something you could try instead of that is to send the set_center packet which sets the chunk loading center position, and set it to where the camera is, then send the chunk, and then try spectating

thorn isle
tender shard
slender elbow
#

"1.18 very old"

cerulean cave
#

anyone pelase can anyone please dev a complex minecraft plugin for free

quaint mantle
#

Nah

grand flint
#

lowkey

#

nobody is doing that request

#

its not even something

#

i could post or /sell

quaint mantle
#

Better off learning java than finding someone that would do it for free

grand flint
#

just do it with mythic lowkey

#

would be easy

#

crucible + mythicmobs

#

u only need to buy crucible

#

free mm will do

coarse hamlet
#

I am currently trying to animate a daytime transition per player. But apparently, with setPlayerTime(long time, boolean relative) ( https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setPlayerTime(long,boolean) ) that looks really wonky. I found this forum post where they found the same thing: "I just tried it but the thing is: Somehow the world (global) time is able to change smoothly but the player time isn't. I don't really get why...". (filled, but never really solved, link: https://bukkit.org/threads/change-player-time-smoothly.468063/ ). Does someone know a viable solution?

chrome beacon
#

Did you set relative to true?

coarse hamlet
#

I did now, it still updates about once a second if i had to guess, when it should be every tick

thorn isle
#

I tried this back in I think 1.12 and it worked fine

daring nexus
#

this guy is leaking plugins

#

how to report?

#

@tender forge

alpine solar
#

I would like to laugh at this user

daring nexus
#

his english is crazy

alpine solar
#

Jus send the link

#

I'm pretty bored

daring nexus
#

done

alpine solar
#

btw

#

they dont have tos or pp

#

should have been a big red flag it self

coarse hamlet
alpine solar
#

Ah yes

#

Taking inspiration 😭

coarse hamlet
chrome beacon
#

A true classic

strong sable
#

Why is my plugin jar file 17.8mb in size? I included net.dv8tion.jda.api as a dependency, is there a way to reduce the final plugin size?

thorn isle
#

Use the spigot library loader for applicable dependencies, minimize anything you have to shade in

low thorn
#

hey so how do i make a Equippable item not Equippable? specifically need it to make a playerr head not equippable

#

(i see that there is hasEquippable, setEquippable and getEquippable, i dont see how to unset it)

chrome beacon
#

Tried setEquippable null

low thorn
chrome beacon
#

worth giving a try

violet blade
#

too bad spigot doesnt have a PlayerArmorChangeEvent

violet blade
#

at least that works when using /give and equippable={slot:mainhand}

grand flint
#

what

violet blade
grand flint
#

nice

violet blade
old flicker
#

Q: I have a registration portal for my community server that allows people to verify their emails with a university, then bind it to a discord profile using a bot. The bot allows users to enter their MC usernames into the thing. I have used rcon but I have security and reliability concerns for the method. I was wondering how DiscordSRV does it with the bridge to my discord (console, and server chat) and if I can set something similar up. Do bear in mind that the otp registration system and minecraft server are completly different servers on different IPs.

Im pretty sure the best way to achieve it is through my discord bot, and then somehow have a plugin listen for requests and then execute the command that I need.

Any ideas? maybe a good library to look into?

sullen marlin
#

discordsrv uses JDA

old flicker
#

I think the best approach is to create a remote database that I can connect to for the OTP system and the ranking system as right now I am managing 2: one on the mc server with rcon, and one on the otp server. Trying to sync them together can be messy.

chrome beacon
#

The server can just run a bot with JDA

old flicker
short pilot
#

when i try to get the direction of a player, do i have to manually round it if i want a flat cardinal direction like N E S W or is there any existing function to get that

#

(currently getting direction as a vector)

#
player.getLocation().getDirection();
old flicker
#

I think a centralized database is my best bet then, thank you!

violet blade
hard laurel
#

somone help my ip got banned from spigot for download so many plugins

violet blade
hard laurel
#

nvm

weak wasp
hard laurel
weak wasp
#

Hmm that doesn't seem like much

lime mauve
#

Sneaky golem in the pocket

weak wasp
#

the pocket

young knoll
#

Their IP wasn’t “banned” they were just rate limited

violet blade
wet breach
wooden bay
#

Used a db to store everything, on connect it checks if that user exists in a db if no deny login

clear elm
#

how can i remove the warning?

potent crescent
#

?help

#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
__**Admin:**__

selfrole Add or remove a selfrole from yourself.

__**Cleanup:**__

cleanup Base command for deleting messages.

__**Core:**__

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

__**Downloader:**__

findcog Find which cog a command comes from.

__**Mod:**__

names Show previous usernames, global display names, and server...
userinfo Show information about a member.

__**ModLog:**__

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

__**Permissions:**__

permissions Command permission management tools.

potent crescent
#

wtf

#

what it was

young knoll
#

I don’t think you can remove the warning

#

Short of maybe a resource pack that removes the lang entry for it

marsh arch
#

hey guys i have a question how i can update my minecraft spigot version from 1.21.5 to 1.21.8 i have already the Spigot java version 1.21.8 downloaded but how i upload it ? thanks for help

young knoll
#

Just replace the jar file

marsh arch
#

okay ty

#

is it the file with spigot.yml

faint prawn
#

Hi, I'm trying to create an effect similar to Hypixel where an armor stand holds an arrow item at a 45-degree angle, with two horizontal particle lines - one above and one below the arrow the frist screenshort was my one and 2nd screenshort from hypixel that how i want

Current issue:
• I have an armor stand holding an arrow with RightArmPose: [-90f, 0f, 45f] (which makes the arrow diagonal)
• I'm spawning red particle lines, but they appear vertically/diagonally instead of horizontally
• I want the particle lines to be perfectly horizontal, parallel to the ground, regardless of the arrow's rotation

marsh arch
marsh arch
sullen marlin
#

Probably a setting on your server host

faint prawn
mortal vortex
#

they cant respond.

faint prawn
#

what mean by bot account

#

this all my real account

mortal vortex
#

No, them.

faint prawn
#

i verify

mortal vortex
#

The person you responded to.

faint prawn
#

0o

#

srry

#

i think you saying me

mortal vortex
#

nah bro ur good

faint prawn
mortal vortex
#

By code i mean, what you have right now which gave you the result seen in the first screnshot @faint prawn

marsh arch
#

anyone know how i can change my host server from host-unlimited the spigon version 1.21.5 to 1.21.8

mortal vortex
marsh arch
#

it takes now like 2 hours and my brain explode

#

okay

solid tangle
#

BROOO HELPPP

solid tangle
#

[15:32:47] [Server thread/ERROR]: Encountered an unexpected exception
org.spongepowered.configurate.loader.ParsingException: []: Unknown error occurred while loading
...
Caused by: org.spongepowered.configurate.yaml.internal.snakeyaml.parser.ParserException: expected '<document start>', but found '<block mapping start>' in 'reader', line 15, column 1: _version: 31 HELP

drowsy helm
#

But it’s just saying your yaml file is invalid

#

Put it in a yaml linter and itll tel you whats wrong

solid tangle
#

@drowsy helm

drowsy helm
#

?

#

That was unnecessary

solid tangle
#

I can't understand much about these situations. I have screenshots from these situations. Can you help me if I send you the exact error in private?

#

Of course, if you are available, I would be very grateful if you could help me.

lost matrix
#

@solid tangle Dont cross-post, and this is the wrong channel. And please dont spam DMs at me.
Its a warning. Ask your question and then wait patiently for a response. buoobuoo already gave you a valid response.

solid tangle
#

@lost matrix Ok thanks

violet blade
# faint prawn .

send the math or code you are using for the particles, might help others understand your problem

faint prawn
misty ingot
#

how do people make really complex particle effects? like how do you do that much math? is it just a lot of trial and error and doing it like incrementally? or are there tools for this?

grand flint
#

most are probably just trial and error probs

violet blade
#

i was about to say why are you using nms then realized its 1.8 😭

misty ingot
misty ingot
wet breach
#

its not like they are doing the math manually although you could do so

misty ingot
#

like on hypixel skyblock they have a boss which creates this big particle cube around itself iirc

#

i could think of how youd make basic 2d stuff, everyone learns that in school but its the 3d aspect of it that really confuses me

violet blade
wet breach
#

if that helps

#

basically just need to learn, triangles, cirlces, and squares and you should be good to do most anything

misty ingot
#

yeah that makes sense obviously but like
its just a lot harder to imagine as soon as you add the third dimension ykwim

wet breach
#

yeah not everyone is spatially inclined

misty ingot
#

i can picture a sin function but idk how itd be if i multiplied it with another one in the z axis
if that makes sense

violet blade
wet breach
#

and that is what testing is for

violet blade
#

its like those that makes animated things with chars

wet breach
#

also you should test at the extremes sometimes too 🙂

wet breach
#

get some cool effects sometimes doing that

misty ingot
#

oh right
the donut code donut

misty ingot
misty ingot
#

thats... interesting

violet blade
grand flint
#

why did u look up

misty ingot
violet blade
#

map the alphabet in some grids and then make a method to replace the 1s from the grid into a particle and make the chars then another method to rearange that into words

thorn isle
#

i'd probably just spawn particles from a java2d graphics canvas after drawing text on it

#

though we have text displays now so it doesn't really make much sense to do this with particles

wooden bay
#

Text displays make that so much easier

violet blade
elder leaf
remote swallow
#

1st we are spigot not paper, also that probably isnt shading it. Use a build system like maven or gradle

remote swallow
#

still running paper server

elder leaf
#

its test server so i can change

#

ok now have spigot so how can fix?

remote swallow
#

figure out how to shade with intellijs build system or use a more conventional build system like maven or gradle

elder leaf
#

still dont work

remote swallow
#

did you add the respective shade/shadow plugin?

elder leaf
#

ye

sly topaz
#

Also there's no way you got spigot that fast lol, BuildTools takes a hot second to build

elder leaf
#

wait maybe have problem

java version "1.8.0_461"
Java(TM) SE Runtime Environment (build 1.8.0_461-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.461-b11, mixed mode

sly topaz
#

I guess you could've had a build lying around

sly topaz
elder leaf
#

ye

visual vapor
#

Hello i need help my plugin doesnt work it like half works but theres a proplem that ruins it

visual vapor
#

So

#

Do you know cubicmetre

kind hatch
#

The measurement?

visual vapor
#

No like the redstoner

#

I tried to make a plugin that shoots a nuke out of tnt rings but when the tnt rings spread out by spreading out i mean the rings start as small and become big with velocity but when the tnt is falling down then the tnt snaps back to the original place they spawned in and lose alot of velocity and then it repeats but the first ring in the order doesnt

#

Lemme show the code rq

#

Wat no

#

Shadow il dm u

visual vapor
thorn isle
#

Consider using some punctuation, I have no idea what you're saying

cerulean cave
#

if someone can generate me a complex minecraft plugin i will give them vps

lime mauve
#

What is vps

smoky anchor
violet blade
glossy laurel
rotund ravine
#

Can u throw in an oracle free tier vps that you also have access to?

glossy laurel
cobalt drift
mortal vortex
thorn isle
#

he downgraded "write me" to "generate me"

mortal vortex
#

he wants vibe coders clearly.

thorn isle
#

i know a professional "chatgpt plugin maker" but he charges 25-50usd per plugin

#

i believe he was bosnian

potent crescent
# mortal vortex This is your 3rd time. Last time you said you already found a developer for free...

He might have meant me. He talked to me about his idea and tried to win my sympathy. I don’t know if the story he told me was true or not honestly, I don’t believe him, because it sounded almost impossible. Anyway, I agreed but planned to make a smaller version of his plugin idea for him. However, when I joined his server, he literally didn’t have any plugins at all, just a normal world. So I decided to change my mind.

mortal vortex
#

This is what happened when he asked me to join his discord 😭😭😭

mortal vortex
potent crescent
#

Did he tell you his brother story?

#

idk if its real or not

mortal vortex
#

😭 dm me the full story.

potent crescent
#

lol

mortal vortex
#

Screenshot even

potent crescent
#

hhhhahahhaa Because of his brother's story, I sympathized with him. Do you think he is honest?

mortal vortex
#

I don’t know the story bro send me it

potent crescent
#

ahaa

mortal vortex
#

😭😭😭yup fake

#

His brother offed himself so you could make him a Minecraft plugin.

potent crescent
#

hahahaha

#

I won't believe him or disbelieve him at the same time, but I won't waste my time on someone who hasn't setup their server yet and wants a "complex plugin for free."

grand flint
potent crescent
grand flint
#

nah but he sent me the entire thing he wants too

potent crescent
#

😂😂

mortal vortex
#

India Turkey Brothers 😎😎😎

#

You have to do it

potent crescent
#

did he say that? hahahah

grand flint
cobalt drift
#

(if anyone can help, feel free - I just replied to him for the context)

low thorn
chrome beacon
#

They're on 1.18

#

where it doesn't exist

low thorn
#

o

chrome beacon
low thorn
#

translation keys should just be item.minecraft. + Material#name.toLowerCase?

#

i have done that before when .getTranslationKey didnt exist, that seemed to work

chrome beacon
#

it's not as they mentioned

low thorn
#

they mentioned item. + Material#getKey#geyKey which would be invalid as lang entries consist namespace aswell

chrome beacon
#

actually no you seem to be right

#

Where did you get swordDiamond being the key from? @cobalt drift

#

I just double checked it and it's item.minecraft.diamond_sword

cobalt drift
#

But I dont think that this will work, as Material.DIAMOND_SWORD.name().toLowerCase() will return diamond_sword ig and I think that doesnt work

cobalt drift
#

Never worked with NMS tbh and I was happy with that haha

grand flint
#

u arent setting the material id to lower case

#

ur setting its name

slender elbow
#

name is the enum name, which is DIAMOND_SWORD

#

the key approach will work

#

"item.minecraft." + material.getKey().getKey()

rotund ravine
slender elbow
#

or block or whatever

#

he's using 1.18

rotund ravine
#

Ew

#

Not even better

slender elbow
#

it would just return DIAMOND_SWORD

cobalt drift
#

Ill try some more things tomorrow

chrome beacon
#

It should work just fine

#

if you want to use nms you can get the translation key from the nms itemstack

cobalt drift
#

Maybe its also due to bad code

cobalt drift
#

Never used nms

chrome beacon
#

use that as your last option

cobalt drift
#

yep

#

I also dont want to use it

sly topaz
#

why

#

you are stuck on 1.18, so using internals shouldn't be much of an issue

#

you can just mark them with comments in case you want to update it in the future to a version which has the translation key method

cobalt drift
#

You cant use NMS across multiple version iirc

sly topaz
#

but you are stuck in a single version so why does that matter

cobalt drift
#

No I am not, its not for my own server

#

It should become a public server

chrome beacon
#

what versions are you targeting

cobalt drift
#

Id never use 1.18 private server

cobalt drift
chrome beacon
#

as the server jar?

#

I'm not talking via version stuff

sly topaz
#

is there a reason you couldn't just use 1.21.8 + viaversion/viabackwards?

cobalt drift
chrome beacon
#

so it's a public plugin

cobalt drift
#

Yep exactly

chrome beacon
#

you made it sound like you're making it for a specific server

cobalt drift
#

I think I should say that directly next time haha

sly topaz
#

I don't get why you would support anything other than latest and maybe the previous version given ViaVersion exists but alas

#

just use reflection to get the translation key

cobalt drift
cobalt drift
#

I know how reflection works

#

But what field of which class do I need to use reflection on?

sly topaz
#

and 1.20.4 + 1.20.1 make up 9.4% which is somewhat significant, but in the end less than 10% combined

sly topaz
cobalt drift
#

Hmm but supporting 1.18 is not a big deal. Had no problems since now. I think thats the only one as the plugin is almost finished

cobalt drift
chrome beacon
#

What's the usecase?

cobalt drift
#

Or can you translate a Material.GRASS_BLOCK?

cobalt drift
# chrome beacon What's the usecase?

I am coding CaseOpening and if someone draws an item without specified display name he will get a message like
You have won {item}
And the name should be displayed in the players language

chrome beacon
#

Then it's just items

#

Use reflection on the ItemStack class if that's what you want to do

cobalt drift
chrome beacon
#

(Nms ItemStack)

cobalt drift
#

You have to hold an item in your hand and execute a command to add it to a case. And you can also have a grass block in your hand

#

idk how spigot handles this

chrome beacon
#

It's still an item stack

cobalt drift
#

ah thats great

cobalt drift
#

never worked with it

sly topaz
#

what is

chrome beacon
sly topaz
#

1.8.8 is nowhere near as prevalent as it used to be, it is very slowly dying even if we don't want to admit it

#

Hypixel retains 90% of the 1.8.8 players

chrome beacon
#

1.8 is a very loud minority

cobalt drift
#

thank yall for your help

quaint mantle
#

Minecraft: 29.99$
Roblox: free

#

Ngl most of them should be bots farming in game items

chrome beacon
#

It's also bunch of kids leaving their systems on to farm in afk games

echo basalt
#

maybe even 1.21.4 if you don't care about the hide whatever component that much

#

we updated to hide durability bars

#

1.21.6+ ruined custom menus

sly topaz
#

not related to this but while you're here Illusion, do you have your reimplementation of the Slot stuff in a repository or somewhere I can access

echo basalt
#

what slot stuff

#

My menu shit? I did it all with nms

#

a useful little utility I recently picked up and use all the time is what I call Holders

#

not just a holder class but an entire system

#

this should maybe be a full repo at some point

sly topaz
#

you should lol, that's like 10 classes

young knoll
#

What did 1.21.6 change

mortal vortex
echo basalt
left jay
#

are there any repositories out there that ports over some of paper's events and methods to spigot?

violet blade
#

depends on what exactly do you want

left jay
#

mainly player rotations and the jump event

misty ingot
#

have you tried just using paper?

left jay
#

im tryina work around that (._.)

#

or at least thats my final option

sly topaz
left jay
#

also ooooo thank you for the event

sly topaz
#

you can just use internals for it if it comes down to that

#

I guess you cold also use the command, a bit jank but it works

left jay
left jay
#

neato dorito, thanks a bunch

zealous scroll
#
                Particle.FIREWORK.builder()
                        .location(center)
                        .extra(0)
                        .offset(1, 0, 1)
//                        .data(new Particle.DustOptions(color, 1f))
                        .receivers(60)
                        .spawn();

why is a 1 block offset not actually 1 radius

rotund ravine
#

I mean it’s 1 around?

misty ingot
#

i was gonna say something but no, that suddenly makes complete sense

torn shuttle
#

hm is it a problem to sleep an async thread

#

probably fine just for debugging right

#

I just want to put this at a human speed

thorn isle
#

a bukkit scheduler async thread? it's fine, bukkit doesn't care specifically

#

it'll just spawn more threads if its threadpool runs out

misty ingot
#

i want a thread spawn egg

#

nvm that makes no sense

young knoll
#

No one uses that

mighty wind
#

is there a fix to buiild tools not running on my pc
im on windows 10
i run it on cli and on gui and it says cant run on my pc

austere cove
#

can you be more specific

mighty wind
#

i downlaod from here

#

i downloaded .exe and .jar

#

tried both

#

then i get a windows popup "this app cant run on your pc"

slender elbow
#

does it not say why?

#

you might need to disable SmartScreen or whatever that's called, or enable running non-store applications

#

inb4 school computer khajiit

chrome beacon
#

That popup only happens on the exe version? Also you can click read more or whatever and then click run anyway

dry hazel
#

inb4 it's a windows on arm laptop

mighty wind
mighty wind
mighty wind
smoky anchor
#

This looks like a "your PC problem"
Just google for some possible solutions
I read "disable all chrome extensions", "repair windows" and a nuclear "reinstall windows"

strong sable
# wet breach don't shade jda

like how?
im using:
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0</version>
</dependency>

thorn isle
#

set the scope to provided

chrome beacon
#

and then provide it through the library loader or another tool that can get it for you during runtime

chrome beacon
#

also what popup are you getting on the jar

mighty wind
chrome beacon
#

So it works fine

mighty wind
#

the jar is the same as the exe, when i run buildtools

#

it says this cant run on your pc

#

its like a smartscreen popup

chrome beacon
#

Could you send me an image in DMs

mighty wind
#

ok

austere cove
#

watch it be a warning for not being signed

chrome beacon
#

I told them how to bypass that

#

and they said they did 🤷‍♂️

chrome beacon
mighty wind
#

if i did smth stupid like that then mb

jagged thicket
#

it looked just like a mac

#

looked p good

chrome beacon
#

It was just a corrupt portable git install

short pilot
#
if (healthAfterDamage < 1.0) {
            event.setDamage(0.0);
            
            Bukkit.getScheduler().runTaskLater(DeadRinger.getInstance(), () -> {
                if (player.isOnline()) {
                    player.setHealth(1.0);
                }
            }, 1L);
        }
#

will this still allow the player to look like they took damage while really not taking any?

#

or will damage of 0.0 not even tick

outer elk
#

i’ve asked this question in a bunch of dev communities and now want to ask here too:

even with the best hardware for a single minecraft server, people keep saying that handling more than around 300 players at the same time will almost always cause performance issues.

is there really no way around this, except using folia?

would appreciate any tips or ideas

ivory sleet
#

Even folia might struggle if said players are all in the same area i believe

outer elk
#

well i wonder ur suggestions 1m writing

ivory sleet
#

I do know multipaper is a thing not sure how stable it is

#

Theoretically you could scale to thousands of players

#

Ofc you’re no longer using a single server behind the scenes but yea thats the compromise

outer elk
#

I'm planning to open a large Skyblock server with over 300 players.
I want players’ items, inventories, skills, levels, money, and other stats to stay consistent even if they’re on different servers — I already know how to handle that part.

However, I don’t have the time or expertise to develop my own custom Skyblock island system. So, I thought about this idea:

  • Having one dedicated server for Skyblock islands,
  • And separate servers for dungeons and lobbies.

This way, I wouldn’t need to write my own Skyblock plugin.
My question is:

  • Is it possible to transfer Skyblock plugin commands to the proxy server?
  • And is there a way to control and avoid creating multiple islands accidentally?

I’d appreciate any advice or suggestions on how to manage this setup.

drowsy helm
#

Big player count = monetary investments

outer elk
#

i don't think i can make a plugin that is as optimized as the plugins on the market

drowsy helm
#

But to answer your question, no you cant transfer commands to a proxy, it’s a completely different environment.

And if the plugin is coded well it should handle that for you

outer elk
#

can it do something with plugin-messaging-channel?

#

one plugin has its own API

thorn isle
#

Folia should fit perfectly for skyblock since players are always spread out into separate regions

wet breach
#

Folia would work, but it still suffers in some areas

thorn isle
#

And making any given plugin work on folia is much easier than outright sharding your server across like 20 backends

outer elk
#

well ty guys

wet breach
#

in fact sharding is probably the best in regards to skyblock

thorn isle
#

There are still a lot of things to account for

wet breach
#

you can easily have like 10-20 shards per instance

thorn isle
#

E.g. island visitation teleports

wet breach
#

yeah, not hard though and given with the latest updates where mojang made it native to move client connections

#

even more easier

#

really what drags down performance when it comes to a lot of players is one redundancy and two randomness when it comes to tick events

#

you need to reduce the random tick events to be well less random and more orderly

#

so for example, remove all the ticks in regards to plants/crops growing. And set those to predictable times

thorn isle
#

The point is that folia is much easier because it abstracts away all of that cross server state

#

The only changes you need to make are to associate scheduler tasks with locations or entities

wet breach
#

folia's main thing is threading. While more threads does help, it only does so to a certain degree.

#

you need more application instances, which is why sharding would probably outperform here.

thorn isle
#

The main reason we do sharding in minecraft is to thread the main game loop

wet breach
#

I never heard of that

#

I suppose you could do that, but I used sharding because there is only so much a single application instance can feasibly do

thorn isle
#

What other resource do you run out of? Are you going to need more than 128gb of memory?

wet breach
#

well GC becomes an issue as well as some other kinds of logic like the heap memory size. Larger doesn't always mean better here. Application instances are more guaranteed to occupy a single core then some thread from an application is. Also, its a bit more performant in regards to spreading out the resources/using them.

thorn isle
#

Gc is a valid point but with zgc it isn't really an issue

wet breach
#

you can't exactly evenly spread out resources between threads or hard set the resources they can use. You can only really just control the number of them and hope they proportionally use resources lol.