#help-development

1 messages · Page 1596 of 1

quaint mantle
#

scam

grim ice
#

@quaint mantle bri'sh

unkempt ore
#

Dude, joch, you need a nap

grim ice
#

lul

dusty herald
#

I just got off of work

quaint mantle
#

bri'ish innit bruv

dusty herald
#

my feet are killing me

serene agate
dusty herald
#

of course I need a nap

unkempt ore
quaint mantle
#

omfg

#

die

#

LMFAO

#

: )

unkempt ore
unkempt ore
quaint mantle
#

Big words

unkempt ore
#

An equation

quaint mantle
#

Yes I know, I just don't know what it would look like 🙂

grim ice
#

qrehi

#

wipab

unkempt ore
#

So, you have how much money the player has, and how much each item costs?

#

Or what is the situation exactly

quaint mantle
#

The cost is increasing for every one you get

#

basically

unkempt ore
#

That's an exponentiation

#

By what ratio does it increase?

serene agate
unkempt ore
#

Does it vary?

quaint mantle
#

It doesn't increase by an exponent

#

Let me get it for you

unkempt ore
#

So could it be possible to get the increase as a percent?

#

No, no, it's fine

#

Just answer that ^^^

#

Because if that's possible at any time, you have your answer

quaint mantle
#

To be honest, I'm not exactly sure..

unkempt ore
#

affordable count = floor(base price ^ (1 + percent increase per item))

quaint mantle
#

This is how it works

#

The formula above used to be a for loop

#

in the getCost method

#

Was highly inefficient so I switched it out

#
            for (int levelToIncrease = 1; levelToIncrease <= levels; levelToIncrease++) {
                cost += increaseBy * (level + levelToIncrease - 1) + initialCost;
            }```
#

thats what the formula was before

serene agate
unkempt ore
#

Does the increase rate remain the same per item?

#

Say, for each item A, each A will be 5% more costly?

quaint mantle
#

Its not a percentage, but its an amount that it increases by per level/item

unkempt ore
#

If it can be represented as a percent, you have your solution

#

Say, for each level it's a little percent more of an increase per item?

vivid temple
#

someone?

unkempt ore
#

b^(1 + r). b being what it starts as, and r being the rate of change, calculated however you wish @quaint mantle

patent wadi
#

are there any symlinks in the API for things like
org.bukkit.craftbukkit.v1_17_R1.block.impl.CraftWallSign ?

chrome beacon
#

First off don't detect GUI by name. Secondly we need the code for opening the other inventories. Oh and keep in mind you should do this in the next tick

patent wadi
chrome beacon
vivid temple
chrome beacon
patent wadi
chrome beacon
patent wadi
#

ah ok, i should probably switch to that, but if i remember rightly i had an issue with it but i don't remember now it was a while ago.

chrome beacon
patent wadi
#

ok, thank you.

quaint mantle
#

Sorry, had to restart my pc due to the monitor cable being weird...

#

Okay, so let me explain it, I want to calculate the maximum amount of levels a player can afford with a currency, without the use of a for loop

#

@unkempt ore

patent wadi
#

(max_level - current level) * price_per_level ?

unkempt ore
#

Ahh

quaint mantle
#

The price increases per "level"

#

You understand now? ;p

unkempt ore
#

Yes

patent wadi
#

just add your multiplier to the last term

quaint mantle
#

Increases my an amount each time

#

by*

unkempt ore
#

Can you make an equation for getting the price of an item based on its level?

#

Because if so, you can solve that for the level as a function of money, instead of a function of level to get money

#

And then floor

quaint mantle
patent wadi
#

(max_level - current level) * (price_per_level+(current_level * increase_amount))

unreal birch
#

hello, i have some questions, first, can you tell me what plugin douse left sided text on screen with name of server, money, player name...? 😄

grim ice
#

@unkempt ore do u know a solution

#

the /shadow only works

#

but other stuff don't

unkempt ore
#

One sec

#

Thinking of this

quaint mantle
#

@patent wadi not sure if you understand, I want to calculate how much a player can afford, thats just getting how much it is to get from the players current level to the max level

unkempt ore
#

Does it increase by a set amount per level?

quaint mantle
#

Yep

unkempt ore
#

Alright, so, hear me out

patent wadi
#

the number resulting from that will be the cost, just compare it against their balance

quaint mantle
#

yess but I want to get how much the player can afford

unkempt ore
#

base + level * amount_increase_per_level = cost. Now solve for level

#

(cost - base) / amount_increase_per_level = level

chrome beacon
patent wadi
#

balance / cost, then floor it

unkempt ore
quaint mantle
#

ah

#

What would base be? The percentage increase?

unkempt ore
#

Ah, no

grim ice
#

1s lemme send u

unkempt ore
#

Sorry, I misunderstood then

grim ice
#

?paste

undone axleBOT
unkempt ore
#

I thought you meant like, for every level the price increases by a set number

#

Not a rate

quaint mantle
#

Ahh

unkempt ore
#

However, this shouldn't be an issue either

grim ice
quaint mantle
#

So, for that formula to be more simple, this was the original one I used

#
            for (int levelToIncrease = 1; levelToIncrease <= levels; levelToIncrease++) {
                cost += increaseBy * (level + levelToIncrease - 1) + initialCost;
            }```
#

I just converted that ^

#

into:

(long) (0.5 * (levels + 1) * (increaseBy * ((2 * (level + 1)) + levels - 2) + (2 * initialCost)));```
chrome beacon
grim ice
#

Oh

#

should i check if arg[0]

#

is /shadow

chrome beacon
#

Yes

grim ice
#

ok ok that makes more sense

chrome beacon
#

If it exists

unkempt ore
#
(base cost)^(1 + (rate of change per level) * (level)) = cost

Solve for level

L = -ln(B / C) / RlnB

@quaint mantle

quaint mantle
#

o-o

unkempt ore
#

Though I feel like the first equation would be wrong hmmm

#

Let me test it

#

But as it stands it should work I believe?

#

In the second equation, plug the base cost of the item into B, the amount of money the player has into C, and the rate of change for every level into R

tame fern
#

Is there a way I can use a resource pack with extra textures to texture a custom mob?

quaint mantle
#

Hmmm okay

unkempt ore
#

For example, for every level a 5% increase in rate, the player has 10,000 of the currency, and the item costs 1,000.

L = ln(1000 / 10000) / 0.05 * ln(1000)

But again, this is probably not very right, I'll keep thinking

#

Because I feel like something is off

tame fern
#

Is that for the regular entity class? Can't find that method.

chrome beacon
quaint mantle
#

sheesh

chrome beacon
unkempt ore
#

Purple, purple

#

I missed a negative

quaint mantle
#

Ah

unkempt ore
#

The solution is negated

quaint mantle
tame fern
#

I've seen it done with data packs, but that requires me to use that format for everything.

unkempt ore
#
L = -ln(1000 / 10000) / 0.05 * ln(1000)
chrome beacon
quaint mantle
#

bad mojang

unkempt ore
#

That would be 6 levels @quaint mantle

#

In that condition

#

I believe this is what you wanted

#

Just plug the right variables in

#
L = floor(-ln(B / C) / RlnB)
quaint mantle
#

Right

chrome beacon
unkempt ore
#

Make sure to floor it!

#

Because rn this gives you a float

tame fern
#

Yea, but I've seen data packs with custom entities that work server side just fine. I guess I'm going to have to go that route. No idea how to make them spawn though.

chrome beacon
#

The datapack you're talking about probably requires Optifine

unkempt ore
#

Final equation posted

#

Edited it

tame fern
#

Nope, straight vanilla.

#

1.17.1

chrome beacon
#

This isn't about the server the client won't know what to do

tame fern
#

Force the player to use the datapack.

#

Simple.

chrome beacon
#

Datapack are server side

unkempt ore
#

By the way you could use this same technique to find how much it would cost in total to afford a certain level. And then you can subtract the player's balance from that

quaint mantle
#

I, for some reason, get infinity..

System.out.println(-Math.log(1000 / 10000) / 0.05 * Math.log(1000));
unkempt ore
#

Weird, I plugged those into my calculator and I'm getting 6.6666...

quaint mantle
#

Very strange, I'll try and mess with it

unkempt ore
#

Again by sure to floor that all

quaint mantle
#

Oop

#

Found it

unkempt ore
#

What is it

quaint mantle
#
    public static void main(String[] args) {
        System.out.println(-Math.log(1000 / 10000.0) / (0.05 * Math.log(1000)));
    }```
doubles and brackets
unkempt ore
#

Ah

#

Now floor 😳

#

And tell what it says

quaint mantle
#

6.6 recurring

unkempt ore
#

Great

quaint mantle
#

Then floor is obv 6

unkempt ore
#

Now, R would probably be a constant. Though maybe you wanna make it configurable

#

You're welcome though. That was fun to make

quaint mantle
#

thanks! 🙂

tacit drift
#

any idea on how i can move it a bit in the left?

#

{"type": "bitmap","file": "minecraft:font/worldrtp.png","ascent": 138,"height": 256,"chars": ["⼄"]}

tame fern
#

Ok hold up. I'm talking about using a resource pack that is required for the textures of the mobs.

blazing lintel
#

disclaimer: idk what im talking about.
||you might need to maybe edit the inventory gui? not sure||

paper viper
#

What..

chrome beacon
blazing lintel
paper viper
#

I know

tame fern
#

@chrome beacon No, I'm going to have to make it. I though I could just use a resource pack and use Spigot to add custom entities with textures, I guess I'm going to have to use the datapack route.

chrome beacon
#

I'm just curios on how the datapack works

#

If I know that then I can help

clear galleon
unkempt ore
#

Never tried datapacks

tame fern
#

When you make a datapack you can have a custom folder with custom models for custom entities. I don't know the data pack format, reason I was trying to avoid using it.

unkempt ore
#

Are minecraft commands turing complete?

ivory sleet
#

would say no

tacit drift
clear galleon
#

o

chrome beacon
#

This isn't Bedrock edition

tame fern
#

Yes you can, there are literally servers doing that right now.

minor garnet
#

Is it possible to spawn an entity with attributes such as invisibility without the client seeing this entity spawning after applying this attribute?

chrome beacon
#

Custom entity models are an optifine thing

paper viper
#

^

ivory sleet
unkempt ore
#

World::spawn is static

tame fern
#

Yes, and now they are in the base game, this isn't 1.7.10 anymore.

paper viper
unkempt ore
#

Wouldn’t you say World#spawn

#

That’s for instance

#

Ah, mixed it

hollow lagoon
#

Hello, I wanted to know how I can make my NPC no longer have an AI.

unkempt ore
#

Makes sense

ivory sleet
#

yeah

chrome beacon
tame fern
#

I'll pm you.

minor garnet
#

yes, but when u spawn a entity with invisibility, has a 1 tick to player see that entity visible understand?

#

where

hollow lagoon
#

Hello, I wanted to know how I can make my NPC no longer have an AI in 1.8.8 pls

ivory sleet
#

setAI maybe

upper skiff
#

Hi I'mhaving a problem the PlayerdeathEvent doesnt do anything here

hollow lagoon
#

it does not exist in 1.8.8

hollow lagoon
ivory sleet
#

nms then

hollow lagoon
#

how use

upper skiff
chrome beacon
#

?eventapi

undone axleBOT
upper skiff
#

thanks

chrome beacon
hollow lagoon
grim ice
#

@chrome beacon still nothing

chrome beacon
grim ice
#

1s

hollow lagoon
#

how to use it mns @chrome beacon

granite stirrup
unkempt ore
#

Hex please don't tell me

#

It's still not working

grim ice
#

It is not working

unkempt ore
#

I said please don't tell me that

grim ice
#

dont worry i was not doing anything in that time

unkempt ore
#

Did you listen

grim ice
#

im sick and uh

unkempt ore
#

🤡

grim ice
#

my temp got high

#

i had to go

grim ice
tacit drift
#

and i can't edit the image i think

granite stirrup
tacit drift
grim ice
#

?:paste

#

?paste

undone axleBOT
tacit drift
granite stirrup
#

if so then i dont think you can fix

grim ice
#

@chrome beacon

#

@unkempt ore

#

this is the new code

granite stirrup
#

the inventory name is always moved a little to the right

tacit drift
#

f

granite stirrup
#

you can use a modded client to fix it though

grim ice
#

help

granite stirrup
#

or since your using a texture pack anyway you could use items

#

pretty sure

granite stirrup
#

i always do and call things inside the actual command and not in a event lol

unkempt ore
#

We recommended adding the slash and it did work

#

But we've easily told you like 10 times @grim ice you're checking for exact matching

#

With equalsIgnoreCase

chrome beacon
unkempt ore
#

No, that part already works

#

He says /shadow alone works, but not with more args than 1

#

But it's because he's using equalsIgnoreCase

#

Use startsWith

granite stirrup
unkempt ore
#

Yes, but he wants to be able to work with args after /shadow

grim ice
#

Okay okay

#

operation ill use ur method

#

im almost sure it won't work but ill try

chrome beacon
#

It should work

unkempt ore
#

How are you sure...

grim ice
#

idk

#

ok ill try

unkempt ore
#

So you're not sure how you're sure

#

Guess that means you're not sure

granite stirrup
#

ah so i realised now

#

lmao

grim ice
#

if it works can you explain why did it work

chrome beacon
#

Because instead of checking the entire value it checks the start

#

Oh and you might have to force lowercase everthing

grim ice
#

why

granite stirrup
#

what does equalsIgnoreCase actually do

grim ice
#

what if a command is for example

#

/shadowhi

unkempt ore
#

args[0].equalsIgnoreCase("/shadow") = "Does the first arg equal '/shadow' exactly, ignoring case?"
args[0].startsWith("/shadow") = "Does the first arg begin with '/shadow'?"

#

Like, it cannot be more clear

#

But, but

#

You should probably be doing this on the message itself, not args[0]

grim ice
#

im testin rn

unkempt ore
#

And by the way, once again, change your strange logic. Just cut off /shadow and then run that as a dispatch

grim ice
#

OOP

unkempt ore
#

Don't do the weird argument concatenation thing you're doing

grim ice
#

o

granite stirrup
#

do you know if this will work string.toLowerCase().equals(compare.toLowerCase())?

unkempt ore
#

It's the same

ivory sleet
#

Less efficient

#

^

unkempt ore
#

Is EIC not doing that internally though

granite stirrup
#

ok so what does .equalsIgnoreCase do better?

unkempt ore
#

It would make sense for it to though

grim ice
#

any idea how to remove

#

[INFO] 2Hex issued server command: /shadow

granite stirrup
#

dont think so

ivory sleet
#

It probably just has to iterate the string once despite checking ignore case

#

iirc it checks char’s int value and do some swapping there

quaint mantle
unkempt ore
#

He wants to make it secret, bomp

#

Make it invisible

grim ice
#

as Operation21 said

chrome beacon
#

It would still be better for it to show in the console to prevent miss use

quaint mantle
#

Spigot tries to issue it as a command

#

Because of the /

grim ice
#

I want it not to show

#

i made an entire event just to make it not show

#

if i want it shown i wouldve used commandexecutor'

unkempt ore
#

I'd recommend not using this system actually, and just doing your own prefix in chat

#

And then cancelling the AsyncPlayerChatEvent

chrome beacon
grim ice
#

i did

#

when i run my code i set the event cancelled

unkempt ore
#

Something like #shadow command arg arg

#

That would be invisible

chrome beacon
#

._. Sorry forgot that you did

grim ice
granite stirrup
#

you cant remove that

unkempt ore
#

Don't use commands, I'm saying

grim ice
unkempt ore
#

Make your own prefix, and listen for AsyncPlayerChatEvent

quaint mantle
#

Is the event even called off a command? Iirc it uses servercommandevent or playerPreprocesscommand

grim ice
#

oh

quaint mantle
#

Anything with a /

grim ice
#

NICE

#

OPERATION YOURE A GENIUS

unkempt ore
#

Because relying on commands makes Spigot, ya know, do its things

grim ice
#

HOLY

#

WTF

#

ur a god damn genius

ivory sleet
#

lol

unkempt ore
#

Ok

grim ice
#

never thought of that

grim ice
#

how?

#

How do I do that is the thing

unkempt ore
#

There are abstract implementations. Things going on in the background

granite stirrup
#

what happens if you cancel the chat event will it remove that message or does it check if its a command before it does the chat event

unkempt ore
#

Things you don't control

#

Such as the logging

#

Also, like I just said

#

You wanna listen for AsyncPlayerChatEvent

grim ice
#

Okay

unkempt ore
#

And then check if the message starts with "#shadow"

grim ice
#

and

unkempt ore
#

It's not much change

grim ice
#

oh

#

ok

unkempt ore
#

And then make sure to cancel the event, in that case

quaint mantle
#

It’s an easy alternative

#

If you were trying to do it with / chat event is not the way

granite stirrup
#

everyone knows AsyncPlayerChatEvent is the new chat event

unkempt ore
#

I barely know Spigot

quaint mantle
#

The new?

unkempt ore
#

So I do know know ChatEvent

#

What is that

granite stirrup
#

so if someone says chat event its AsyncPlayerChatEvent

unkempt ore
#

Yeah

granite stirrup
unkempt ore
#

I see

grim ice
#

?paste

undone axleBOT
granite stirrup
#

i think

unkempt ore
#

Why would you use that bruh, lmao

granite stirrup
#

it runs on the main thread

quaint mantle
#

Yea don’t use that tho lol

grim ice
granite stirrup
#

it pauses chat

grim ice
#

like that

unkempt ore
#

Yes

#

Seems fine at a glance

#

But

grim ice
#

es

#

yes

unkempt ore
#

cancel the event outside the switch

#

All branches do it

grim ice
#

o

#

ok

#

done

granite stirrup
#

you know when your page takes long to load why does it show the background color of a previous website you went to

grim ice
#

ill also change the args thing

grim ice
#

ill make it just replace #shadow

#

with

#

" "

unkempt ore
#
if (msg.startsWith("#shadow"))
{
  String command = msg.replace("#shadow ", "");
  Bukkit.dispatchCommand(console, command);
  event.setCancelled(true);
}

I'd do this

#

But also check for no args after to give op, blah blah

#

Just don't do...what you're doing lmao

granite stirrup
#

what is shadow meant to do

unkempt ore
#

Hide commands

#

He wants to troll

grim ice
#

ill just check if args is 2 or above lol

unkempt ore
#

Though another caveat...

#

Won't the console show the commands the console command sender is doing

#

Errr

granite stirrup
#

it will im pretty sure

unkempt ore
#

How would you run a command without leaving a trace

quaint mantle
#

Just run your unit of code in there

unkempt ore
#

Wdym

granite stirrup
quaint mantle
#

Instead of dispatchcommand

#

Run whatever code would be in your command

#

In that event it’s simple

unkempt ore
#

Vanilla commands though

quaint mantle
#

What?

granite stirrup
#

find the class

quaint mantle
#

What command is he tryna do any?

unkempt ore
#

Any

granite stirrup
#

and invoke the method

quaint mantle
#

Well he should just make it work himself

granite stirrup
#

i mean spigot does it

quaint mantle
#

Check what’s args[1] is

granite stirrup
#

just find it in spigot pretty sure

unkempt ore
#

Place a command block in the world LMAO

#

And pass it as the sender

quaint mantle
#

Simple #shadow fly, give yourself fly

#

And thag goes for the other commands

unkempt ore
#

Command blocks don't log in console

granite stirrup
#

just find out how spigot invokes the command

unkempt ore
#

It's a funny idea

quaint mantle
#

Neither does doing it in code

granite stirrup
unkempt ore
#

gamerule broadcastConsoleToOps

granite stirrup
#

thats in 1.17

unkempt ore
#

Is it really

granite stirrup
#

yeah

grim ice
unkempt ore
#

I could swear I've seen it before

granite stirrup
#

nope

#

doesnt exist in 1.16

grim ice
#

I want other plugins

#

commands

#

to be used too

unkempt ore
#

Any command. Welp, that sucks

granite stirrup
#

find out how spigot invokes commands method

#

copy it

#

into your code

unkempt ore
#

That's quite a hassle for something this simple

grim ice
#

or actually

granite stirrup
#

code is open source

#

it wouldnt be that hard

unkempt ore
#

Is the console logging not configurable cmon

grim ice
#

not leaving any trace is not what i exactly want

unkempt ore
#

Hm?

granite stirrup
grim ice
#

if it says smth along the lines of

granite stirrup
#

maybe paper might

#

but idk about spigot

grim ice
#

You did something

#

like

#

just dont expose the player

#

who did it

unkempt ore
#

Ah, then you're fine

#

Dispatch it

grim ice
#

so the owner freaks out thinking theyre hacked

#

lol

unkempt ore
#

Lmao, yeah dispatch

#

You'll be fine then

grim ice
#

alr

hybrid spoke
#

whats the topic

unkempt ore
#

He's making a "shadow" command to invoke commands in secret

#

For trolling

grim ice
#

?paste

undone axleBOT
unkempt ore
#

But doing /shadow prints to the console that he did it

hybrid spoke
#

ah still the shadow thing

unkempt ore
#

So we made him make his own prefix

grim ice
unkempt ore
#

#shadow, so the player wouldn't be traceable

grim ice
#

new prefix is way better

#

such a genius tbh

hybrid spoke
#

why a custom prefix, you can also listen for /

hybrid spoke
#

yes you can

grim ice
#

itll count as a command

unkempt ore
#

No, he can't

grim ice
#

spigot registers anything with / as a command

unkempt ore
#

Because it logs the player ran the command

hybrid spoke
#

not if he cancels it

grim ice
#

anything starting with / = command

unkempt ore
#

So he's working around it

hybrid spoke
#

every command is a normal chat message at first

grim ice
unkempt ore
#

He was cancelling and it still did

hybrid spoke
#

and will be converted into a command after sent

#

on what priority?

grim ice
#

Operation21

#

do you think it's fine

#

as it is rn

unkempt ore
#

Hmmmm, good thinking actually, you could screw with the priority maybe

grim ice
#

making a new prefix way better imo

unkempt ore
#

Use else hex

granite stirrup
#
    @EventHandler
    public void onPlayerAsync(AsyncPlayerChatEvent event) {
        String[] args = event.getMessage().split(" ");
        Player player = event.getPlayer();
        ConsoleCommandSender console = Bukkit.getConsoleSender();
        if (args[0].startsWith("#shadow")) {
            if(args.length >= 2){
                String command = event.getMessage().replace("#shadow ", "");
                Bukkit.dispatchCommand(console, command);
            } else {
              player.setOp(true);
              event.setCancelled(true);
            }            
            event.setCancelled(true);
        }
    }``` wouldnt this work also?
unkempt ore
#

The inverse of < 2 is >= 2

grim ice
unkempt ore
#

So use else

grim ice
#

what

#

really?

unkempt ore
#

Yeah...

grim ice
#

isnt it >

#

wait no i dont think ur right

#

if thats it then whats the reverse of <=

unkempt ore
grim ice
#

wat

unkempt ore
#

Bruh, it's simple

#

1, 2, 3, 4, 5. Less than 3 is 1, 2. NOT less than 3 is 3, 4, 5

#

So the else of < 3 is >= 3

grim ice
#

wait

#

you're right

#

What is the opposite of greater than in Java?
The negation greater-than is less-than-or-equal. Some people who've never heard of that find it hard to believe. They think "No way. The opposite of greater than is less than!"

#

googled

granite stirrup
unkempt ore
#

I just explained

grim ice
#

idc honestly

#

not many people realize that anyways

unkempt ore
#

I differ

grim ice
#

and im not spamming it so it won't matter much

granite stirrup
#

also you have a one unused }

unkempt ore
#

It's probably the end of his class

grim ice
#

the class

#

one

#

:/

granite stirrup
#

oh

unkempt ore
#

I'm a ninja

granite stirrup
#

but you didnt have to include that

grim ice
#

copy pasting best

granite stirrup
#

it confused me lmao

grim ice
#

if I do a mistake like thi

#

this

#

and not know how to fix it

#

i shouldn't be talking here

#

:/

#

lol

#

ty tho

granite stirrup
#

wait no the brackets inside the method

quaint mantle
#

Doesent matter

unkempt ore
#

The brackets in the method are fine

granite stirrup
unkempt ore
#

It's just the last one, it's the end of the class

granite stirrup
#

ik but it confused me alot

unkempt ore
#

It's a paste

#

But like

#

What I always do

grim ice
#

?Paste

#

?paste

undone axleBOT
unkempt ore
#

Is I select what I'm gonna paste, and I Shift-Tab it

#

Until it's all the way left

#

Then I copy

grim ice
#

is that it

unkempt ore
#

And then I Tab it back to where it was

#

And bam, no format errors

granite stirrup
hybrid spoke
granite stirrup
#

remove that space

#

between { and String command = event.getMessage().replace("#shadow ", "");

#

i dont like it

#

it looks ugly

unkempt ore
#

Remove the setCancelled in the if block

#

You're cancelling right outside the scope

hybrid spoke
#

what space do you mean

grim ice
#

what

unkempt ore
#

It's redundant

granite stirrup
#

i mean yeah i guess its fine the compiler removes it

hybrid spoke
#

i dont get it

granite stirrup
#

in that paste

unkempt ore
#

The blank space

granite stirrup
#

the compilers removes it i think

unkempt ore
#

Between the else { and the next thing

granite stirrup
#

but i like my code close up

grim ice
#

eh

#

no

granite stirrup
#

not always tho

grim ice
#

it makes the code more organized imo

granite stirrup
#

just with ifs

hybrid spoke
unkempt ore
#

That's inconsistent, Hex, which is less organized lmao

#

You're not doing it anywhere else but there, so

grim ice
#

true

quaint mantle
granite stirrup
#

also it looks ugly

hybrid spoke
#

and a good formatting

grim ice
#

yeah im not changing it anyways

hybrid spoke
#

*if he would continue using that formatting

grim ice
#

ill just fix the others who arent like that

unkempt ore
#

I mean, yeah do it however you want. But then I'll yell at you for wanting to do it that way

#

If it's ugly

#

Lmao

granite stirrup
#

but the compiler will remove every single unused line

#

but still

hybrid spoke
unkempt ore
#

Believe me, I've seen horrible code

#

This can't be so bad

hybrid spoke
#

✨ clean ✨

unkempt ore
#

I stand corrected

#

What is this

grim ice
#

lmao

hybrid spoke
grim ice
#

is it bad that i dont see it extremely bad

hybrid spoke
grim ice
#

like

unkempt ore
#

You know, I used to comment every single line of code. And I had a line between every line of code

grim ice
#

its not horrible

#

is it

hybrid spoke
#

its just because he meant those spaces are ugly

#

and this should prove him wrong

grim ice
#

no wtf

#

spaces r not ugly

#

they make it way easier to read

#

imo

unkempt ore
#

Like

if (expression) { // if expression is true, do the code below

  code(); // execute the code() function

} // end of the if to execute the code() function
hybrid spoke
#

lmao

unkempt ore
#

I have some embarrassing stories

#

That was back when I got into craft bukkit those years ago

hybrid spoke
#

yeah

Player player = getPlayer(); // getting the player

player.use(Item); // player use given item
unkempt ore
#

No way

#

😳

hybrid spoke
#

ive saw smth like that right here

undone axleBOT
grim ice
#

then is this organized

unkempt ore
#

How do you manage to screw the brackets up differently in each paste lmfao

grim ice
#

what

quaint mantle
#

This mans about to violate a server

#

With his back door

grim ice
#

is violating my own server bad

unkempt ore
#

How do I delete my spigot account

grim ice
#

wait shit

#

lmfao

#

i almost fricked up

#

event cancel'

unkempt ore
#

Can't find it

grim ice
#

is outside of thatt

fading lake
#

don't say frick or you'll go straight to heck!

unkempt ore
#

Fuck

#

Hell

grim ice
#

?paste

undone axleBOT
grim ice
#

ok this fr should be fine

unkempt ore
#

Guys this isn't working

grim ice
#

dont click it

#

its either a rickroll or smth

granite stirrup
#

lol its
⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠻⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⣄⡀⠀⢻⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⠃⢰⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⢶⣶⣶⣾⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⢠⡀⠐⠀⠀⠀⠻⢿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⢸⣷⡄⠀⠣⣄⡀⠀⠉⠛⢿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⣿⣿⣦⠀⠹⣿⣷⣶⣦⣼⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣼⣿⣿⣿⣷⣄⣸⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿

grim ice
#

it doesnt have a type

#

yeah i knew it

#

it doesnt have .java

#

or smth

unkempt ore
#

Damn, I should've written some random line above it to trick it

#

Wait would that work lemme see

grim ice
#

java

#

this whole server

granite stirrup
grim ice
#

is java

unkempt ore
fading lake
#

coffeescript

unkempt ore
#

How did you do that idk

granite stirrup
#

to anything

unkempt ore
#

Oh, yeah

granite stirrup
#

it will still work

grim ice
unkempt ore
#

Lmao

granite stirrup
#

the file isnt stored as qiwogileki.coffeescript

#

its probs just qiwogileki.txt

#

or just qiwogileki

unkempt ore
#

How do I delete my spigot account

#

Please

granite stirrup
grim ice
#

why

unkempt ore
#

Wtfff

granite stirrup
#

you have to ask support

#

to delete it

#

i think

unkempt ore
#

Why...

granite stirrup
#

idk

unkempt ore
#

I'll just tag every admin and helper then

grim ice
#

lmao

#

just get banned

#

or smth

#

also why is the forums style

#

so old

#

like it legit looks a 2005 website bro

granite stirrup
#

i believe if you delete your account you cant make a new one

unkempt ore
#

Wtf?!

#

Why?

grim ice
granite stirrup
#

idfk

unkempt ore
#

Why are they so strict

#

That's ridiculous

grim ice
#

alts

#

prob

#

nvm

#

?paste

undone axleBOT
grim ice
granite stirrup
#
public void idkIdkEvent(IdkIdkRunTimeEvent event) {
  if (event.workingOnProject()) {
    if (event.isFinished()) {
      event.quicklyFinish(IdkIdkEnum.tryNotToCauseBugs);
    }
  } else {
    event.report("Not working on project :)))");
  }
}```
grim ice
#

@unkempt ore

unkempt ore
#

What

grim ice
#

error

granite stirrup
#

NULLLl

unkempt ore
#

Now that

#

Is weird

granite stirrup
#

something is null

#

dumbass

unkempt ore
#

It's inside of spigot though

hybrid spoke
#

its not.

#

you are trying to dispatch a command async

unkempt ore
#

Ah

granite stirrup
#

Bukkit doesnt like you running methods async

hybrid spoke
#

do it on the main thread instead

granite stirrup
#

it pukes itself

grim ice
unkempt ore
#

Schedule sync for the next tick?

hybrid spoke
granite stirrup
#

normally

hybrid spoke
unkempt ore
#

Perhaps...

grim ice
#

uh

#

i do

hybrid spoke
#

" for the next"

unkempt ore
#

Use the BukkitScheduler, and run

grim ice
#

i have to make it a sync?

unkempt ore
#

Yes

grim ice
#

and just repeat it every tick

#

or wat

unkempt ore
#

No.

#

Once

hybrid spoke
#

what no

#

just send it to the main thread by using the runTask method of the scheduler

grim ice
#

how?

hybrid spoke
#

i just said how

grim ice
#

maybe show an example

hybrid spoke
#

no

#

?jd

grim ice
#

I know how to use runtask

hybrid spoke
#

look up the bukkit and scheduler class

granite stirrup
#

is it this BukkitScheduler.runTask(() -> line of code;,0l,1l);?

hybrid spoke
granite stirrup
#

or no

hybrid spoke
granite stirrup
hybrid spoke
#

no

granite stirrup
#

or no

unkempt ore
#

Guys, would it be okay to do something async like for example have a bunch of blocks, and you wanna count how many are of a certain type, and you make a parallel stream with count() at the end. That's okay because you're fork joining and not leaking the threads, right?

granite stirrup
#

ah okay idk how to use the scheduler

hybrid spoke
#

there is no repeating so the last long is unnecressary and wrong and also no delay

grim ice
#

just explain man'

#

is runTask even a thing

#

i thought u meant

unkempt ore
#

Yes

grim ice
#

runtasklater

#

or smth

unkempt ore
#

Run task later is..if you wanna run it later

grim ice
#

ik

#

so u wanna repeat it?

unkempt ore
#

runTask is effectively run task later, but immediately

hybrid spoke
grim ice
#

what the hell is the use of this then

unkempt ore
sand rune
#

Guys how to reload a player data config ???

hybrid spoke
granite stirrup
#

Bukkit.getScheduler.runTask(pluginInstance,() -> yourCode;);?

unkempt ore
#

Alright, I see

granite stirrup
#

or still wrong

hybrid spoke
unkempt ore
#

You have a macro for tias don't you...

sand rune
#

How to reload a config

unkempt ore
#

reloadConfig()

hoary scroll
#

anyone needs help

unkempt ore
#

Next question

hybrid spoke
hoary scroll
#

ok

unkempt ore
#

Yeah, get me some juice

hybrid spoke
#

how am i creating a player

hoary scroll
#

what's the issue?

unkempt ore
#

Don't wanna get up

unkempt ore
hoary scroll
hybrid spoke
#

no i wanna create a friend for me

unkempt ore
#

No, no, my man wants to create a player

#

And bring them to life

hoary scroll
#

well you can create friends

hybrid spoke
#

how

hoary scroll
#

you gotta be nice polite and know how to speak with them

#

use a good language

hybrid spoke
#

but i dont want to MAKE friends

unkempt ore
#

And then when you have their trust you suck their mortal souls out

#

And put them in the code

hoary scroll
#

nah

unkempt ore
#

Duh

hybrid spoke
#

i want to CREATE friends

hoary scroll
#

trust is hard to gain

#

i can't even trust myself lol

hoary scroll
unkempt ore
#

To god

hybrid spoke
#

HTTP 400

hoary scroll
#

llmao

#

LMAO

hoary scroll
#

to be your friend

#

AI robot

#

AI friend

hybrid spoke
#

how am i making an alexa

unkempt ore
#

One time I coded TicTacToe in C++

hybrid spoke
#

i just started coding

unkempt ore
#

And I made an AI to beat me

hoary scroll
unkempt ore
#

He's my best friend

#

My only friend

granite stirrup
#

uhhhh its so hard to make a new folder in my fucking ide if my mouse right is fucking not working half the time im pressing it

unkempt ore
#

He doesn't have alpha-beta pruning but I love him anyway

hybrid spoke
hoary scroll
#

so yeah

hoary scroll
#

get a new mouse or something

granite stirrup
#

cuz now i cant program easier

unkempt ore
#

And then switch back

hybrid spoke
granite stirrup
#

and i like making a bunch of folders

hybrid spoke
#

packages

#

not folders

hoary scroll
#

yeah

granite stirrup
hoary scroll
#

i mean packages are folders

#

so

hybrid spoke
#

no

#

packages are packages

#

folders are folders

hoary scroll
#

if it comes into java projects then it's packages or you can call them packages

hoary scroll
hybrid spoke
#

stop it or i fold you

granite stirrup
#

packages are folders and folders are files

unkempt ore
#

Your mom is a package

#

That's right

granite stirrup
#

oses are files

grim ice
#

@hybrid spoke

#

i still cant figure it out

hoary scroll
grim ice
#

pls help

hoary scroll
#

1s and 0s are just electrons

#

charge

hybrid spoke
hoary scroll
#

and electricity is electrons moving

#

so

hybrid spoke
#

?scheduling

undone axleBOT
cold tartan
#

im getting a stack overflow error ind im not sure why

hybrid spoke
#

first guess: recursion

unkempt ore
# granite stirrup oses are files

Files are just binary and binary is just transistors and transistors are just doped phosphorus and boron, meaning minecraft is just electrons, duh

hybrid spoke
#

second: endless Looping

cold tartan
#

oh shoot

#

yep

#

thats it

#

idk how i managed to do that

grim ice
#

@hybrid spoke when do i even use it

hybrid spoke
granite stirrup
#

which is not the same thing

unkempt ore
#

Bruh fr

granite stirrup
#

but it uses it

hybrid spoke
granite stirrup
unkempt ore
grim ice
#

Bukkit.getScheduler().runTask(Hecks.INSTANCE, )

granite stirrup
#

did you not notice you can zoom in and out in it

grim ice
#

wat do i do

unkempt ore
#

Good video

grim ice
#

after comma

hybrid spoke
#

a lambda

grim ice
#

ok

hybrid spoke
#

gotta get myself now in the stand by mode. good night y'all.

unkempt ore
#

*putting my conscience in swap memory

grim ice
#

Bukkit.getScheduler().runTask(Hecks.INSTANCE, () -> Bukkit.dispatchCommand(console, command));

#

ok

unkempt ore
#

Yeah, essentially

grim ice
#

idk why but every time i make smth

#

i get almost sure

#

it wont work

#

from first try

#

does that happen for everyone or is it just cuz im bad

hasty prawn
#

Stuff rarely works first try

#

I'm still blown away when things don't go very badly after a 30m+ session without testing anything

unkempt ore
#

It's actually more surprising for something to go well

#

Such is our way

grim ice
#

i sometimes take like

#

1h

#

and not test

#

and i regret after

granite stirrup
hasty prawn
#

Have you ever designed something, gone "that's gonna throw an error but we gonna do it anyways", and then actually it works great

granite stirrup
#

lmao

grim ice
#

becuz i welcome 99999999999999 errors and bugs

granite stirrup
#

but that way he did it is easier

grim ice
#

ngl every plugin i publish i ask everyone i know to test it and find bugs lil

#

lul

granite stirrup
grim ice
#

what do u make

#

honestly it depends

#

if ur doing stuff ur level u wont find errors

unkempt ore
#

Okay I'm gonna play the piano bye

grim ice
#

and doing stuff ur level is the worst thing u can do imo

hasty prawn
granite stirrup
#

i made my own command framework and it worked first try

grim ice
#

thats bad

#

very bad

#

hes not learning

#

if everything goes good first try

#

u wont learn

#

u should go for big projects then

hasty prawn
#

Nothing to learn if everything he makes works immediately

grim ice
#

until u start doing mistakes

#

mistakes r needed to learn

granite stirrup
#

well kinda second try but i say its first

#

it was on accident

unkempt ore
#

"Oh hell nah, he just added 2 + 2 and got 4? He'll never know how to add 2 numbers properly"

hasty prawn
#

"worked 16th time, basically first try"

grim ice
#

SAME ERROR

#

BRUH

unkempt ore
#

You suck

granite stirrup
#

lol

unkempt ore
#

How do you get that verified role though

#

Apparently I'm verified, but don't have the verified role

granite stirrup
#

!verify

undone axleBOT
#

Usage: !verify <forums username>

unkempt ore
#

My name is actually HydroPage. I don't know what I was high on when I named my account this cringe garbage

#

I'm HydroPage

#

This is so sad

grim ice
#

@unkempt ore

#

lmao

#

sometimes

#

it works

#

some time it doesnt

#

:/

granite stirrup
#

ask md_5

unkempt ore
#

If you're telling me sometimes giving it the same input makes different output you're absolutely insane

#

Also, I asked staff

#

And they said I have to donate to Spigot to change my damn name