#development

1 messages · Page 4 of 1

median rock
#

They only support sql for storing config :kekw:

dense drift
#

wait what

#

it uses papi placeholders

median rock
#

Yea, which means you could only display the leaderboard on the ssrver that actually has the stats

dense drift
#

ah so that's what you meant

errant kraken
#

hello, is there a library I could use to evaluate math functions in a string, but replace the operation with the result and keep the rest of the string? something like this: "Hello 2+4*2" -> "Hello 10"

dense drift
errant kraken
#

hmm ok thanks

obsidian sonnet
#
    private final Set<Toml> config;

    public config() {
        config = Set.of(RandomThings.getPlugin().getTomlConfig());
    }``` 

Two errors are popping up, one saying that variable config hasn't been initialized and another saying that a return type is needed for the public config portion. Do I do what it is suggesting and put void in between public and config?
#

nvm im big dumb

high edge
#

Did you figure it out?

obsidian sonnet
#

Indeed but i ran into another issue

#

So the original code i had that was working is on here https://github.com/Williambriggs1/RandomThings

https://pastebin.com/ZPEGYRgN thats my new blockbreak file-
i also removed the [botany] in config file but
it is rough my local host keeps like not responding when i break blocks tbh my old code had no lag even when i spam broke grass in plains-

I was told that the original code was servr intesive so to try and put it into like a set or something when the event was called. but now it continues to throw thread dumps and the server cant keep up from breaking a singular block-

viral moth
#

what is your end goal? like what do you want your code to do?

obsidian sonnet
#

Okay so the original in GitHub works- give me a sec to write it out explaining it.

viral moth
#

because a lot of stuff youre doing is unnecessary

obsidian sonnet
#

Pretty new- what seems to be unnecessary in the GitHub one?

viral moth
#

"_" + event.getBlock().getType().toString().toUpperCase()) the enum is already capital and the toString method is invoked since youre concatenating it with the "_" string

mental cypress
#

You don't need to create a reference to the config each time a block is broken. Just store it as a class variable instead of a method variable unless you do actually have to grab something new each time.

viral moth
#

^ the reason i asked if you were new or not is because you arent really caching data, i would highly recommend watching like a 10-15min video explaining the concept of caching in java on youtube or something

quaint skiff
obsidian sonnet
west socket
#

Anyone with SQL experience know if its possible to select all columns as parameters when inserting?

#

I have a table with like 50+ columns and I'm trying to avoid typing out all of their names in the SQL statement

sterile hinge
#

Sounds like a table design issue tbh

west socket
#

True

#

But to be clear, theres no way around typing out all those params?

sterile hinge
#

None that I‘m aware of

west socket
#

Alright thank you

copper yew
#

Hi everyone, I just started java yesterday and I wrote a command to rename items and I want this command to automatically add lore with a player's nickname, like a signature, I used an example from github, but I didn't understand what I need to add in PlaceholderAPI.setPlaceholders(), it must be very simple question, but as I said, I just started doing this yesterday, I would greatly appreciate your help

ArrayList<String> lore = new ArrayList<String>(); String loretext = "Sign by %player_name%"; loretext = PlaceholderAPI.setPlaceholders(idk); lore.add(loretext); itemMeta.setLore(lore);

copper yew
#

what should i put instead of idk in line 3?

sterile hinge
#

the player and the text containing the placeholders

deep cradle
#

Hi

merry knoll
#

it will tell you what parameters it expects

edgy lintel
#

also just hover over the method as aki said
it will tell you the data type you need to fill in

#

is world#unloadChunk async or sync?

copper yew
sterile hinge
edgy lintel
merry knoll
#

i would check what thread it runs on on load / unload events

errant kraken
#

Hello, how would I go about making some classes invisible to other projects that use my project as a dependency? I want to create an API for my plugin, but I also want it to be the only accessible code

dense drift
#

package private classes, but that will probably not help you a lot, and if you are using uh java 9+ (?) you can specify which modules are exposed

sterile hinge
#

there are several ways on different levels, e.g. modularize it on the project level, use Java 9 modules, use non-public classes

edgy lintel
spiral prairie
#

extremely stupid question, if i pass a list from class A into class B via constructor, and edit the list in class A, the list variable in class B doesnt get updated, does it?

merry knoll
#

it does

#

its the same instance of the list

spiral prairie
#

okay perfect

#

got a little confused during an argument with my friend yesterday kekwhyper

edgy lintel
#

java does this by copying pointers (a variable that stores the location of variable)

spiral prairie
#

ye

edgy lintel
#

so yeah

spiral prairie
#

i remember C++, was kinda fun and kinda pain

edgy lintel
#

cpp is pure fun

#

the pattern got me amazed

#

all the syntax got me hyped

spiral prairie
#

it probably is fun, i just dont use it on a daily basis

edgy lintel
#

yeah its just hard to use tho

#

there isnt a lot of good cpp libraries out there

#

even qt i think its a bad library

#

but java libraries are all so clean for some reasons

#

like they are properly organized

#

because of the java packaging hirerachy and stuffs

#

and explicit oop

#

everything is made clear

spiral prairie
#

yep

#

whatever, fuck cpp

#

lets write assembly rest api

#

im wondering

#

how many septillions of lines of code would be needed to to sql queries?

#

in assembly

icy shadow
#

many

#

at least 3

lyric gyro
#

you think so?

sterile hinge
#

pretty sure x86 has an instruction for that

lyric gyro
#

yeah

obsidian sonnet
spiral prairie
leaden sinew
#

Hey, I'm using React and I'm trying to figure out how to add children to a React.Component.

I'm trying this:

https://paste.developerden.net/ivubuxenum.javascript

But it says index.js:89 Uncaught TypeError: page.addChild is not a function

This is my first time using React, so if you have a better way of doing things I would love to hear it.

turbid cove
#

is theee any way i could pause a bukkitrunnable?

#

and resume it later, basically i want it to pause if a condition isn't true

viral moth
#

not the runnable itself, no

dusky harness
#

if true, return

#

(or if false)

viral moth
#

but if you are using the scheduler then you can cancel the task and requeue it later

dusky harness
#

that too

odd prawn
#

if (!ifPaused){
run code
}

#

¯_(ツ)_/¯

viral moth
#

if (paused) return

dusky harness
#
if (paused) {
    return;
}
#

:))

turbid cove
#

well no cause the task should only run after 15min from starting it

dusky harness
#

I would just start a new task

#

I mean it doesn't really matter, but that's how I'd do it

#

¯_(ツ)_/¯

turbid cove
#

start a new task when resuming?

dusky harness
turbid cove
#

yes but then if i start the task and after 5min i pause it, then after 1min resume it the other task would run after 15min

#

oh wait

#

nvm

spiral prairie
#

but what are you doing with react? looking around or want to reach sum

viral moth
spiral prairie
#

amogus

#

ok my bad

lyric gyro
#

I need a plugin made for $$. Dm me if u can help out

edgy wedge
# lyric gyro <#1004004211945652364>

Don't worry it's already there. I asked a bit more for detail and they want a game out of it with a fully fletched out replay system. Pretty simple if you ask me... For as low as $30 if they can

past ibex
#

I want a expert dev working well below minimum wage to make a plugin for me

mental cypress
#

If we're talking an hour, I'll consider it.

hoary scarab
mental cypress
#

That's fine

#

I mean I'm not going to do it but I wouldn't consider it for anything less than 30/hr minimum 20 hours if it's as "small" as they're saying.

viral moth
#

i need 30/h unless its over like 5k

errant kraken
#

What would you guys consider to be better performance-wise: more code in a plugin jar or code split in multiple plugin jars?

sterile hinge
#

that's not relevant for performance

viral moth
merry knoll
#

using file system makes your life harder, just put every single file to desktop

edgy lintel
merry knoll
#

so lets say you use hikariCP on both, you could have a separate jar just for that so you dont have to shade every time

edgy lintel
#

imagine hikariCP as a plugin itself so you dont have to shade no more

#

like a dummy plugn for library

merry knoll
#

i mean since i use kotlin + coroutines + hikari on almost all my plugins

#

i usually use them as seperate library

#

shading the same thing on 3 4 plugins doesnt make sense either

edgy lintel
#

i am kotlin noob so i have no idea what is that lol
but shading is honestly so annoying

#

yeah

merry knoll
#

kotlin needs to be shaded basically

#

kinda like a library

edgy lintel
#

wow

merry knoll
#

coroutines are too nice to skip so, kotlin it is when possible

edgy lintel
#

i remember theres like a project where someone does the dependencies shading for you runtime i forgot what was that project called

#

thought that would be useful for all coding purposes

merry knoll
#

spigot already has it

#

in the form of libraries

#

but its kinda messy

#

it downloads on launch the "libraries" you put down in the plugin.yml

#

if i am not remembering wrong

edgy lintel
#

oh thats lit i just found it in spigot wiki

#

does that store the libraries in cache or it actually saves after the server stops

dusty frost
merry knoll
#

although dont quote me on it, have never used it myself

dense drift
#

yes, it creates a libraries folder

worn jasper
#

Any ideas how I can avoid CORS issues while using an api that you don't "own"?

#

Trying to use the roblox api right now (yes, don't judge :-: or do, cause I should) in the frontend and I am getting issues with CORS

dusty frost
#

I mean that's like the point of CORS, if they don't want you using their stuff, they just set a deny CORS header and you can't use it

#

what are you even trying to get? like images or something? lol

worn jasper
#

The issue is I think it can't be done in the frontend, it needs to be done in the backend

#

otherwise it wouldn't make sense... why would they have a public api if no one can use it?

dense drift
#

you are probably just not meant to use it from frontend

dusty frost
#

if it returns JSON, that shouldn't be affected by CORS lol

#

what specific endpoint are you using?

dense drift
keen root
#

hi, how can i create a cuboid of smoke particle like a smoke bomb?

dense drift
#

d;world#spawnParticles

uneven lanternBOT
#
void spawnParticle(@NotNull Particle particle, double x, double y, double z, int count, double offsetX, double offsetY, double offsetZ, double extra, @Nullable T data, boolean force)```
Description:

Spawns the particle (the number of times specified by count) at the target location. The position of each particle will be randomized positively and negatively by the offset parameters on each axis.

Parameters:

particle - the particle to spawn
x - the position on the x axis to spawn at
y - the position on the y axis to spawn at
z - the position on the z axis to spawn at
count - the number of particles
offsetX - the maximum random offset on the X axis
offsetY - the maximum random offset on the Y axis
offsetZ - the maximum random offset on the Z axis
extra - the extra data for this particle, depends on the particle used (normally speed)
data - the data to use for the particle or null, the type of this depends on Particle.getDataType()
force - whether to send the particle to players within an extended range and encourage their client to render it regardless of settings

warm steppe
#
public static List<Location> generateSphere(Location loc, int r) {
    List<Location> circleBlocks = new ArrayList<>();

    double cx = loc.getX();
    double cy = loc.getY();
    double cz = loc.getZ();

    for (double x = cx - r; x <= cx + r; x++) {
        for (double y = cy - r; y <= cy + r; y++) {
            for (double z = cz - r; z <= cz + r; z++) {
                Location block = new Location(loc.getWorld(), x, y, z);

                if (loc.distanceSquared(block) <= r * r) circleBlocks.add(block);
            }
        }
    }
    return circleBlocks;
}
#

I use this to get sphere locations

#

if you modify it a little you can get cuboid locations

#

and then create particles

carmine crow
#

can i ask there for reviewing my plugin code?

smoky hound
#

you can ask whatever you want, no promises it’ll happen

mystic gull
#
            Inventory inv = new CraftInventoryCustom(null,watcher.getInventory().getSize() ,seen);

            for(int i = 0;i < inv.getSize()-1;i++){

                NBTTagCompound compound = (NBTTagCompound) inventory.get(i);

                ItemStack stack = CraftItemStack.asBukkitCopy(net.minecraft.server.v1_8_8.ItemStack.createStack(compound));//here
                inv.setItem(i, stack);

            }
            watcher.openInventory(inv);

#

Hello, i've used this code in 1.8.8 but now im using this code for 1.18.2, at net.minecraft.server i cant find v1_18_2

keen root
smoky hound
#

Code is goods

proper fern
#

PlaceholderAPI.registerPlaceholderHook("balance", new PlaceholderHook() { is deprecated..
whats the new one?

hushed badge
#

use PlaceholderExpansion instead

proper fern
#

i can try it xd

proper fern
#

why i get the error?

hushed badge
#

thats not really a lot to go off, but im going to say that u need to add generics to ur return type of getList

hushed badge
#

u should have HashMap<UUID, EcoPlayer> as the return type

u have a raw HashMap type as the return type, which will default to HashMap<Object, Object>, which means that u wont be able to use any methods from EcoPlayer

proper fern
#

now its had a red line

#

i cant send images here

neat pierBOT
proper fern
#

ah

hushed badge
#

that says what the issue is

#

ur returning a double, when u need to be returning a String

nimble vale
#

what you guys are using as a redis api/library for plugins

lyric gyro
#

jedis

nimble vale
#

yeah idk i saw a plugin api DeltaRedis it just seems so easy

#

and plain jedis is painful

#

maybe i can wrap it up

proper fern
hushed badge
#

it doesnt really get more simpler than this - String.valueOf(double)

reef delta
#

Having a "moment" right now- why is args.length < 2 always false?

nimble vale
#

if (args.length < 1)
else if (args.length < 2)

proper fern
nimble vale
reef delta
nimble vale
#

you are already using args[1] when checking if it is null

reef delta
nimble vale
#

lol got me

nimble vale
#

so actually you just messaging between servers and not with proxy

lyric gyro
#

you need the redis client anywhere you want to communicate with redis

#

if the proxy plugin needs to use the redis server, then you need the redis client in the proxy plugin as well

#

if not then, well, then no

nimble vale
#

alright thanks

#

thats what i need

lyric gyro
#

epic

nimble vale
#

there is also rabbitmq and lots of other concepts for this purpose i dont really know how to choose one between these options

#

i think im just gonna use redis

dusty frost
#

rabbitmq 😌

#

redis is probably better lol

#

it's a lot simpler

reef delta
#

I'm guessing it's only viable via NMS, but is there a way in SpigotAPI to get a player's visible BossBars?

deep cradle
dusty frost
#

okay Pulsar might actually be really cool

#

looking at it, it looks kinda nice, and if it's easier to setup than RabbitMQ, I might just be down

west socket
#

Anyone know how it could be possible that I'm getting a NPE here
Bukkit.broadcastMessage(upgrade.refName);
Yet it's still printing out the expected (non-null) result?

#

I'm really stumped about this

viral moth
dusky harness
#

probably getting an error after that line

west socket
#

Thats the line 118

dusky harness
#

Oh you're using an old java version :((
Try printing out upgrade

#

and also just making sure - that line is in onOpen?

west socket
#

Yeah it is

west socket
#

Ill try recompiling with a basic sysout though

viral moth
#

why are you working with the 1.8 api?

west socket
#

My server is running on 1.8, but that shouldn't be relevant to this situation

viral moth
#

im assuming youre making a server for 1.8 but you could make a 1.19.x server and use viabackwards to support older versions. its not relevant but i was just curious

#

^ would give you more api features

west socket
#

I do it for the performance

#

Not compat

dusky harness
#

seeing as the name is PitRemake I'm assuming it's a pvp server

west socket
#

Yes

dusky harness
#

so I'd recommend using 1.8

west socket
#

I hate how people who argue against using old versions completely ignore the question of server performance

dusky harness
#

although besides pvp stuff I'd go with 1.19 over performance

west socket
#

My plugin is super CPU and memory heavy, so I really can't run it 1.19 effectively

#

Anyways

#

Let me test this

dusky harness
#

alr

#

if you want you can make a bunch of prints to see where the exception occurs

#

if you don't want to nullcheck everything

west socket
#

Yeah so the sysout line errors

#

yet prints

#

Idek how thats possible

dusky harness
#

print after the broadcast

#

I'm guessing, for some reason, java is messing up the line numbers

west socket
#

Yeah the method still runs

#

Completely

#

In-game everything works as it's supposed to

dusky harness
#

did you add a print at the bottom of the method?

viral moth
dusky harness
#

I'd say to use 1.8 for pvp, if it was only for performance I'd go with 1.19 and optimize

west socket
#

Most of it can't be optimized

viral moth
#

could i ask why?

dusky harness
#

well plugins can, especially if you're the developer

west socket
#

Most of the lag boils down to nms

#

I'm basically running a shit ton of fake players fighting at the same time

#

and the Attack Event calls

#

Are super heavy on CPU

dusky harness
#

well I don't think that's the cause of NMS

but anyways, back on topic
If you add a print to the bottom of the method, does the exception print after or before your print?

west socket
#

Let me try that

dusky harness
#

alr
I've also gtg rn

west socket
#

Ok

#

Well exception happens after

#

When the sysout is at the end of method

viral moth
#

it still prints but throws the exception?

west socket
#

Yes

#

It's a very strange situation

viral moth
#

it is still saying that Bukkit.broadcast is causing the issue?

west socket
#

Yeah

viral moth
#

if you comment it out does it error?

west socket
#

Anything referencing "upgrade"

#

Will throw NPE

#

But Upgrade is not null

viral moth
#

print out upgrade

#

just to be sure

west socket
#

Thats what I did

#

It prints out just fine

#

Only thing I could think of is double loaded plugin

#

but thats not the case

viral moth
#

something is making it null then, from the information youve given, it should work fine but it clearly isnt

west socket
#

Well the thing is

#

In game works completely fine

#

It changes ItemStack lore based on values of "upgrade"

#

That appear completely fine

#

But the NPE throws still

viral moth
#

could you send the code?

west socket
#

Yeah sure

#

Line 13 in that

#

is where it errors

#

And line 15 errors if I remove the broadcasts

#

I don't think it's a small issue, but something larger with how the class is being loaded or something

#

Because this code used to work fine

viral moth
#

i would disagree

#

im still assuming that upgrade is null

west socket
viral moth
#

put this above the broadcast statements
assert upgrade != null;

#

and that will throw an error at runtime if it is null

west socket
#

Same result

viral moth
#

ok

west socket
#

Error throws at broadcast line

#

Not assert line

viral moth
#

my bad

#

assert did not do what i thought it would

#

but i still think upgrade is null

#

because thats what the exception is telling you

west socket
#

Yeah but it literally isn't

#

the broadcast prints out "Perk Upgrade: First Strike"

#

Or whatever other upgrade value I select

#

I know it's horrible coding, but I'm really struggling to not just catch and ignore it right now

viral moth
#

id suggest only using a try catch if you know why the exception is thrown

west socket
#

Yeah I'm aware

viral moth
#

i dont think i can help and further because i havent worked with the 1.8 api (it should work fine but there might be something happening that i just dont know about)

west socket
#

Well the issue is clearly within Java, not the 1.8 API

#

considering that any usage of "upgrade" will produce the same

viral moth
#

idk what version of java 1.8 requires

west socket
#

Broadcast or not

#

Java 8

viral moth
#

are you restarting your server each time youre trying your plugin?

west socket
#

Yeah

viral moth
#

welp

#

i wish you luck lol

west socket
#

Thanks

#

Okay update, there is another method that pulls the same "upgrade" object from the HashMap during the InventoryClickEvent for that inventory.

#

And that one preduces the same NPE, but "upgrade" is actually null this time

#

So I suspect maybe it's being removed from the Map it's being fetched from very quickly after it's fetched

#

Somehow causing an NPE and the code to still run?

#

Okay, yeah I found the issue

#

I was removing the upgrade object from the Map with the InventoryCloseEvent

#

Which for some reason is now being called when I switch from one inventory window to the other

#

Not sure why an issue like this would prop up all of a sudden

#

I guess the timing of it being removed and called at the same time somehow caused it to error and run the method at the same time, very strange.

turbid cove
#

Hi, i want to make a plugin that adds 100pts to a faction (gradually 25pts/15min) But if two conditions are not met it should stop and resume when those two conditions are met how can i do this with bukkit?

#

also one of those conditions is checking if a olayer is in a radius from a certain location

west socket
#

You can use location.getNearbyEntities(xRadius, yRadius, zRadius)

#

And then just check if the player is in the List that it returns

#

If you want a timer that can start and stop, I would recommend using a BukkitRunnable that increments an integer for each guild every second if the requirements are met

#

And then reward them and reset it once that integer reaches a target, (15 * 60) or something

turbid cove
#

wouldnt that cause lag?

#

if there is a lot of factions?

sterile hinge
#

I don't fully understand how it's supposed to work with pausing and resuming but you can simply calculate the distance from the player to that location

turbid cove
#

basically to add those points to the faction you have to wait 1h (add 25pts each 15min) BUT if the player is not near a certain location (this is not the problem) it should stop counting and wait until he's in that radius

#

what i'm struggling with is pausing and waiting for the player to be in the radius then resuming

sterile hinge
#

I guess you don't need an incredibly high precision there, so you could just check every second and count one up

turbid cove
#

ok but is it efficient to make a runnable for each faction?

sterile hinge
#

you can also have one task for all factions, but that won't make a noticeable difference most likely

high edge
#

I mean you probably won't have the amount of factions where it'd actually be noticeable

nimble vale
#

is there a way to disable the default italic in adventure api

#

i don't really wanna type decoration thing every time

sterile hinge
#

that's not in adventure

#

if you mean the italic lore texts

nimble vale
#

lores item names

#

yeah

sterile hinge
#

that's in the client basically, there's no other way than explicitly setting italic to false

#

but you can just write a method for that, no need to duplicate code

nimble vale
#

yeah it's not that convenient but it works i guess

merry knoll
#

is there a way to see if the player connecting (aka on join) is joining from another bungee server?

#

i guess i could listen to "bungeecord" plugin channel?

azure trench
#

Cannot resolve method 'getServer'

#

Anyone help?

fiery pollen
#

show code

azure trench
#

getSever().dispatchCommand(getServer().getConsoleSender, "lp user %player_name% parent set vip");

#

@fiery pollen

merry knoll
#

it needs to be in a JavaPlugin instance

azure trench
#

Intelij Idea

#

.java

merry knoll
azure trench
#

why need full code lol

#

here is.

merry knoll
#

because your answer shows that you are new to java

azure trench
#

Yes

merry knoll
#

you need a reference to your main plugin class

#

getServer is a method for JavaPlugin

#

its not available for commandExecutor

azure trench
#

so?

merry knoll
#

you need to do dependency injection

#

or have a static instance on your main plugin class

#

here

azure trench
#

if (!(sender instanceof Player)) {

#

?

dusky harness
#

You can also use Bukkit.getServer()

#

dependency injection could be a bit complicated

#

depending on what stage you're on atm

azure trench
dusky harness
#

what error?

#

also make sure it's getServer(), in your code you have getSever()

merry knoll
azure trench
dusky harness
merry knoll
#

otherwise same issue will pop up and it wont have a static access point

azure trench
#

i tried with import org.bukkit.getServer;

#

and import org.bukkit.Bukkit.getServer;

merry knoll
azure trench
#

It's same

dusky harness
#

are you doing Bukkit.getServer() in the code

#

not in the imports

azure trench
#

No.

dusky harness
#

try that

#

and lmk if it works or the error if it doesnt

azure trench
#

Cannot resolve symbol 'bukkit'

merry knoll
#

Bukkit

broken elbow
#

uppercase B

azure trench
#

bukkit.getServer().dispatchCommand(bukkit.getServer().getConsoleSender,

merry knoll
#

not bukkit

azure trench
#

same

#

Cannot resolve symbol 'Bukkit'

dusky harness
#

try importing that

#

using intellij's auto import (alt enter on Bukkit should work)

azure trench
#

It's wwork but

dusky harness
azure trench
#

Cannot resolve symbol 'getConsoleSender'

dusky harness
azure trench
#

So I make this.

#

and error:
Cannot resolve symbol 'Bukkit'

#

@dusky harness

dusky harness
#

if not ig manually put import org.bukkit.Bukkit; at the top

merry knoll
#

since it got pushed up, anyone know a way to listen to player send event? (aka from server to server through bungee)

azure trench
#

i already have it

merry knoll
#

probably listen to packets?

dusky harness
#

just so that i can see updated file

hushed badge
#

dispatchCommand(Bukkit.getServer().Bukkit.getConsoleSender,
the issue is here
it should be dispatchCommand(Bukkit.getConsoleSender(), etc
u should really learn java before trying to make plugins

azure trench
#

Bukkit.getServer().dispatchCommand(Erbex.commands.Bukkit.getConsoleSender, ("lp user %player_name% parent set vip"));

#

lol bruh

#

i had it

hushed badge
#

thats not even what i wrote

lyric gyro
#

uh

broken elbow
west socket
#

There’s a luckperms api you know

lyric gyro
hushed badge
#

lets not bother with LP api right now

merry knoll
#

my guess is that i can listen to pluginmessaging packets?

west socket
#

Oh my bad, didn’t see context

dusky harness
west socket
#

Bungee plugin messaging is so aids

#

I used it for my skywars queuing system and I still hate it

#

Regret not just using the time to setup redis or something

high scarab
merry knoll
west socket
#

Ah

#

I see

merry knoll
#

and im running into some mysql race condition issues

#

when players are switching servers

west socket
#

Sounds fun

merry knoll
#

imma just listen to packets and delay the switch

#

manually i guess

azure trench
#

Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender, ("lp user %player_name% parent set vip")); ?

west socket
#

Not sure why there’s parenthesis around the string, but that should work

lyric gyro
#

getConsoleSender**()**

west socket
#

Ah

neat pierBOT
#
FAQ Answer:

Online Courses:
Online courses are also great for learning java. Some websites that offer them are:

  • Coursera - Free unless you want a certificate
  • PluralSight - Great courses from what I've seen. Mostly Paid
  • Udemy - Never used them myself but they seem to all or at least most be paid.
    My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.

Oracle Docs:
Oracle docs can help a lot at learning and understanding java:

  • Start with this,
  • Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
  • Hit this.
    They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
    That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff

Other services:
Some other cool services that will help you learn java are:

As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!

broken elbow
#

@azure trench you might be interested in this

azure trench
#

Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender ("lp user %player_name% parent set vip"));

#

?

west socket
#

Add () after getConsoleSender

azure trench
#

Huh.

west socket
#

Also I don’t think that placeholder is going to work the way you want it to

azure trench
#

I will check it.

#

If don't work, I will see error then I will fix it :)

#

So, that error I fix it.

west socket
#

Is that supposed to be a PlaceHolderAPI placeholder?

azure trench
#

Yes

west socket
#

Those aren’t going to work in your code unless you’re using PlaceHolderAPI as a dependency

#

And use their API to register it

#

What IDE are you using?

azure trench
#

Java

west socket
#

I don’t think that’s what you’re trying to do though

#

What software are you using

#

To compile code

azure trench
#

Intelij Idea

west socket
#

Ah okay

#

Can you send the entire method where you’re trying to run that code?

azure trench
#

You mean full code?

west socket
#

Yeah

azure trench
#

1S

#

I need to change this, later. Because I don't think so it will work, Probably if I type /grandmod command will run only for that who type that command.

west socket
#

Oh so are you trying to have the player type in the username or who they want to change the rank of?

azure trench
#

To change someone rank..

west socket
#

Yeah

azure trench
#

Like /grandmod wiji

west socket
#

So you want to do that with parameters

azure trench
#

Yeah

west socket
#

I mean arguments

#

So you see the args variable

#

That’s going to be a String array (essentially a list) of all the words the player types after the command

#

So if you fetch args[0]

#

That will be the second word the player types

azure trench
#

I have that :)

#

Check pastebin

#

if (args.length > 1) { System.out.println(" You GrandModed " + args[0]); p.sendMessage(" You GrandModed " + args[0]);

west socket
#

Oh I see

#

My bad

azure trench
#

No, enjoy.

#

No problem.

west socket
#

Okay so

#

You need to get the player object

azure trench
#

So I need to replace %player_name% to args[0] ?

west socket
#

No

#

Because args[0] is just the name

#

Not the actual player object

#

To get the player object, you need to loop through all online players

azure trench
#

arg[0] equals to player name ( that who I want to give to someone)

#

right?

#

And arg[1] queals to my name

west socket
#

for(Player player : Bukkit.getOnlinePlayers()) {

}

#

Then in that

azure trench
#

Player p = (Player)sender; String name = p.getDisplayName(); { if (!p.hasPermission("can.build")) {

#

That what I have.

west socket
#

Put if!(player.getName.equalsIgnoreCase(args[0])) continue;

#

Let me get on a computer, hold on

#

Here

#
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {

        if(!(sender instanceof Player)) {
            return false;
        }

        Player p = (Player) sender;

        if (!p.hasPermission("can.build")) {
            return false;
        }

        if(args.length < 1) {
            return false;
        }

        Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "lp user " + args[0] + " parent set vip");
        p.sendMessage(" You GrandModed " + args[0]);
        

        return true;
    }```
azure trench
#

Let me check.

#

Before that.

#

Thank you :)

west socket
#

Np

#

But I really would suggest learning more about SpigotAPI and Java in general

#

I also started SpigotAPI with little to no java knoledge, which is something I regret

#

I know it may seem preachy, but I really think you can learn a lot faster if you actually understand what the code you're writing means on a code-base level

azure trench
#

Yeah, You are right.
I need one more year, then I will start to learn programing in school

west socket
#

Ah

azure trench
#

Then It will be more easy.

west socket
#

Java really isn't too hard if you know the basics

azure trench
#

Yeah.

#

I started to learn smth.

#

A little, but I will learn.

west socket
#

Once you understand it, you can gradually learn more of it as you need it in your projects

azure trench
#

Like you said, is not hard.

#

Yeah, you are totally right.

west socket
#

Don't worry, there really aren't many great sources for learning spigot API out there

#

I think it's a pretty good start for practicing Java

azure trench
#

Ok, let me check about this.

mystic gull
#

Hello, i see many dev and the spigot classes where they use variable names like var0,var5 etc... does it mean smth for them ?

high edge
#

compiled code, not actual variable names

viral moth
west socket
#

Yeah I would too

#

He clearly has no Spigot experience

#

So I was just helping him get something simple working

viral moth
#

I know it's not you're issue but I saw your code snippet

west socket
#

Yeah

merry knoll
#

locks you place on sql gets released once you commit right?

#

as in connection.commit() when autocommit is set to false would release all the locks placed in that transaction?

sterile hinge
#

what kind of lock are you talking about

merry knoll
#

a row read - write lock

#

using for update syntax

#

running into some race condition issues where data is not fully saved before its being read again

sterile hinge
#

well, according to the docs the commit method releases the locks

merry knoll
#

so im kinda confused

sterile hinge
#

if an implementation doesn't keep to the spec, that's a bug

azure trench
glad walrus
dark garnet
#

hi, how can i make a super accurate method to get the entity (specifically a player) that a player is looking at? i also need a way to get the exact coordinates (down to the decimal) a player is looking at, how can i do this (im using targetblock right now, but its not very accurate)?
for reference, im making a laser gun

dark garnet
west socket
#

What I would do is draw a particle trail on the player.getLocation().getDirection()

#

Segment the vector into multiple pieces and loop through each segment

#

Draw a particle there and check if there is a player nearby to the location

lyric gyro
#

World#rayTrace/rayTraceBlocks/rayTraceEntities

lyric gyro
#

Please help, why does the LocalHost Server work perfectly and there are a lot of bugs on the hosting?

slim vortex
#

Did you make sure that the production is set up identical to the development environment and actually has the updated plugins?

dark garnet
spiral prairie
#

no, just predicate (emily you)

lyric gyro
#

there's one rayTraceEntities that takes a Predicate so you can filter which entities it'll hit (or not)

dark garnet
#

o wait

lyric gyro
#

Ah well yeha that's the one :d

dark garnet
#

there r multiple rayTraceEntities

lyric gyro
#

hard to remember them all lol

dark garnet
#

y didnt intellij tell me that there were multiple >:((

lyric gyro
#

it hates you

dark garnet
#

😭

#

what exactly is raysize?

lyric gyro
#

ray size is basically how much leeway the ray has to consider "hitting" something

dark garnet
#

so like the "thickness" of it?

spiral prairie
#

you can change it if you notice issues

dark garnet
#

o didnt know there was one without it

spiral prairie
#

i literally sent it

dark garnet
#

i thought that was the same one, mb

spiral prairie
#

xD dw ab it

dark garnet
#

will using lots of rays lag the server?

spiral prairie
#

spigot gets confusing sometimes

dark garnet
#

omg the ray tracing works (at least for blocks, gotta test players later), tysm guys love

spiral prairie
#

if you have like 100.000 simultaneosly, yes

dark garnet
spiral prairie
#

id guess so

dark garnet
#

its not just gonna die if like 10 r fired

spiral prairie
#

def not

dark garnet
#

alr that should be fine then

merry knoll
#

distance effects its performance

dark garnet
spiral prairie
#

i think mc default is somwhere with 12

dark garnet
#

also just figured out i can just use rayTrace instead of both rayTraceBlocks and rayTraceEntities lmao

merry knoll
#

you can divide it as well

#

go chunk by chunk etc

merry knoll
#

i wouldnt do any preemptive optimizations though

#

make it and test then go from there

dark garnet
dark garnet
#

cause i started without knowing it returned RayTraceResult

warm steppe
#
@Override
public String onRequest(OfflinePlayer player, @NotNull String params) {
    return String.valueOf(Bukkit.getOnlinePlayers().size());
}
#

@dusk crypt

#

pretty easy

dusk crypt
#

I'm sorry, I just started doing it. so I don't have any idea yet how this works.

warm steppe
#

This is if you want to make it in your own plugin

#

If you dont want to make your own custom placeholders, you can use server expansion

dark garnet
#

hi, this is just a general question, how do i disable the /tell command? not from a developer pov, i wanna do it using permissions, but minecraft.command.tell doesnt tab complete in luckperms (which means it doesnt exist)

warm steppe
#

no, it doesn't mean it

dusky harness
#

and for tellraw it's minecraft.command.tellraw

lyric gyro
# dark garnet hi, this is just a general question, how do i disable the `/tell` command? not f...

It does not mean that at all, suggestions are mere suggestions, as in LP will show what it knows so far, maybe some permission hasn't checked and since plugins can check for literally any permission in existence ever, LP can't know about all of that until they are checked, suggestions are not the final word of "this exists or not", you're gonna find this useful for debugging and finding permissions https://luckperms.net/wiki/Verbose

dusky harness
#

I think mc/bukkit permissions auto complete though

#

along with plugins with the perm in plugin.yml

#

but besides that I don't think it does

lyric gyro
#

"yes"

#

not necessarily but for the most part yes

#

command permissions are checked when you log in, so they get added to the internal "known permissions" set as soon as someone joins

lyric gyro
#

yes

dark garnet
dusky harness
dark garnet
#

ill try verbose
msg permission didnt work

lyric gyro
#

tell is also an alias for msg as dkim pointed out :d and they share the same permission

dark garnet
dusky harness
#

oh wait

#

are tell and tellraw completely different

dark garnet
dark garnet
dusky harness
#

oh lol

dark garnet
#

tell = msg = whisper

dusky harness
#

I was thinking tell similar to tellraw

dark garnet
#

same

dusky harness
#

¯_(ツ)_/¯

lyric gyro
#

tellraw is for sending json components lol

dusky harness
#

but if it's alias it would most likely have the same permission

dusky harness
#

🤷

#

but without the "player whispered" part

#

It was just a guess

dark garnet
dusky harness
#

I always use /msg

dusky harness
#

did you try the msg permission

lyric gyro
dark garnet
#

players cant do /msg but they can do /tell

dusky harness
dark garnet
#

no not yet im about to

dusky harness
#

alr

#

lmk what the results are

#

im curious too

lyric gyro
#

maybe some plugin is overriding the command and has a different permission?

dusky harness
#

also that reminds me
why does ESX make their own versions of mc commands

#

usually worse versions

dark garnet
dusky harness
#

💀

#

Uh

#

try the permission check cmd

#

it changed so i dont remember what it is

#

i think its like /lp user dkim19375 permission check minecraft.command.msg

dark garnet
#

player said that /tell appears red

#

but they can still do it

dusky harness
#

it should've been like red or green

dark garnet
#

it says false

dusky harness
#

and that's the only permission shown?

dark garnet
#

but it still worked lmao

dusky harness
#

Maybe try just doing /verbose on

dark garnet
#

that spammed a lot

dusky harness
#

only thing i can think of now

dusky harness
#

it shows every perm check

#

hopefully this isn't on a public server

#

you can also upload the results to the web

dark garnet
dusky harness
#

well ig it doesn't matter since the web should be able to filter it out

dusky harness
dark garnet
#

it only shows to me i think

#

should i have them run /tell?

dusky harness
#

ye but each player will have their own perm checks

dark garnet
#

o ye

dusky harness
lyric gyro
#

huh sounds like another plugin is forcing the command to run or sending the message on its own or something

dusky harness
#

ask them to upload the verbose results to the web

#

since maybe it cancels and runs it separately or something 🤷

#

which I don't see why but it's the only thing i can think of

#

either that or a plugin is somehow forcing it to run

#

which is what emily mentioned

lyric gyro
#

yeah i mean it doesn't make any sense for /msg to work fine but not /tell since they literally redirect to the same command object

#

so it's not the permission

dusky harness
#

do they have plugman

#

srnyx

dark garnet
#

no

dusky harness
#

okay

dark garnet
#

imma just leave it as is cause we're about to install new chat plugin anyways

warm steppe
#

huh

#

chech your chat plugin's permissions

#

and block it's /tell permission

lyric gyro
#

the thing is that it isn't checking any other permissions

#

it's checking whatever verbose is reporting

#

which is the vanilla's msg/tell/whisper permission

#

but something else is taking that, not giving a shit and doing the thing anyway

spiral prairie
#

Hi, quick question.
If I need to return Map<Integer, InterfaceA> and return Map<Integer, ClassA> where ClassA implements InterfaceA, it won't compile.
Any stuff i need to do to make java realize that ClassA inherits from InterfaceA or am i doin something stupid?

icy shadow
#

this is an intentional thing for safety

#

Map is invariant because otherwise you could get bad errors

spiral prairie
#

right

#

how fix

icy shadow
#

lets say you also have ClassB and call put, a Map<Integer, ClassA> would throw an exception but the type system would think it's safe

#

you should be able to do an unsafe cast i think, or you could change the type to Map<Integer, ? extends InterfaceA> on the basis that will probably break other things

#

you just need to make sure that you're very careful with the unsafe casts

#

because they are unsafe

spiral prairie
icy shadow
#

yeah it will probably change stuff in other places

#

you're explicitly making the parameter covariant, which means that get will be safe but put will not

lyric gyro
#

big words

icy shadow
#

yeah

#

big like me

lyric gyro
#

oh

#

🤏

torpid raft
#

pedantic but is it actually ? extends InterfaceA or is it ? implements interfaceA

lyric gyro
#

in the context of wildcards it's always ? extends T to mean "It produces instances of some subclass of T", and ? super T to mean "It takes instances of some superclass of T"

icy shadow
#

big words

torpid raft
#

i see, i think

icy shadow
#

tldr it's always extends even for interfaces

torpid raft
#

ye

#

? super T seems interesting though, i didnt realize that existed

#

seems like the uses for it would be very niche

lyric gyro
#

Not really

lyric gyro
# torpid raft seems like the uses for it would be very niche

List<? super File>
The list contains instances of some superclass of File, but you don't know what superclass exactly, it could contain Comparables, it could contain Serializables, it could contain Files themselves or even Objects; but you don't know which one exactly so you can't take/get any instance from it, all you can do is add File instances (instances of a subclass of File still count as an instance of File, so it isn't constrained to File.class specifically), because a File is (in this context) a superclass of File

List<? extends Number>
The list contains instances of some subclass of Number, but you don't know exactly what subclass exactly, it could contain Integers, it could contain Longs, it could contain both (List<Number>) or a BigDecimal; but you don't know what subclass exactly it has so you can't put/add any specific Number instance, all you can do is get Number instances from it

More generally speaking: PECS (Producer Extends; Consumer Super), the wildcard is bounded with extends when the parameterized type produces T's, and it's bounded with super when it consumes T's, as in Supplier<? extends T>, Consumer<? super T>, Function<? super T, ? extends R>

The top 2 answers in here are quite well https://stackoverflow.com/q/2723397
But personally I understood this explanation better https://stackoverflow.com/a/4343547

#

google: variance, covariance and contravariance

#

or whatever search engine of your liking :^)

stuck hearth
#

Yahoo answers

icy shadow
#

ask jeeves

torpid raft
#

yandex

#

😎

icy shadow
#

e621 😎

torpid raft
spiral prairie
#

Why does dokka do this

#

and not this

dense drift
#

Dokka isnt kotlin's javadoc thing?

#

And by default, packages in IJ look just like that

#

You have the flatten option enabled

spiral prairie
spiral prairie
#

ok alr

#

and how exactly do i change the output?

#
tasks {
    dokkaHtml {
        moduleName.set("HMCWraps API")
        outputDirectory.set(File("./docs"))
    }
}``` when i do this
#

badum tss

mint holly
#

How to spawn an item at a specific location in the Inventory?
For example,i give myself a diamond in 8 slot.

edgy lintel
edgy lintel
mint holly
#

Thank you very much.

edgy lintel
#

np man enjoy

reef delta
#

I don't suppose anyone here as worked with GriefPrevention API?

It's absolutely terrible, and really limited- I'm looking to make a command for players to pay each other with claim blocks but I cannot find any accessible methods to both get and set claimblocks for a player.

tight junco
#

that's because the developers behind grief prevention are literally some of the worst ive ever seen

#

because may i remind you all of this

reef delta
tight junco
#

it is quite literally the worst large scale plugin ive ever seen on code quality

reef delta
#

Makes me want to make a developer friendly fork. sadge

tight junco
#

makes you wanna make an entirely new plugin

reef delta
tight junco
#

the plugin could quite literally use Thread#sleep and it'll still be better

reef delta
merry knoll
#

caching config info is fine no?

sterile hinge
#

in an appropriate place, yes

merry knoll
#

i just read the names of the variables

#

holy how do they have time for that

edgy lintel
icy shadow
#

i dont care about oop

edgy lintel
#

then this will do it xdxdxd

high edge
icy shadow
#

me neither

merry knoll
#

oof

lucid mica
#

Anyone know how to make a new playername.yml when a new player joins and load the config if its a player that already joined? then read the config from another class

high edge
#

Get the file, if it exists you'll have contents inside it from the previous join, otherwise write the new contents

lucid mica
#

How would I do that?

icy shadow
#

which bit are you unsure about?

#
  1. check if file exists
  2. if exists, read contents
  3. if not, write new contents
lucid mica
# icy shadow which bit are you unsure about?

Well I want to make a credit system so you can earn credits by doing something then you can buy stuff with the credits. Just not sure how I would get the file stuff lol to work. Been trying for ages and searched online for help but no luck

high edge
#

Well what do you have so far

sterile hinge
#

(it also sounds like a bad idea to do file IO on the main thread)

edgy lintel
#

hey a quick question
so the word runTaskAsynchronously
It means that the task is asynchronous and on MULTIPLE threads OR
it is really just asynchronous on a single thread as its literal meaning

my educated guess is that it is only on a single thread but idk i dont wanna bother scrolling through nms codes or googling anymore after headaches

#

pls ping me if you are available for answers, thx. Just wanna verify my guess.

icy shadow
#

runTaskAsynchronously just runs it on a thread that isnt the main thread

#

if you have a task timer, im not sure if it will always be ran on the same thread every time

#

probably not

#

since the scheduler uses a thread pool for async tasks

edgy lintel
merry knoll
#

create your own thread and access only using that

edgy lintel
merry knoll
#

two threads of the same task?

#

i am not sure honestly but i think it uses a pool internally

#

you would have to check, but i dont think there is a way to guarantee that spigot uses the same thread each time you call an async scheduler

#

you can guarantee the task inside of the scheduler (only on that instance) is run by one thread though

#

if thats what you are asking

edgy lintel
#

nvm overhead does matter
thx a lot for the tips plan changed i will be managing the thread myself

merry knoll
#

if you need to access variables from another thread

#

you either limit the usage of those to one thread

#

or.. you use atomic type variables (aka thread safe)

#

second option might be easier if you didnt consider it

edgy lintel
#

oh for that i have atomic reference for the lists and stuffs
idk if the performance will drop tho

merry knoll
#

it wont drop unless the variable is constantly used

edgy lintel
#

oh ok makes sense thx for all your inspiring answers!

#

one more question tho

merry knoll
#

so if you need to cache data from sql etc, atomic is completely fine

edgy lintel
#

do you think a long async bukkit task gonna slow down the main thread?

merry knoll
#

no, its a separate thread

edgy lintel
#

like relative to a one statement async task, a 1000 statements task will slow down main thread considerably

merry knoll
#

nah, again

#

when you are using async your main worker continues as normal

edgy lintel
#

oh alr thx a lot appreciate it!

merry knoll
#

only time it can slow down is when you use all resources of your cpu

#

in which case you have more issues most likely

edgy lintel
#

maybe the issue of the whole pc not the programming then haha

somber light
#

hello, does anyone know if it is possible to tell the maven shade plugin to output the shaded jar in multiple locations?

lyric gyro
#

No

somber light
#

with all due respect your bio made me wonder if antibullying campaigns should be a thing

broken elbow
#

what?

stuck hearth
#

All I see is disrespect thonking

somber light
#

¯_(ツ)_/¯

stuck hearth
#

If you're going to be a dick, just say that my guy

high edge
lyric gyro
#

huh

broken elbow
#

ok guys let's just stop with the very polite insults

somber light
#

aight sorry about it

#

I'll save frosty the embarrassment by not replying to his comment.

high edge
#

Oh no, whatever will I do now, hide in a hole and cry?

lyric gyro
#

evidently yes

lyric gyro
#

they're just salty i'm happy with myself and wants to ruin the fun for no reason, idk, people are weird

stuck hearth
#

I'm happy for you Emi and I hope you're having a great day 🤗

lyric gyro
#

thank you! i am indeed

pulsar ferry
#

Yeah sad people tbh

spiral prairie
#

Guys

#

How do you prevent github actions from running when the push is a merge from dependabot?

stuck hearth
#

Pretty sure you can apply exclusions in the script

dense drift
#

looks like you could add if: ${{ github.actor != 'dependabot[bot]' }} before steps

lucid mica
spring sinew
#

i lost my backup code discord , what i need to do change my setting for discord , always requed app backup code , help me enyone

torpid raft
#

we cannot help you

#

please contact your local attorney

dusky harness
#

What happened to ur actual 2FA 🤨

spiral prairie
#

Did you know that you have rights? The constitution says, you do!

torpid raft
#

i sold those off for free video streaming

spring sinew
dusky harness
#

Some 2fa apps might sync online

#

I use authy which you can sync but it's off by default

spring sinew
warm steppe
#

?not-discord

neat pierBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

dusky harness
#

If it doesn't then uhh

#

That's why they had backup codes :/

#

But besides that until you find your phone u can't get the code

spring sinew
dusky harness
#

Also if you lost it, ios and android allows you to track the device

spring sinew
dusky harness
#

Backup codes are 8 (I think) codes in case u lost ur phone

#

That u could use

dusky harness
#

So u don't have any?

#

Also note that 2fa is unlikely to prevent you from getting hacked from discord scams

#

Since it uses token logging which bypasses 2fa

spring sinew
#

i have pc logging , but i will reset pc affter i never can logging discord without bacup code

dusky harness
#

Pc logging?

spring sinew
#

now i use it

dusky harness
#

OK I'll assume u don't have the backup codes

spring sinew
#

but i need to use my new mobile this account

spring sinew
dusky harness
#

I mean you can probably lock your phone remotely and see if someone finds your phone

#

Assuming it's not broken our out of battery

#

Or*

spring sinew
#

i will check it but not responce

dusky harness
#

Google/Android - find my phone/device
Samsung - either above or Samsung locate phone
Apple - idk

#

Apple does have one but I think it requires a mac

spring sinew
#

i hve anroid , i will check find my device but i am late

dusky harness
#

Ok

#

Lock it and make it show a contact phone number

#

Trying to find it probably will not help depending on the location

spring sinew
dusky harness
#

Wb Google find my device?

#

Did that work?

spring sinew
#

i think it now reset or remove parts

dusky harness
#

What

#

Did you lose your phone or did you sell it or smth

spring sinew
#

eny other option to get new backup code ?

dusky harness
#

No

dusky harness
#

Then why would it reset

#

Or remove parts

#

I mean sure it could've died but Google shows the last location (if location services were on)

spring sinew
dusky harness
#

Oh u think a robber took it

spring sinew
#

yes it robe

dusky harness
#

Oh then it's done for, but why not check?

#

Did you check?

spring sinew
#

yes

dusky harness
#

It says phone offline?

spring sinew
#

yes

#

phone + my bag

dusky harness
#

Oh ur bag too

#

Ripp

#

That ls not very good

spring sinew
#

yes

dusky harness
#

Unfortunately if Google doesn't sync 2fa then I don't think you can fix this

#

And if you do use 2fa in the future remember to write down backup codes

#

They will most likely give one or more

spring sinew
#

this account i need because this accout old 3 years , and nitro use , my all bussnes i do with this account

spring sinew
dusky harness
#

I do not use Google auth

spring sinew
dusky harness
#

If you login from a device and discord does not show, ig that means it's not synced

#

Maybe there is a setting for it

#

Authy had it disabled by default for example

spring sinew
#

it have only sacn qr code

#

no another option

dusky harness
#

Alr

spring sinew
#

i cant scan my discord qr need my password , my password is froget , i can't change my password without 2fa

#

i think my time is not good

dusky harness
#

Do you have anything special linked to ur acc?

#

If I were you I'd try moving to a new acc asap

#

So that once u get logged out for whatever reason it's not sudden

spring sinew
#

my nitro and my servers AEBlankStare

dusky harness
#

Can u rejoin? And maybe try getting the stuff transfered while you still have access to this account

#

That's prob the best thing h can do now

spring sinew
#

how to transfer ?

#

i think you discord devoloper

dusky harness
#

No

#

Everyone in this server is a regular person

#

Not staff

#

?not-discord

neat pierBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

dusky harness
#

We r just minecraft players

#

:))

spring sinew
dusky harness
#

What it's saying is that this is not official support

spring sinew
#

not responce

steady ingot
#

Is there a sort of timing safe equals to compare passwords in Java?

lyric gyro
#

timing safe?

#

sorry, more so the algorithm you'd use to hash passwords ideally should be tuneable in terms of how much time it takes

spiral prairie
merry knoll
#

java gc is good enough to clear circular references right?