#help-development

1 messages · Page 760 of 1

remote swallow
#

yes

hushed spindle
#

fucking hell just check for getType().isAir() then

timid hedge
hushed spindle
#

or LIGHT ig

vale robin
#

mb

vale robin
vale robin
hushed spindle
#

well how does it not work

#

are you just trying to check if there's a block right under the player

vale robin
#

isAir is returning true when it shouldnt

hushed spindle
#

i recommend picking a smaller distance then

#

like checking 0.1 blocks under the player instead of 1

vale robin
#

alr

remote swallow
#

ur doing the wrong calc

vale robin
#

?

lost matrix
#

You could also ray trace straight downwards

remote swallow
#

use subtract not add

vale robin
#

but negative no?

lost matrix
#

Well. He is adding -1

hushed spindle
#

that doesnt matter

remote swallow
#

wont they reverse it and add 1 instead of subtract or am i not remembering correctly

hushed spindle
#

nah it works with negative numbers too

#

honestly i dont even know why there's a need for both add and subtract since you can just add negative numbers

vale robin
#

yes

#

agreed

vale robin
hushed spindle
#

it depends on the context ingame

#

would need to see the rest of your code

#

like when does this bit run

vale robin
#
@Override
    public void run() {
        if (Main.cooldownHandler.isOnCooldown(jayUUID.toString())) {
            return;
        }

        if (jay != null) {
            if (jay.isSneaking()) {
                final Block block = jay.getLocation().getBlock().getLocation().add(0, -0.5, 0).getBlock();
                if (block.getType().isAir()) {
                    block.setType(Material.PACKED_ICE);
                    new BukkitRunnable() {
                        @Override
                        public void run() {
                            if (!block.getType().equals(Material.PACKED_ICE)) {
                                cancel();
                            }
                            final boolean notOnSameBlock = !jay.getLocation().getBlock().getLocation().add(0, -1, 0).equals(block.getLocation());
                            if (notOnSameBlock && block.getType().equals(Material.PACKED_ICE)) {
                                block.setType(Material.AIR);
                                cancel();
                            }
                        }
                    }.runTaskTimer(Main.plugin, 40L, 10L);
                }
            }
        }
    }
serene sigil
#

hey does anyone know a plugin that turns the whole world (its not a default world, its only 7by7k) into a map that players can look at?

vale robin
#

a bukkitrunnable loops every tick

#

prob a way to improve but yk

serene sigil
#

i guess

river oracle
#

Or like an item map

#

Because I don't think one like that exists

serene sigil
#

oh

#

no i mean an item map

hushed spindle
#

so you're sneaking and then jumping or something?

#

what are you wanting to do here

river oracle
#

Yeah doubt something like that exists

serene sigil
#

and what is dynmap?

hushed spindle
#

basically big world map plugin

#

that you can see in browser

lost matrix
serene sigil
lost matrix
low marlin
#

What action is called in InventoryClickEvent whenever I place a block on the same block in an inventory

vale robin
#

and removes 4 sec later or whatever

hushed spindle
#

did you check if this code is running at all

lost matrix
#

You will have a ton of problems if you just throw this into a single method like that

vale robin
#

normal blocks it didnt place ice

spare hazel
#

how can i apply the patches of spigot to bukkit

hushed spindle
#

have it place ice with no solid blocks under?

#

air?

vale robin
#

i opnly want to make it place ice when there is air

#

nothing else

#

not even a moss

#

or ladder

#

or anything

#

and it detects things like moss as air for some reaosn

hushed spindle
#

and its still replacing those blocks?

spare hazel
vale robin
remote swallow
spare hazel
#

but when i did it on my old laptop it just gave me a folder full of .patch files

remote swallow
#

run buildtools and wait

#

and you will get ur spigot jar

hushed spindle
#

you sure you got nothing else running that might affect that

#

or are building the jar at all

vale robin
#

i am sure

spare hazel
vale robin
#

i am building

remote swallow
vale robin
#

at first I thought it would be because moss hitbloxes are kinda weird

spare hazel
vale robin
#

but it doesnt work on shroomlights too

remote swallow
spare hazel
river oracle
#

?stash

undone axleBOT
river oracle
#

Read the Readme files of spigot and craftbukkit

spare hazel
remote swallow
#

spigot does support bungeecord

#

what do you actually want to add to bukkit

spare hazel
remote swallow
#

that shouldnt be inside the server

#

that should be a plugin

river oracle
#

You don't need to patch thr server to do any of that

spare hazel
#

that way it would be hard

river oracle
#

It'd be just as easy

#

You're going about things the wrong way if it's harder

#

Maybe you should re-examine your design

remote swallow
#

you think hypixel are adding their stuff inside the server? no they use plugins

#

trying to add all of that inside the server is way more work and just wrong to do

river oracle
remote swallow
river oracle
#

But I'd assume they mostly use plugins with custom api

remote swallow
#

well yeah, they probably have custom api stuff but they deffo arent adding the entire system to the server

river oracle
#

Ofc not

inner mulch
#

        Pattern urlPattern = Pattern.compile("https?://\\S+");
        Matcher matcher = urlPattern.matcher(message);
        StringBuilder builder = new StringBuilder(message);

        while(matcher.find()) {

            builder.replace(matcher.start(), matcher.end(), "<hover:show_text:'<gray>Klicke hier um den Link zu öffnen'>"
                    + "<click:open_url:'" + matcher.group() +  "'>" + matcher.group() + "</hover>");
        }
        return builder.toString();
    }```
Does somebody know how I can change the StringBuilder's input to the changed message after 1 cycle of the loop, so that more than 1 link can be properly replaced?
spare hazel
river oracle
river oracle
remote swallow
#

each server has every plugin type

#

they just dont enable them all

spare hazel
remote swallow
#

@echo basalt explain how hypixel stuff works

echo basalt
#

Lol

#

They have server templates ye

#

All their minigames are on a single project because the minigamelib they use is just plain simple

#

I'm not home rn

spare hazel
#

i think im aiming too far

inner mulch
#

        Pattern urlPattern = Pattern.compile("https?://\\S+");
        Matcher matcher = urlPattern.matcher(message);
        StringBuilder builder = new StringBuilder(message);

        while(matcher.find()) {

            builder.replace(matcher.start(), matcher.end(), "<hover:show_text:'<gray>Klicke hier um den Link zu öffnen'>"
                    + "<click:open_url:'" + matcher.group() +  "'>" + matcher.group() + "</hover>");
        }
        return builder.toString();
    }```

Does somebody know how I can change the StringBuilder's input to the changed message after 1 cycle of the loop, so that more than 1 link can be properly replaced?
hazy parrot
#

what

inner mulch
#

message contains link

#

link need replace

#

so link click

#

link doesnt click with code because after 1 cycle old values get used

orchid trout
#

why does it look so bland

#

itnellij supposedto make it vewy colorful and pretty

young knoll
#

IntelliJ is feeling depressed today

hushed scaffold
#

Find a theme that makes it colorful

#

My intellij looks always deppresed

sullen canyon
#

I am not going to.

young knoll
#

Perhaps it should seek some help

sullen canyon
#

Stop forcing me.

hushed scaffold
sullen canyon
thin iris
#

my roman empire is this theme

sullen iris
thin iris
#

its an eclipse themeee

#

ew that theme SUCKS.

sullen iris
sullen iris
hushed spindle
#

i enjoy eclipse theme lol

#

very discernable colors

thin iris
#

gives me motivation

sullen iris
upper hazel
#

when creating a plugin for registering on the server can use the player's ip instead of nickname?

#

or i not can get his ip

young knoll
#

You can

#

But ips change

glad prawn
#

dont let him login if his ip not match

upper hazel
thin iris
#

just use uuids

young knoll
#

Residential routers often have dynamic ips

#

So the average player will not be on the same ip forever

lilac dagger
#

i used to set the ip to always be the same on the given mac

slender elbow
#

MAC randomization :clueless:

thin iris
slender elbow
#

thank you, very insightful

lilac dagger
dry hazel
#

you can pick whether you want your MAC randomized or use the device's MAC when you connect to a network on android, windows or anywhere really

#

it's randomized by default on my pixel even

thin iris
#

how do i pl;ay particles from a note block

upper hazel
lost matrix
upper hazel
#

what this give me? i mean ip can be dinamic

#

so this mean map not need i gess

warm mica
warm mica
lost matrix
# upper hazel what this give me? i mean ip can be dinamic
public class PlayerSessionManager {

  private final Cache<InetSocketAddress, UUID> cachedIps = Caffeine.newBuilder()
      .expireAfterWrite(30, TimeUnit.MINUTES)
      .build();

  // Call this on PlayerQuitEvent
  public void cacheSession(InetSocketAddress address, UUID playerId) {
    Preconditions.checkNotNull(address);
    Preconditions.checkNotNull(playerId);
    cachedIps.put(address, playerId);
  }

  // Check this in AsyncPlayerPreLoginEvent
  public boolean hasActiveSession(InetSocketAddress address, UUID playerId) {
    Preconditions.checkNotNull(address);
    Preconditions.checkNotNull(playerId);
    return Objects.equals(playerId, cachedIps.asMap().get(address));
  }

}

This at least prevents players from having to log in again if they logged out in the last 30 mins.

thin iris
#

omg what Preconditions.checkNotNull is a thing

lost matrix
#

Yeah i like googles Preconditions a bit more than the Apache stuff

thin iris
#

is that just like if (address == null) return;

lost matrix
#

Preconditions is meant for fail fast. It throws an exception.
Often used like this

  public boolean hasActiveSession(InetSocketAddress address, UUID playerId) {
    Preconditions.checkArgument(address != null, "Address cant be null");
    ...
  }

It thows an IllegalArgumentException with this message if address would be null.

young knoll
#

Spigot uses checkArgument a lot

remote swallow
#

we only use checkArg dont we

#

bc checkNotNull throws npe not illegal arg

thin iris
#

whats the point in all these

lost matrix
#

Yeah checkNotNull is more for fast fail checks like this:

  private void someMethod() {
    String aValue = Preconditions.checkNotNull(someOtherMethod());
  }
  
  private String someOtherMethod() {
    return "...";
  }
lost matrix
safe coral
#

Could someone tell me how I can compile my plugin into a Jar file please?

thin iris
#

clean package install maven

remote swallow
lost matrix
remote swallow
young knoll
safe coral
lost matrix
lost matrix
#

Which IDE?

safe coral
#

what is IDE

thin iris
#

integrated development environemnt

safe coral
#

I missed a wagon lmao

remote swallow
safe coral
#

ohh

#

VisualStudioCode

thin iris
#

oh..!

#

jk

orchid gazelle
#

Ouch

#

Literally the worst combo

#

VSC + Gradle

young knoll
#

Hey

#

What about notepad

orchid gazelle
#

Tbh I'd suggest using a proper IDEA + maven tbh

lost matrix
#

Well on that department im out. Never seen VSCode+gradle.
In the terminal you can just run gradle build

orchid gazelle
#

I do not know any Java Dev that uses VSCode for java dev

safe coral
#

oh okay

thin iris
#

intellij ftw

orchid gazelle
thin iris
#

realll

thin iris
#

i made this silly little user info with csv for my art bot

lost matrix
#

I hope you have a good reason to manually glue those components together...

ivory sleet
#

write a pattern that matches an http link 1 or more time (which you can do if you lookup regex classes)

lost matrix
#

Ah i see what hes doing. Detecting links and auto wrapping them

fluid river
#

how to build an app in IntellIJ with maven

ivory sleet
inner mulch
#

i dont think the pattern is the problem

fluid river
#

so it would have manifest.mf

inner mulch
#

its works perfectly with 1 link

ivory sleet
#

It didn’t work with multiple links?

inner mulch
#

look at the message

#

input and output

lost matrix
fluid river
#

what

inner mulch
fluid river
#

i don't

ivory sleet
#

@inner mulch you’ve linked spigotmc main page like 5 times lol

fluid river
#

i just code JavaFX app with SceneBuilder

inner mulch
#

conclube

#

wdym

ivory sleet
#

Oh that’s what you’re matching against?

lost matrix
inner mulch
#

i have a method

#

i put input

#

i get output

#

easy

fluid river
#

IntellIJ -> Create Project -> JavaFX

lost matrix
#

Show your pom then

fluid river
lost matrix
#

Thats cool and all. Now pls show your pom.xml 🙂

fluid river
#

attached as a file

#

it's auto-generated

#

i didn't touch anything

rotund ravine
#

My iphone wants to open that in zoom

ivory sleet
inner mulch
#

why

ivory sleet
#

Or well

#

How you handle it

inner mulch
#

how do i fix it?

lost matrix
fluid river
#

how do i do it

lost matrix
#

The jar will be placed in target/jfx/app

fluid river
#

i just downloaded IDEA to code this project

#

I spent all my life in eclipse

lost matrix
#

Either just write this in the terminal or go to the top right corner and click on the maven icon.
Then either under Lifecycle or under Plugins

fluid river
#

ig i found it yeah

timid hedge
#

Does anyone know why i get 309 project? it is ai mcp project? all my com.google, com.mojang,authlibm org.apache and org.lwjgl imports arent working

fluid river
#

maybe it's javafx no

lost matrix
#

try it

lost matrix
fluid river
#

it knows javafx but doesn't know :jar

timid hedge
lost matrix
#

screenshot all goals in the javafx plugin pls

lost matrix
steel spindle
#

heyo guys, how to change mojang auth server url to my own?

fluid river
#

run and jlink

lost matrix
timid hedge
fluid river
#

jar doesnot exist

#

run just runs the app

timid hedge
lost matrix
# fluid river run just runs the app

Idk... try adding this to your build plugins

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>shade</goal>
            </goals>
            <configuration>
                <shadedArtifactAttached>true</shadedArtifactAttached>
                <transformers>
                    <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                        <mainClass>path.to.your.main.class</mainClass>
                    </transformer>
                </transformers>
            </configuration>
        </execution>
    </executions>
</plugin>

And then run mvn clean package

ivory sleet
#

@inner mulch because you use .group() for all of the iterations

#

You probably wanna declare explicit groups and then you can index them as well

glad prawn
#

What is his problem

fluid river
upper hazel
#

who knows what events in bukkit api to cancel to prohibit interaction with everything in minecraft. Example: setting fire with flint, working with bone meal, trading with a villager

river oracle
river oracle
#

if you want it to work and you're shading it with maven you need to have a second main class

#

a Main and ApplicationLauncher

#

and you must launch it from your main which only launches your ApplicatoinLauncher

fluid river
#

wtf bruh

river oracle
#

alternatively

#

you can do the weird java modules

#

but that can break dependencies

river oracle
#

so be warey

upper hazel
fluid river
river oracle
#

hsa sometihng to do with how JavaFX modules work though

fluid river
#

can you just explain me what should i do

#

i created a new class Main

river oracle
#

do you compile with maven shade?

#

or do you use the JavaFX plugin

fluid river
#

scroll up

#

there is no compile/package/jar stuff in javafx

lost matrix
fluid river
#

only :run and :jlink

#

run works as it should

river oracle
fluid river
#

just runs the app

#

but i cannot compile this shit to jar and run it

river oracle
# fluid river just runs the app

compile with mvn:package (make sure you shade javafx) then set the launch to the new main class (which simply launches your application)

#

your second main class should look like

public class Main {
  public static void main(String[] args){
    Application.launch(ApplicationLauncher.class)
  }
}```
#

or something along those lines

hazy parrot
#

what build system are u using

lost matrix
hazy parrot
#

gl ig lol

timid hedge
lost matrix
timid hedge
#

How should i use a eclipse file in a maven project?

#

I have tried and it dosent work

lost matrix
#

I dont even know what that means. What is an eclipse file?

timid hedge
#

Mcp is for eclipse but you can add it to intellij but only if it is a "normal" project, else it wont work

fluid river
#

IT WORKS

#

BRUH TYSM

lost matrix
ivory sleet
#

@inner mulch do something like (https?://\\S+)

lost matrix
#

I would simply just delete the project and look for something else

ivory sleet
#

then u can take the group with Matcher#group(index)

timid hedge
inner mulch
ivory sleet
#

yea

inner mulch
#

i use the exact thing

rotund ravine
timid hedge
ivory sleet
#

no u should wrap it in paranthesis @inner mulch

timid hedge
ivory sleet
#

because regex in java captures everything thats inside parenthesis

#

with the group functionality as its so called

inner mulch
#

what is parenthesis

hazy parrot
#

()

ivory sleet
#

if I have the following regex
(\\S+)
and I match it against Hello Java !
Matcher#group(1) gives Hello
Matcher#group(2) gives Java
Matcher#group(3) gives !

inner mulch
#

ok but i cannot rely on index

#

every message will be different

ivory sleet
#

yea, but you capture every link as a group

#

and then you just wrap it with the hover and the other click stuff

lofty badge
#

can i make os using only C/C++?

rotund ravine
#

Sure

slender elbow
#

no, you need a linker script and some minimal assembly targeted for the architecture you're writing the code for

lofty badge
slender elbow
#

for bootstrapping

rotund ravine
#

I mean he can probably find some minimal bases that he can just copy

slender elbow
#

sure, but at that point it isn't only c/c++ anymore

lost matrix
slender elbow
#

???

#

you still need to bootstrap into the kernel

#

give it a fixed address, set up stack sizes etc etc

lofty badge
#

what do I need to write a kernel?

slender elbow
#

time and pain tolerance

rotund ravine
#

A proper suicidal avoidance plan

lofty badge
#

I know how to make a simple 64-bit program that works when loaded from a flash drive, but I don’t know how to combine C++ and assembler

lost matrix
slender elbow
#

literally just matcher.replaceAll(match -> "whatever " + match.group())

lost matrix
inner mulch
slender elbow
#
jshell> var pattern = Pattern.compile("https?://\\S+")
pattern ==> https?://\S+

jshell> pattern.matcher("hello https://www.google.com/ world https://youtube.com/").replaceAll(matchResult -> "(cool link " + matchResult.group() + ')')
$4 ==> "hello (cool link https://www.google.com/) world (cool link https://youtube.com/)"
slender elbow
lost matrix
#

I thought the bootloader loads any OS into memory. Was it part of the OS itself?

slender elbow
#

it loads a kernel

#

os is the greater picture, kernel + bootloader + maybe device drivers etc etc

lost matrix
#

Dont remember. Really didnt care when i learned this...

slender elbow
#

i can sympathise lmao

lofty badge
#

How much will performance drop if my OS only has one driver?

slender elbow
#

uh that isn't really an answerable question

lost matrix
#

But sounds like this is right. So BIOS loads bootloader, bootloader loads OS kernerl, then kernel takes over

ivory sleet
inner mulch
#

what does this tell me?

lost matrix
#

That you are using some old ass java version to compile

inner mulch
#

im using jdk21

#

at least i think

lost matrix
#

Project is set to 8

ivory sleet
#

^, prob wna fix the language level

lost matrix
#

File > ProjectStructure > Language level

inner mulch
#

thanks

#

i alr got this?

#

why error

lost matrix
#

Make sure source and target of your maven project are set to 21 as well

lofty badge
#

guys

lofty badge
lost matrix
#

weird flex but ok

lofty badge
#

all my os code:

default rel```
#

lol

#

i'm serious

#

who can really help me with this project?..

river oracle
#

what are you even trying to do

slender elbow
#

i mean, if you're expecting someone to hold your hand through it, it's unlikely you're gonna find anyone

river oracle
#

if its super duper simple I might beable to help

#

but my knowledge of assembly is well very limited

lofty badge
slender elbow
#

there are tons of resources out there about this stuff, there was a uh an MIT project that was like a very minimal OS, more so for showcasing and learning

river oracle
#

I can pretty much only add numbers and print them :P

#

and take user input CH_CatSadThumb

slender elbow
#

as for calling C code from assembly, in your assembly file you define an external symbol, something like start_, then in your C/C++ you define start_ as a function (in C++ you need to extern "C" it cuz name mangling goes brrr) and then you just uh call it and link it together with the linker

lofty badge
#

guys

#

mb i can write 16-bit bootloader, who changes cpu type to 32/64 bit?

slender elbow
#

huh

covert valve
#

although from what i hear 64 bit is a bit of a faff

covert valve
#

i have no idea

river oracle
#

My professor wants us to write an O(log n) method for checking if data is sorted in a ascending or descending order. How can I make my algorithm preform worse

    public static int checkSortOrder(int[] arr) {
        int left = 0;
        int right = arr.length - 1;
        int mid = (left + right) / 2;
        System.out.printf("Left: %d Mid: %d Right: %d%n", left, mid, right);
        if (arr[left] < arr[mid] || arr[mid] < arr[right]) {
            return 1; // sorted in ascending
        } else if (arr[left] > arr[mid] || arr[mid] > arr[right]) {
            return 0; // sorted in descending
        } else {
            return -1; // all same number
        }
    }``` I don't know if there is any form of sorted data that could defeat this logic
I made about 3 runs through randomly generated arrays of varying orders with a statement which caused a failure of the code if this failed, however it didn't over around 100,000,000 trials.
#

I need to use a while loop ik that much but 🤔 eliminate half the array over time seems unecessary for this tbh

#

well I'll just hope nothing like this is on the exam idk if I can think of a way to do it worse idk if that's for the better or worse

lofty badge
#

ok guys

#

i need install EFI Development Kit II

#

What i need to do?

tardy delta
river oracle
#

if you're developing an OS test it in a VM

#

so you don't brick your system

smoky oak
#

how come maven can overwrite a file allegedly open in the jvm but copy paste cant lol

river oracle
#

maven doesn't give a shit™️

smoky oak
#

can i put that on my cursor

river oracle
#

depends on your OS

smoky oak
#

windows so probably not

river oracle
#

if you're using windows they baby you so you can't do stuff

smoky oak
#

im using windows cuz half of the games i play dont run on anything else

river oracle
#

oof

#

99% of my games run on linux

#

so I gave up the 1% cuz idaf

shadow night
#

I play minecraft

river oracle
#

I even got genshin working on linux when I played it a year back

fluid river
#

i play pokemon goooo

shadow night
smoky oak
#

ah f.... anyone know how to deal with this?
Caused by: java.lang.NoSuchMethodError: 'double io.github.moterius.Reach.PlayerHandler.getReach(org.bukkit.entity.Player)'

return ""+ io.github.moterius.Reach.Echo.getHandler().getReach(online);

The decompiler says the method exists
(this is in a PAPI extension btw, i ran 'install' on the plugin providing the method)
(yes the plugin is active on the server)

lost matrix
#

bc if i hear "sorted" and "Olog(n)" then the first thing that comes to my mind is a binary search

river oracle
#

fairly easy fix once I understood the question lol it was written quite strangely

smoky oak
#

bleh i got nothing. the source + decompiled code says the method exists, so it wasnt optimized out. I also restarted my server, the error's still persisting

#

wtf java

dry hazel
#

are you sure that you're checking the right jar?

smoky oak
#

yes

#

its only that and PAPI there

#

wait tf

#

right i changed the denominator, ill fix that

#

brb

#

yup im just a idiot, didnt replace the old plugin, and it hit the wrong version

smoky oak
# sterile token 💀

see i thought i was smart naming it -dev to not get 10000 versions in the .m2 folder but i forgot i dont manually copy it so i had 2 versions and it loaded the old one 💀

sterile token
#

why dont you directly auto export it to plugins folder? It dont let type of issues happen

smoky oak
#

thats exacly what im doing and why that happened mate

sterile token
#

??

#

Thats imposible, because maven overrides the jar automatically

smoky oak
#

i dont change it from the default snapshot name until i run install

#

so it had the -snapshot name

#

and it put the -dev next to it

sterile token
#

oh but why??

#

if it works leave it like that 😂

smoky oak
#

cuz i dont want a full .m2 folder

sterile token
smoky oak
#

get out u linux user lol

sterile token
#

haha linux >> 😂

chrome beacon
#

You can just use git bash or smth on windows

sterile token
#

Last time i deleted full OS without realizing using the rm -r 💀

chrome beacon
#

There is protection for that? It should preserve root by default

sterile token
#

i was working on a VM with fully perms

rotund ravine
#

Should still preserve root

inner mulch
#

how can i save 2 values under 1 configurationsection in a yaml file?

young knoll
#

set(“my section.a”, 1)
set(“my section.b”, 2)

#

Or do you want a list

inner mulch
#

chatData.getConfig().getConfigurationSection("support").createSection(player.getName()).set("seefiltered", false);```

but i always is the lower one?
young knoll
#

Yeah because you create a new section both times

#

The second time it overwrites the first one

inner mulch
#

thx

restive abyss
river oracle
#

of course

#

PDC is a spigot API

restive abyss
#

Yippe thanks

river oracle
#

you could also check out

#

?morepdc

undone axleBOT
young knoll
#

Everyone loves more pdc but what about lesspdc

fluid river
#

only string type

young knoll
#

Nah

#

Only byte[]

fluid river
#

😭

remote swallow
#

only byte

fluid river
#

well byte[] can be conveted to string of english alphabet and numbers

#

so ez

fluid river
#

the key would be string at least

young knoll
#

byte[] can in theory store everything

fluid river
#

yeah

#

1 byte can store something

#

ig if i put a lot of keys i can store entire itemstack with all nbt, pdc and enchantments

#

if i map each nbt tag to a byte number

#

and each enchantment

#

but that would require like 9999 keys ig

young knoll
#

Ah yes use the keys for storage

fluid river
#

other way you can eat all 256 keys in your plugin

#

and it would be incompatible with other plugins

sterile token
wooden hearth
#

Would it be wired to add some games like coinflip into a server core?

slender elbow
river oracle
wooden hearth
river oracle
#

its a joke lmao

wooden hearth
#

Ah okay lol

sterile token
dry hazel
slender elbow
#

give

#

🔪

young knoll
#

Videos are just a series of images

#

Images are just a bunch of bytes

wooden hearth
#

And Images are loads of Pixels

sterile token
#

dont ask me how they did that but thats amazing

young knoll
#

Doesn’t seem that hard

#

Stream the frames to the server

#

Convert each pixel to a rgb color and apply it to a Unicode symbol that looks like a square

#

Slap them on a text display

remote swallow
#

video display when

slender elbow
sterile token
young knoll
#

I feel you may run into NBT size limits at that point

#

But in theory yes

slender elbow
#

can i store Coll1234567

remote swallow
#

no

#

the name is way too big

sterile token
remote swallow
#

it was sarcasm

sterile token
torn oyster
#

is there a way to disable autocomplete for commands players don't have permission to use?

#

ideally wanna hide what plugins I have on the server

young knoll
#

If they don't have the perm they shouldn't be able to see the command at all

torn oyster
#

i've already managed to hide colon commands

young knoll
torn oyster
#

well worldedit, tebex, luckperms, placeholderapi all show in autocomplete

young knoll
#

Yeah I don't think they properly assigned perms to their commands

#

sadly

slender elbow
#

commands that don't have a permission will show up, since there is no permission to deny

young knoll
#

^

#

They probably do a manual perm check in the code

#

Which spigot can't automagically detect

slender elbow
#

it really just depends

remote swallow
sullen marlin
#

Because the code would need to be turing complete and impossibly advanced lol

worldly ingot
#

Sounds like excuses to me

slender elbow
#

yeah like

#

we have commodore

#

just stick it in there or smth

sterile token
#

recomemnds command apis please! If i can link to the site perfect if not just their names. thanks

worldly ingot
sterile token
#

i finally get tired of trying creating my own you were with the truth when i asked some weeks again

lilac dagger
#

disable tab for command roots?

#

it sounds like something a plugin could do

sterile token
#

what? i could cach fr33

sterile token
lilac dagger
#

it's like on tabcomplete if command equalsignore something

#

setcancelled true?

sterile token
#

oh okay

#

what you trying to do?

lilac dagger
#

for this

#

just let the user disable commands in the config

#

and and event

#

not sure btw who started this conv

#

i just peaked randomly

sterile token
#

oh okay, they can just check if the !Player#isOP(), if not returns the command completation

arctic moth
#

are there no nms mappings that cover functions

lilac dagger
sterile token
#

So no option as you said rather than a disabling list

#

Im sure spigot already provides that, doesnt it?

lilac dagger
#

yeah

#

it's an event i think

sterile token
#

yes

lilac dagger
#

yup

sterile token
#

Yeah

#

that one i wasnt s owrong haha

lilac dagger
#

sounds like 5 minute work

#

and then 15 to set it up

sterile token
#

have worked before with recursive commands?

lilac dagger
#

in what sense?

sterile token
#

now that we talking about commands and completationms haha

lilac dagger
#

a command has a root, and if we disable the root so does the whole tree will fall

sterile token
lilac dagger
#

well, you can have multi arg black list

sterile token
#

no no i mean, how would be the logic for the tree

lilac dagger
#

something like

  • command test * *
sterile token
#

im wondering to know how to design correctly the logical part for the tree

#

Let me translate to my lang if meakes sense what trying yo to say

slender elbow
sterile token
lilac dagger
#

there goes the idea

#

so the list is sent on join

#

shouldn't there be another event for this?

#

PlayerCommandSendEvent

#

i think?

young knoll
#

mhm

sterile token
#

Can you give me recommendations when making a command system in tree format? Since I don't know how to handle correctly the parents of the parents, that is to say how to know which is the root of the tree (initial command), do you understand?

#

lmao my messages changes a lot using the translator they even make more sense to myself when re-reading

lilac dagger
#

CommandNode and CommandLeaf

#

node being the path leaf being the arguments

sterile token
#

hmn

#

i have 2 classes the SingleCommand and ParentCommand, both of them contains a getParent() method which will returns their parent

#

The problem is that i get into an infinite loop of getParent() method 🤔

lilac dagger
#

yeah well, don't link nodes between each other in circles

sterile token
#

how?

#

Im not linking them like circles

lilac dagger
#

then you should reach null at a point

sterile token
#

im talking about trees not binary trees. Because binary trees ends in a circle of things

#

If that what you mean

lilac dagger
#

well, but there's one way you can get infinite loops

sterile token
#

im getting an infinite loop causing a overflow exception

lilac dagger
#

then your recursion has loops

#

you can see the lines that loop

sterile token
#

I just created this structure

lilac dagger
#

in the stack trace

hazy parrot
#

Binary tree should not end in loop lol

sterile token
lilac dagger
#

trees usually only grow in 1 direction

#

i don't know trees irl that loop on themselves

sterile token
#

this binary tree

#

They can link any node from any node, to the tree start

#

but forgot about that, because im not doing that

#

Im just trying to fix my issue related to getting the parent of the command/argument or sub command

lilac dagger
#

i have a different image when i think of binary trees

#

like what TreeMap has

sterile token
#

yeah just forgot

#

I have this structure fr33

#

SingleCommand -> they work as spigot one, they can/not contain explicit arguments
ParentCommand -> they act as an executor, where they can contain others ParentCommand or SingleCommand. Arguments here are implicit

faction - ParentCommand
faction list - SingleCommand

/faction points - ParentCommand
/faction points add <player> <amount> - SingleCommand

#

The problem is the next, how would i know in the ParentCommand parser if its a sub-command of a sub-command of a sub-command, creating an infinite loop

#

Because my idea is to show the help list in a progressive way, that is to say if the initial command is /faction, I would only show the names of the arguments associated to it, in this way:

/faction list
/faction points

pd: If you notice, nowhere I show the associations of the sub command points. Only in case of executing /faction points it would show all the names of the associated arguments. Do you understand?

lilac dagger
#

i think there's a design issue here

sterile token
#

right, can you mention it im free to listen

#

I just want to fix it hehe but ofc improvee my design

#

sorry if it sound rude

lilac dagger
#

because you treat commands as parent and single command, instead you could think about it as:

/root node1 node2 arg1 arg2

sterile token
#

right, thats a better naming

#

But the idea is similar to mine

lilac dagger
#

you need 2 classes here

sterile token
#

Right, do you have more recommendations

lilac dagger
#

command node and a command executor

sterile token
#

yeah what i did, where my SingleCommand was the normal executor

lilac dagger
#

i mean but you still loop

#

so i don't think it's the same

sterile token
#

hmn

#

wait

#

My SingleCommand is just a normal command, which dont have any executor

But on the other hand, ParentCommand is an executor which can associate more executors or SingleCommand

#

Because SingleCommand means a single node applying to what you expalin me

lilac dagger
#

i don't know, just look some of the command frameworks

sterile token
#

oh, no man i cant understand them

#

They are too messy they contain thousens of classes

#

I take the design idea from Luckperms

lilac dagger
#

well, i also don't feel like we can invent a command framework at 1 am

#

(for me)

sterile token
#

oh right that totally true, sorry man

#

Just sleep well, cyao later 💪

lilac dagger
#

thank you 👍

#

i hope you figure it out

opal carbon
#

is /summon not triggering an entityspawnevent for non living entities intended behaviour?

young knoll
#

Doesn’t seem like it

wooden hearth
#

What’s people working on I’m bored haha

slender elbow
#

I'm making empanadas

wooden hearth
#

What dose that dk

#

Do

opal carbon
#

its food

young knoll
#

I thought it was a panda equipped with an EMP weapon

wooden hearth
#

Ah 😂😂

quiet ice
#

I'm writing an IRC daemon - or at least trying to. My mind wanders in all directions sadly

wooden hearth
quiet ice
#

There used to be a time when I used to be productive and have no music in the background... But that was only because I had like 8 hours of free time a day

quaint mantle
#

Why does the browser just close as soon as it visits the web page if I change it to google.com it doesn't ```py
def sign_in():
chrome_driver_path = 'settings/chromedriver'

service = Service(chrome_driver_path)

driver = webdriver.Chrome(service=service)

driver.get('https://login.live.com/')

email_input = driver.find_element(By.NAME, 'loginfmt')
email_input.send_keys('test@test.com' + Keys.RETURN)

driver.quit()
quiet ice
#

Are you sure this is the right discord to ask this question?

#

Inb4 this is groovy or something

quaint mantle
rotund ravine
#

You can change findelement

#

To try for like 5 seconds or whatever

wet breach
#

It quits because it has determined you to be a bot. Google is not allowed to stop crawling bots hence google works since they can never be too sure on what bot you are employing

#

You need to set the headers appropriately if you want it to not be so obvious

quaint mantle
rotund ravine
quaint mantle
rotund ravine
#

What happens if u remove driver.quit?

wet breach
#

Well i would need to go back and read documentation to be certain since it changes every so often

rotund ravine
quaint mantle
#

still closes

wet breach
#

But i am pretty sure its microsofts anti bot stuff kicking in

rotund ravine
#

Alright then probably ^

quaint mantle
#

bruh

#

why is microsoft like this

wet breach
#

My work uses microsoft services lol

#

And its annoying even if you are not a bot

#

Almost got locked out of my work account because of it

#

If you are making an app to login

#

Why are you not using their api?

#

Bet the captcha is what is catching you lol

quaint mantle
wet breach
#

And what is it you are doing that makes that impossible?

quaint mantle
#

adding a credit card to the account

wet breach
#

You can do that with api access

quaint mantle
#

how

#

I saw nothing on their documentation

wet breach
#

Its no different then giving access to apps on some other sites. First you need to apply for a developer access

#

And then from the user account allow said app access

quaint mantle
#

oh that's too much work

ancient plank
#

mfw

wet breach
#

Well that is security for you lmao

quaint mantle
#

how so

ancient plank
#

Wouwd wathew make a cwawing bot den deaw wif a simpwe API access fing

wet breach
#

To prevent rogue apps from doing whatever they want

quaint mantle
#

meh

#

I dont get paid enough

wet breach
#

Well good luck then. The way you are going about it is almost impossible to do otherwise

#

Because that portion of the account is more secure then just getting profile information for example

quaint mantle
#

Should the sleep time always be the same or does it not matter?

short shale
#

Hello folks, I'm working on a project that uses NMS code, and during the mapping, all versions from 1_8_R1 to 1_16_R3 worked perfectly. However, when I got to version 1_17_R1 and later, the code started giving a strange error. I've tried resolving it by invalidating caches, restarting IntelliJ, recompiling BuildTools, deleting obsolete versions in repositories, and various other methods, but none have worked. The error literally consists of a cannot access net.minecraft.EnumChatFormat when I try to compile the project using mvn package, and it's not just with the EnumChatFormat class; it happens with all NMS imports from the respective version. Could some kind soul help me with this? (It uses mapping module system)

#

I tried importing the class directly in the code as net.minecraft.EnumChatFormat, and it worked. However, as soon as I did this with all the necessary imports, the error returned.

#

i'm not using <classifier>remapped-mojang</classifier>

fluid river
slender elbow
#

?nms

short shale
#

Thank you from the bottom of my heart regardless of whether it works or not ❤️

quaint mantle
wet breach
#

Its probably a javascript

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

quaint mantle
rotund ravine
quaint mantle
#

no

wet breach
#

Do note there is the potential of you getting banned too

#

Not sure why you need a bot for this but it seems nefarious

summer scroll
#

Anyone know what is this sound called?
https://www.youtube.com/watch?v=Jxwg708kAzI

In this video I provide you with Minecraft Rare Achievement Sound Effect. So, if you want to use Minecraft Rare Achievement SFX, then this video is for you (these sounds are the ones currently being used in Java, Bedrock and Pocket edition in Minecraft).

If you found this useful, then make sure you leave a like and comment! Also, don't forget ...

▶ Play video
quaint mantle
#

tbh idk where the js is being loaded

#

wait

#

its an iframe i think

#

nvm its a modal

#

its so weird

#

it hovers over the button just can't click it

wet breach
# quaint mantle why? It aint a bot its me

You are making a program to do something on your behalf. That is a bot. I cant think of a good reason why you need a program to add a credit card to your account unless you were doing something nefarious

#

So have fun i suppose lol

quaint mantle
#

im doing nothing illegal

wet breach
#

As far as you say and we know. But that reply right there indicates otherwise.

quaint mantle
#

I mean your stating that I'm doing something "illegal" with the word nefarious

wet breach
#

As i said, there is no good reason to need a program for adding a credit card to an account you have access to when you can just log in and add it. Not like its overly difficult to do such things.

quaint mantle
#

Why wouldn't I defend myself when your accusing me of something?

wet breach
quaint mantle
#

it also means criminal

wet breach
#

No it doesnt

quaint mantle
#

yes it does

#

Your saying that I'm doing some "illegal"

wet breach
#

I never said that you did. But it wouldnt surprise me if you were.

slender elbow
#

nefarious does not mean against the law lmao

#

wtf

wet breach
#

To be fair the alternative definition of nefarious is wicked or criminal. But it really just means another way of saying bad and not necessarily criminal lol

#

Just in terms of context easier to apply criminality to it i suppose

quaint mantle
#

This just annoys me that it's just hovering over it

wet breach
#

But as it stands i still cant think of a logical good reason you need a program to add a credit card to your account. What i think you might be doing in my opinion is devising a way to swap out credit cards as you come across them without needing to log into your account to do it. In other words to speed up efficiency on that end.

#

Not all of us here have a sainthood background you know lol. Something to be aware about. But i would love to here your good reason for needing such a thing.

quaint mantle
#

So you know how xbox has a limit spending then they block your card from being used again

wet breach
#

They have a limit on spending?

quaint mantle
#

yes

#

What im doing is everytime my card gets blocked i swap it out with my other one so I can still buy stuff while other one is buying unblocked

wet breach
#

Never heard of such things. I spent literal thousands with microsoft and they never said they didnt want my money

quaint mantle
#

They put it under "suspicious activity" when you spend so much in certain amount of time

wet breach
#

Are you not verified with them?

quaint mantle
#

You can get verified with them?

wet breach
#

Sure. You just call them up and may or may not need to send in ID

quaint mantle
#

oh

wet breach
#

Depends what they want. But this proves to them you do in fact own the account ie they can associate it with an actual person

#

And it should remove most if not all the limits lol

#

I think these days microsoft also requires 2fa

quaint mantle
#

ah they have been blocking my cards for the past month

#

it takes about 48 hours for it to get unblocked

wet breach
#

I encountered something similar years ago with sony until i verified who i was with them

#

Never had an issue since

quaint mantle
#

Hence why Im making this

remote swallow
#

how much money do you have to spend at microsoft stuff

quaint mantle
remote swallow
#

why

quaint mantle
#

So I can buy stuff

wet breach
#

Because its fun

#

I cant really say anything because i spend a lot on games too

#

Lmao

remote swallow
#

yeah but why

#

if you get ur cards blocked that much

#

calm down

wet breach
#

I have a ps5 and 4 ps4's

quaint mantle
wet breach
#

Well i do feel better about your reasoning. Not as nefarious as i assumed lmao

quaint mantle
#

🤷

#

The worst part is that it's the last part before adding the card then its completed

wet breach
#

Well just know we do get people in here who try to get help in doing criminal stuff

#

Not that i was saying you were just wasnt entirely sure lol

quaint mantle
#

your good

wet breach
#

Not entirely sure if you can automate the process by just sinply loading the page

#

Might need to send it via headers or a get

quaint mantle
#

Don't think its possible via headers

#

I've already to got it to enter the card details its just the add card button

wet breach
#

Couls just make a macro for the mouse

quaint mantle
#

How would that work with page loading?

wet breach
#

So last step is activate macro for the mouse to move and click lmao

remote swallow
#

a lot of macro things allow to open webpage

rotund ravine
#

Autohotkey is easy to use

quaint mantle
#

hm

remote swallow
#

just watched someone get an awp to the face

rotund ravine
remote swallow
#

nah in cs

rotund ravine
#

Kk

quaint mantle
#

Iframe then a new html tag

#

which is prob why it can't find it

wet breach
#

Iframes can be a pain, but iframes i believe count as a new window an inline one

halcyon hemlock
#

Oh nice, I've done till that. I've just gotten into the play stuff. You can join the server, but no chunks, no nothing. Just join server and fall down infinitely with a steve skin 😂

halcyon hemlock
wet breach
#

Not me

quaint mantle
#

I was really was hopping this would work but didn't ```py
main_window = browser.current_window_handle
for window_handle in browser.window_handles:
if window_handle != main_window:
browser.switch_to.window(window_handle)

next_button = browser.find_element(By.CLASS_NAME, 'primary--DXmYtnzQ')
next_button.click()

browser.switch_to.window(main_window)
halcyon hemlock
#

is that

#

is that

#

the

#

snake

#

python

#

thing

quaint mantle
#

huh

halcyon hemlock
#

is that pythonn

remote swallow
#

thats js

#

i think

quaint mantle
#

no python

halcyon hemlock
#

you can't put : in js

rotund ravine
quaint mantle
#

OMG

#

wait

#

i just

#

got it I think

halcyon hemlock
#

what are you even doing

#

I know everything

#

except I don't know everything

quaint mantle
#

Also I put $250 on Mav winning and they ain't 😭 Spurs are winning rn by 5 points

#

I DID IT

#

OMG

#

NO way

echo basalt
#

something tells me bro was trying to grab leaked cards and add them to his microsoft acc

rotund ravine
#

Meh

quaint mantle
#

why would I use leaked cards?

echo basalt
#

credit card fraud innit

opal carbon
#

and why automate that

quaint mantle
#

scroll up

#

i explained it

opal carbon
#

no

#

im saying why automate adding the card if it was fraud

halcyon hemlock
#

Why would you want to steal cards when you can just steal the accounts?

#

Think bigger

opal carbon
#

REAL

halcyon hemlock
#

<troll emoji>

wet breach
rotund ravine
#

Frostalf an accomplish in credit card fraud totally

#

Jkjk

halcyon hemlock
echo basalt
#

or you can just like

wet breach
#

They have two cc's they switch between because microsofts anti theft system kicks in for them and locks one card temporarily so they switch to their other until then

echo basalt
#

buy a bunch of gift cards and topup your account

#

and have a buffer

halcyon hemlock
#

wut

wet breach
quaint mantle
#

I have 4 credit cards

#

no duo

rotund ravine
halcyon hemlock
rotund ravine
#

I only got debit cards

halcyon hemlock
#

for in definitive time

echo basalt
#

I have like 2 debit cards I think

quaint mantle
halcyon hemlock
#

But debit cards, you can only use for the money you have, no?

halcyon hemlock
#

Credit cards can put you in debt but you can spend money

echo basalt
#

but if you're using the money you don't have like

rotund ravine
#

I probably gotta graduate before they’ll approve credit cards here

echo basalt
#

wtf are you doing

wet breach
quaint mantle
#

Think of a credit card as unlimited money glitch

halcyon hemlock
rotund ravine
halcyon hemlock
quaint mantle
#

Says who

halcyon hemlock
#

Just get a debt for 100 years

quaint mantle
#

No one is stopping you

halcyon hemlock
#

and fucking die before it expires

#

(in game ofc)

wet breach
#

Didnt take no 100 years either

echo basalt
#

avg frostalf moment

#

dude spawns money out of nowhere

wet breach
#

The world operates on debt

#

Learn to use it and you are basically rich

halcyon hemlock
#

Perks of being Muslim: No interest

wet breach
#

$10k was from an old car loan that the bank seemed to think i still owed for whatever reason. And the rest were credit cards and some other things. Over half the debt couldnt be paid anyways because some of the businesses no longer existed

#

And then after 4 years of having the debt i cleared it out in 30 days and its like it never existed uwu

halcyon hemlock
#

ayo

#

I only have 100$

#

I can't even go into debt

#

I don't have to pay for anything cause I'm a child

#

So cool

rotund ravine
#

Gj

wet breach
#

In texas and cali credit card companies have 5 years to collect on debt. If they failed to collect after this time they cant get a judgement but they can still put it on your credit report. Loans and mortgages have 7 years.

rotund ravine
#

Isn’t the statue of limitations on crimes 5 years too?

#

Heard that somewhere

#

Bankrobberies go hard if u get the right stuff

wet breach
#

Depends on the crime. Typically your misdemeanor crimes will have this

#

However the more serious crimes like murder do not

#

Also while statue of limitations do exist it only means you cant be punished. Doesnt mean you cant still be charged for it and get a judgement

#

Judgement is basically just the judge declaring what you did was in fact wrong or illegal and it is public information. It also counts as a conviction since the law doesnt say convictions must include punishment

#

The exception to that is federal court as convictions have mandatory minimums

echo basalt
#

mailchimp charged my ass 50$ and my gym payment bounced because of that :(

wet breach
#

Lol

echo basalt
#

wasn't expecting it

#

just saw a 50$ authorization at my bank and was like wtf

quaint mantle
#

Did you not sign up for it?

wet breach
#

Just remember that just because you are signed up for a service doesnt mean the service can take payments out when they feel like it. It is still considered fraud if they do it too early or too late

echo basalt
#

bossman will reimburse me

#

like tomorrow

wet breach
#

They are also not allowed to double the charge the following month either if they forgot lol

wet breach
echo basalt
#

money will be ever so slightly tight next week though as I gotta pay for the hotel

#

for the tech conference

wet breach
#

Just tell them to put it on your tab 😉

echo basalt
#

so first they give me free tickets and then they give me free accomodation lmao no

wet breach
#

Lol yeah they would think you were insane

solar mortar
#

Question, I have a core class that defines what my admin features do, do I need to create another class to handle commands for said admin features or can i code them all in the same class?

rotund ravine
#

Oh my goodness, what on earth is this utterly non-dev related discussion doing in this channel?! 🚫🕵️‍♂️ This is the CHANNEL POLICE speaking 📣🚔, everyone, kindly redirect your attention to the #general area! 🏞️🚀

#

Jkjk

echo basalt
remote swallow
#

janathon tuckuth has joined the pink gang

rotund ravine
#

Yesyes

#

I was jealous

#

So i clicked the button

wet breach
#

Lol

river oracle
rotund ravine
#

Huh

#

Where

river oracle
#

Aren't you a developer or something

rotund ravine
#

Oh the pic?

#

Sometimes

#

More of a student atm

river oracle
#

And the colors when you click on it

rotund ravine
#

In another field

river oracle
#

What why is it so bright for me

#

Mobile jank maybe

remote swallow
#

ur just bad

ancient plank
#

Meow