#help-archived

1 messages · Page 99 of 1

undone current
#

I'm trying to make a large oval wall with worledit. I selected ellipsoid and have my center along with my two radii set. How do I create just the outline of an oval?

naive goblet
#

put a h before the command?

#

Instead of //cyl then //hcyl f.i

frigid ember
#
>.... [16:57:58 WARN]: [Essentials] Task #156626 for Essentials v2.17.2.0 generated an exception
java.lang.NullPointerException: null
at com.earth2me.essentials.xmpp.XMPPManager.updatePresence(XMPPManager.java:142) ~[?:?]
at com.earth2me.essentials.xmpp.EssentialsXMPP.updatePresence(EssentialsXMPP.java:113) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:431) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Tuinity-"8499889"]
at java.lang.Thread.run(Unknown Source) [?:?]```
#

help plz

#

this happens any time someone leaves

brisk mango
#

dont use essentials is the way to go

frigid ember
#

im using essentials, it's something im extremely familiar with. What else should i use?

brisk mango
#

when i had a server i used my own plugin instead of essentials

frigid ember
#

no server i've ever been on hasn't used it

brisk mango
#

good servers dont use that shit

frigid ember
#

I don't have a custom plugin for that. If i did, i wouldn't be using it.

#

obv

brisk mango
#

well theres nothing much you can do about this

frigid ember
#

and im not gonna ask my dev to replace essentials

#

hes got enough on his plate as is

#

so this error that spams console when someone leaves is unavoidable?

obtuse rose
#

Getting rid of essential is an essential tbh

frigid ember
#

Then what do i replace it with

#

seriously, i've used this plugin for years

brisk mango
#

Getting rid of essentials is essential*

frigid ember
#

You're not helping

brisk mango
#

well i dont have an answer to that question

frigid ember
#

saying "Get rid of it" with no extra, isn't helping

#

I am asking, what to get to replace it.

brisk mango
#

i dont have an answer

tiny dagger
#

contribute don't drop

frigid ember
#

So what should i replace essentials with, as it's the only thing i've known how to use. If it's a premium plugin, i'm fine to buy it, as this server is well funded

obtuse rose
#

You can always pay someone to do it

brisk mango
#

CMI

#

still not best but better than essentials

frigid ember
#

oh wow this actually looks really good

obtuse rose
#

Essentials create so much files that it will be problematic when your server grows

frigid ember
#

Fair

brisk mango
#

yeah as ive said its shit @obtuse rose

frigid ember
#

Rn i'm working with my dev to make a fork of Tunity that uses zstd compression instead of zlib, so thats why i don't wanna hastle him with this rn

obtuse rose
#

For world?

frigid ember
#

Yeah, better world compression

#

it should be about a 20-30% decrease in space

#

as zlib is extremely outdated, and updating it to zstd would make a huge dent in it

#

it's just a pain lmao

timid valley
#

@frigid ember why do you have XMPP loaded? do you actually use it?

torn robin
#

I always wondered if any servers actually used XMPP

timid valley
#

2 servers do

#

the devs put in a metrics on who actually set their configs for it, only 2 servers

torn robin
#

nice

frigid ember
#

Ah, i forgot that was installed

timid valley
#

remove the xmpp module

frigid ember
#

i was wondering why tf xmpp was showing up

#

could've swore i deleted that

timid valley
#

oh 23 servers, 0.2%

#

you dont

torn robin
#

ew

timid valley
#

its gone

brisk mango
#

download 1.7.10 spigot

#

no its not

#

this guy is just a troll

#

ignore him

torn robin
#

There are some alternative websites that offer a clone of the 1.7.10 jar file

timid valley
#

it is gone, the sources are not avail. it was only released in final batches of binary patch files

#

yes and those websites are distributing unknown versions

torn robin
#

though I would strongly recommend you simply use an up-to-date non-archaic version

brisk mango
#

👌

timid valley
#

the validity of any file you find there can not be verified

#

it may contain a virus

#

none of us are going to recommend it

#

at least use 1.8 or something dang

brisk mango
#

how about doing

#

java -jar BuildTools.jar --rev 1.7.10

#

BuildTools

torn robin
#

you don't use 1.7.10

timid valley
#

buildtools came out in 1.8

torn robin
#

I don't think BuildTools supports 1.7.10

brisk mango
#

ah

#

okay

#

just do 1.8.8

#

what is wrong with 1.8.8

#

lol

timid valley
#

<_< literally everyone whos on ancient versions is on 1.8 and now we got a 1.7 guy

#

man

worn temple
#

lol

brisk mango
#

1.7 is dogshit

#

version

#

yeah

worn temple
#

haven't seen a 1.7 person in literal years

brisk mango
#

no

timid valley
torn robin
#

1.7 was only good for the modpacks

worn temple
#

1.8.8 was the last version with the original pvp

#

and now mods are on more current versions, 1.12, 1.15

brisk mango
#

no they are not.

#

they are in 1.8.8

worn temple
#

No, they are 1.8.8

brisk mango
#

minemen is in 1.8.8

torn robin
#

(╯°□°)╯︵ ┻━┻

brisk mango
#

and just uses protocols to let older versions join

#

its not

#

i dont know arcane

#

but no servers run on 1.7.10

#

how do u know it

#

prove it

torn robin
#

arcane supports up to 1.12

brisk mango
#

shit version

torn robin
#

I imagine they use custom server software

worn temple
#

dude, not one server runs 1.7.10. If they have it, its literally for no reason other than to support people like you. 1.8.8 was the last update before the new pvp mechanics. and its way better

torn robin
worn temple
#

doesn't matter, all those minor versions are compatible ¯_(ツ)_/¯

brisk mango
#

it does

torn robin
#
13 issues fixed
From released versions before 1.8
MC-2324 – Player trapped/cannot get out of flowing water
MC-17595 – Villages still spawn when "village" is not in the preset
MC-31577 – Some arrows shot into a block never despawn
MC-33265 – Words are divided in chat.
MC-36260 – Nonstandard parts of nonstandard character skin still show with invisibility potion.
MC-42150 – Christmas trapped chests do not have texture of presents
MC-47726 – Block breaking animation may occasionally change to a weird color
From the 1.8 development versions
MC-57016 – Water and lava glitches and shows blocks as if air
MC-72469 – Fence gate smooth lighting inconsistent
From the current version, hotfixed
MC-94199 – Realms crash when using arrow keys on advertisement page.
MC-94467 – When closing a world on Realms, the world remains on closing and players could not switch to the same world or another world.
MC-94651 – Ampersand will trim realm name and description.
MC-94820 – Realms: an error occurred (401): invalid session id.
Video
timid valley
#

there is no 1.8.9 server, only client

subtle blade
#

1.8.9 was a client sided update to resolve client sided issues

#

Spigot never released a server

#

nor did Mojang if I recall correctly

#

Though all that is irrelevant because 1.8.8 and 1.8.9 are both 5 years out of date. Update your server

#

?bt

worldly heathBOT
worn temple
#

Nope, because all 1.8.x versions are compatible with each other

subtle blade
#

You're on your own

#

We're not going to help you build 1.8 anymore

#

Do it yourself

#

Read the wiki

torn robin
#

(you do java -jar [jar] --ver 1.8.8)

#

gl

brisk mango
#

why did u tell him

subtle blade
#

Or just ignore me

#

k

#

thanks

timid valley
#

i hope your least ok with encouraging forks for 1.8 choco, cause otherwise thats just dangerous to tell people to use spigot

torn robin
#

:P

worn temple
subtle blade
#

Right, Aikar. That's exactly what I want to be doing

#

Why the fuck would anybody in their right mind want to encourage the use of 1.8?

worn temple
#

Kinda hard to miss the wiki section if you go onto the site for even a moment, but okay

subtle blade
#

Fork or not

timid valley
#

i didnt say encourage lol

#

well ok i did

subtle blade
#

encouraging forks for 1.8 choco

timid valley
#

i didnt mean it that way

subtle blade
#

yea

#

If you're using 1.8, you're entirely on your own. You will receive absolutely no support whatsoever

worn temple
#

You shouldn't be using 1.8 at all

timid valley
#

i meant in a "if you must use this shitty version, at least use a fork over spigot as forks have some of the exploits patched"

subtle blade
#

Figure the shit out yourself

torn robin
#

Gang you should use a 1.13.1.15 fork

#

it's much more updated

subtle blade
#

I'm genuinely getting sick of answering 1.8 questions

timid valley
#

i dont even recommend paper for 1.8 because we dont have but one of them patched over spigot, still others

worn temple
#

Its insane too the amount of people looking for support for my plugins on 1.8.x

#

I hate it

torn robin
#

or or

#

just use 1.15

subtle blade
#

yea im out for now lol

#

im going to edit

brisk mango
#

supporting versions from 1.8 - 1.15

#

lol

#

good idea

worn temple
#

or or or, just use 1.15.x, and no via version?????? literally just include one plugin if you want the old shittier pvp mechanics

subtle blade
#

Don't you even think about starting your shit because you're on my last straw, temedy

brisk mango
#

anyway good luck gangster

timid valley
#

hes already stil lbeen doing it choco

torn robin
#

n o

brisk mango
#

aikar what have i been doing?

torn robin
#

we're saying don't use 1.8

worn temple
#

fuck the 1.8 clients

timid valley
#

being a troll

torn robin
#

because it's ancient

worn temple
#

no one should be using it

torn robin
#

you're clinging on to it

worn temple
#

yes!!

torn robin
#

yes

brisk mango
#

you said do not use != to compare objects

timid valley
#

everyone is gangster 😛

brisk mango
#

which was wrong

#

how was i being a troll?

subtle blade
#

Drooooooooooooooooop ittttttttttt

worn temple
#

because you aren't comparing the objects, you are comparing the memory location of them. !Objects.equals() is better

torn robin
#

Gangster it's like telling someone to get a new car but they don't want to because their old, unsafe, slow, inefficient, car has a nice horn

radiant pollen
#

what is happening

brisk mango
#

youre comparing the objects with the equality operator.

worn temple
#

oh, external emotes are turned off

brisk mango
#

and you use .equals if the class has overriden the method

#

anyway .equals() would just be wrapper, that doesnt mean its better, and it depends on the use case

torn robin
#

yes

radiant pollen
#

oh... yeah 1.8 sucks. don't expect help

torn robin
#

that is the responsible answer

#

don't create a 1.8 server

#

is what we're saying

#

I recommend you take our advice

worn temple
#

Literally any class worth using will have it overridden. You should not be using the equals operators for those kinds of comparisons.

torn robin
#

literally everyone on here is telling you not to

radiant pollen
#

You can create a 1.8 server all you want, just don't expect help.

torn robin
#

perhaps there's a reason

worn temple
#

Its a standard. Not just my opinion.

#

Its convention.

brisk mango
#

what if you want to check if the objects are same instance?

worn temple
#

Then yes, you can use that, but that's only because instance means same memory location.

brisk mango
#

thats when you use ==.

#

then stop saying bullshit again lol

torn robin
#

I think temedy is just arguing semantics

brisk mango
#

!Objects.equals() is better

worn temple
#

Even then, shouldn't be using that because there's really no reason to be comparing for instances

brisk mango
#

i mean i use them quite often 😛

#

so there is a reason

torn robin
#

WOAH NO WAY

#

how'd i find that

#

damn im a good detective

#

dark web shit

radiant pollen
#

I like how you give him a lmgtfy link and then give him the actual link.

torn robin
#

^^^

radiant pollen
#

Kind of defeats the purpose of the lmgtfy... :/

torn robin
#

ikr man

#

tor browser

#

vpn

#

i have the whole setup

#

vpn connected to a vpn

obtuse rose
#

Omg you're the best @torn robin

#

👍 😋 💯

torn robin
#

🦆 🦆

#

what is a good use for XOR

#

like ever

#

aside from core logic

subtle blade
#

bitwise operations

torn robin
#

i hoped you were smarter

#

and bitwise operations

subtle blade
#

you're going to be sorely disappointed

#

1.8 is not appreciated anywhere

#

Forge will outright ban you if you use it

torn robin
#

you've reached the maximum something alright

subtle blade
#

I wish we'd do the same

torn robin
#

like whose actually used XOR

subtle blade
#

(from their Discord)

torn robin
#

and for what

dusty topaz
#

i encrypt passwords with xor

#

😎

torn robin
#

🤔

cloud sparrow
#

did we ask?

torn robin
#

if anyting forge is more complicated but ok

full tusk
#

hey im trying to make an arrow invisible by sending a packet with this code java for(Player p : Bukkit.getServer().getOnlinePlayers()) { PacketPlayOutEntityDestroy packet = new PacketPlayOutEntityDestroy(arrow.getEntityId()); ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet); }
but its not doing anything
any ideas how i could fix it? using 1.15.2

worn temple
#

1.8 is over 6 years old.

subtle blade
#

.0 maybe

#

.8 is at least 5

worn temple
#

Its broken, bad, and just unsupported.

torn robin
#

@full tusk could you instead listen to the EntityCreate packet and cancel it?

#

rather than sending a EntityDestroy packet

subtle blade
#

Though really if you're arguing about whether something is 5 or 6 years old, you're making the wrong argument

worn temple
#

1.8.0 is 6, 1.8.9 is 5

full tusk
#

is that possible without protocollib?

torn robin
#

well yes

worn temple
#

But yeah, what choco said

full tusk
#

ok thank you

dusty topaz
#

not supporting u btw

#

use latest

torn robin
#

1.8.9 was released in December 9, 2015

#

1.8 was September 2, 2014

worn temple
#

Sept. 2, 2014 = nearly 6 years
Dec. 9, 2015 = nearly 5 years

#

1.8.0 and 1.8.9 respectively

#

Again, completely wrong argument here

#

Its like arguing about how old your broken down car is, doesn't matter since its broken down and not working as it is

cloud sparrow
#

Outdated version has left the chat

old barn
#

How do I delete the loaded chunks in the world?

worn temple
#

lol he actually left

#

@old barn delete the world

old barn
#

'-

worn temple
#

If chunks have been loaded, you can't delete them without corrupting the world

old barn
#

Ah, okay

worn temple
#

Yeah, sorry

agile girder
#

If my machine has 32gbram and I want to add all of it to my server how many would need the machine?

#

like 2gb ram for the machine and 30 for the server?

full tusk
#

whats your machine running on

worn temple
#

Adding that much ram to a server can be more harmful than helpful. Dedicate as much as you need and expand it when needed.

#

(Not an MC thing, but rather a java thing)

#

Also, the amount of ram a computer actually utilizes depends almost entirely on the operating system and running processes. Not what its actual physical specs are.

#

By the time you need 30gb for a server, you should be splitting that across multiple JVMs (meaning, multiple servers proxied together with bungee)

torn robin
#

^

#

im helpful too

woeful mural
#

Is it possible to allow the same player name to be connected to BungeeCord twice, but not disconnecting the first player who joins it?

#

Like disabling the "You are already connected to this proxy" message

hoary parcel
#

Why would you want that?

#

Do they have the same uuid?

woeful mural
#

They don't have the same UUID, only same player names

hoary parcel
#

So cracked?

woeful mural
#

I'm using a fork of Bungeecord to let both Bedrock players and Java players join the same proxy

hoary parcel
#

Or how is that possible?

#

Oh

woeful mural
#

And would like to both being able to connect at the same time if it's possible

worn temple
#

Oh, same proxy, not same server, got it. I was wondering how the hell you had cross platform for java lol

woeful mural
#

Haha yeah xD

hoary parcel
#

You would need to patch this then

#

Not sure if anything else relys on names being unique

#

That might below up elsewhere

woeful mural
#

Got it working pretty good to sync everything in the player data, like balance, rank and everything. The only remaining issue is that someone can buy a Bedrock account and select the same Java name as someone already has, and that would disconnect the Java player 😛

hoary parcel
#

Not everything uses uuids, especially not for plugins

woeful mural
#

Ah will look into that, thanks!

dry shuttle
#

Is there a difference performance wise between Scheduler.scheduleSyncDelayedTask() and Scheduler.runTaskLater() ?

subtle blade
#

one is modern

#

use runTaskLater()

frigid ember
#

thoughts on using Collections.shuffle for list of objects like List<Town> and is there a better way? Using it a few times but it seems to be too simple to be true!

subtle blade
#

I'm like 90% sure scheduleSyncDelayedTask() and the like are deprecated

silk bane
#

the version that uses a runnable isn't but the one that accepts a bukkitrunnable is

#

I guess if you don't need to be able to cancel a task or anything like that you might as well use scheduleSyncDelayedTask and save yourself an object

nimble stump
#

@frigid ember that’s a fine way to permute a list if that’s what you want, depends how much you want to actually shuffle it

#

If all you want is to move a few things around then you could do it more efficiently in a different way since #shuffle is a linear time op

#

But if you want to randomize the list order completely that’s the way to go

frigid ember
#

Pretty sure this is a bug - someone give me a heads up if they know anything.

Basically when I set the fuse timer on a TNTPrimed entity, mc does not actually decrease the ticks. It just stays at whatever value I set. I believe this is a bug

woeful mural
#

Is it an easy process (in the source) to allow one more protocol version to connect to the BungeeCord?

small citrus
#

2 questions, 1st why do many tutorials make you create a package for events and a package for commands? Is it necessary or something? And second can I have multiple functions with the same event?

woeful mural
#

Or does more have to be changed than just an array of int?

tawdry raven
#

Hey ive purchased a resource, payment has gone through but i cannot download it. its trying to make me re-purchase it

errant lava
#

hey does this server help people trying to code their own custom plugins?

torn robin
#

yes

worn temple
#

@woeful mural no, probably requires a lot of changes

torn robin
#

I always recommend the forums but most programming questions we can help you out with

worn temple
#

@tawdry raven Give it time, probably just a slight issue on the frontend, if it continues over a day or two, open a thread on the forums, since more staff will be able to help there

#

@small citrus while not required, basically recommended. Its for readability, maintainability, and access control. Its a standard java convention to separate related classes into packages

small citrus
#

Makes sense

#

And also can I have multiple event handlers that are the same but in different classes?

worn temple
#

Yes, why you wouldn't put them in the same class tho, I don't know

frigid ember
#

Pretty sure this is a bug - someone give me a heads up if they know anything.

Basically when I set the fuse timer on a TNTPrimed entity, mc does not actually decrease the ticks. It just stays at whatever value I set. I believe this is a bug

-Bump

worn temple
#

This isn't a forum, if you want to bump posts, make a forum thread

frigid ember
#

@worn temple or you could just answer the question?

worn temple
#

don't know the answer lol ¯_(ツ)_/¯

frigid ember
#

Would it have been better if I just repeated the same question instead of saying “bump”?

worn temple
#

no, it just gets spammy in a discord server

golden vault
#

neither

frigid ember
#

So I ask once, people who may know the answer don’t see it, tough luck?

worn temple
#

Questions like that should be asked on the forums, wider audience, etc

frigid ember
#

Dumbest thing I’ve ever heard. Pretty sure 2 hours of time is good padding

worn temple
#

dude, its a discord server with a 10th of the users on the forums

frigid ember
#

Ight, I’ll ask on the forums

worn temple
#

No one here knows the answer, so go to the forums

golden vault
#

bumping or repeating your question while your question is still visible is pointless and annoying

worn temple
#

^

neon matrix
#

How does Bukkit track the logger each Plugin uses, to redirect print & println from System.out ?

odd knoll
#

Is there an event fired in 1.8.8 when a fish bites onto your rod? I thought PlayerFishEvent would be fired but it isn't.

worn temple
#

> using 1.8

nimble stump
#

@woeful mural if by different protocol version you mean different versions of the java protocol as opposed to something like bedrock+java, that’s already done in the default bungeecord

#

The trickier bit is supporting different protocol versions on the spigot server side

woeful mural
#

@nimble stump Ah, I was thinking if I could allow 1.7 clients to connect to my BungeeCord of the latest version and send 1.7 players to another spigot server on the network

nimble stump
#

That would probably work

#

BungeeCord isn’t version-specific

woeful mural
#

Do you know where that can be changed?

worn temple
#

Don't support 1.7

nimble stump
#

Where what can be changed

woeful mural
#

Allowing another protocol version to connect

nimble stump
#

I don’t think there’s like a config option to send different client versions to different servers

woeful mural
#

By default, BungeeCord doesn't allow 1.7 any longer

ancient oasis
#

i need the web of spigot

worn temple
#

Don't use it

#

don't allow 1.7

nimble stump
#

If they’ve explicitly disabled 1.7 then you would need to mod bungeecord to re-support it I guess

woeful mural
#

1.7 players would be sent to a 1.7 server, only for kitpvp players

nimble stump
#

Not sure how tricky that would be, depends on what they did to remove support for it

woeful mural
#

I see

worn temple
#

You're not going to get any support for 1.8 and lower

nimble stump
#

As someone who works almost exclusively with 1.8, upgrade from 1.7

#

Lol

worn temple
#

Supporting 1.7 is insanely hard given just how much it fucking changed things. But you shouldn't be even support 1.9, let alone 1.8 and 1.7.

nimble stump
#

You don’t want to be maintaining a separate fork of bungeecord

#

We maintain a 1.8-1.15 fork of spigot but we use a vanilla bungee

#

You don’t want that stress in your life

ebon snow
#

So I have this class, https://paste.md-5.net/onasowahow.java
and this one which extends it https://paste.md-5.net/hiwudoduna.java
when HasteyBoysCraft#register() is called, org.bukkit.event.inventory.CraftItemEvent is printed out. I'd think this would mean that my executor will only be called for the CraftItemEvent, however it appears to be called for EVERY InventoryClickEvent, giving me errors like

java.lang.ClassCastException: org.bukkit.event.inventory.InventoryClickEvent cannot be cast to org.bukkit.event.inventory.CraftItemEvent
at net.iceblaze.hostedevents.game.components.scenarios.hasteyboys.HasteyBoysCraft.run(HasteyBoysCraft.java:8) ~[?:?]
at net.iceblaze.hostedevents.game.components.implementation.GameInventoryScenarioComponent.lambda$getExecutor$0(GameInventoryScenarioComponent.java:29) ~[?:?]

I'm extremely confused how it's being called for events other than CraftItemEvent, as type is definitely the CraftItemEvent.class
(note that the line 8 and 29 is correct as how they appear on hastebin)

keen compass
#

your hastebin pastes come up empty

#

@ebon snow

ebon snow
#

Saved them yesterday, 1 sec I'll make new ones

keen compass
#

that is probably why then. They don't last forever 😛

ebon snow
#

@keen compass updated the links

#

(normal hastebin wouldn't work for me again)

keen compass
#

what exactly are you trying to do?

#

are you trying to make your own custom events?

ebon snow
#

So I have a GameScenarioComponent/GameComponent system thing which is aimed to make it easier for me to create listeners for specific games that my plugin creates

#

The end goal is for me to be able to just do this

public class HasteyBoysCraft extends GameInventoryScenarioComponent<CraftItemEvent> {

    protected HasteyBoysCraft(Game game){
        super(CraftItemEvent.class, game);
    }

    public void run(CraftItemEvent e) {
#

and it'll automatically verify that everything's in the right game and stuff

#

and then call run

#

It works for other events, but for some reason not this one

keen compass
#

do you have custom inventories? And this event is to check if its the inventory that is your custom one?

ebon snow
#

No

#

This is to check if the person who clicked is in the game this listener is created for

#

but it should only be called for CraftItemEvent(which extends InventoryClickEvent)

#

but it's instead called for ANY type of InventoryClickEvent

keen compass
#

Yes because other inventories can craft items

ebon snow
#

Yeah, which is supposed to call CraftItemEvent

#

That's not a reason why my method would be getting ran for other types of events

hallow surge
#

if anyone knows shopguiplus api here is my issue I am trying to deduct money from a players account fetching the price of the block from the shops

keen compass
#

well your code isn't something I come across routinely plus I just woke up, so I will leave it to others more better suited to try and help. Personally I would just have created custom events where they only run in places they are supposed to

ebon snow
#

I just created this system as I figured it'd be more convenient in the future as I create more listeners, and it works for literally every other event I've tried, so I'm quite confused why this doesn't work

keen compass
#

I couldn't tell you, not everything is perfect lol

#

What mc version? latest?

frigid ember
#

xd

ebon snow
#

1.8, which I know it sounds bad but this stuff is pretty much documented the exact same way as 1.15 so I don't really think it's changed

keen compass
#

While the API might be the same, doesn't mean implementation hasn't

#

something could have changed implementation wise between 1.8 and 1.15. I don't have 1.8 source at the moment so I can't help not that I normally help with outdated versions. Essentially might want to look at the server code to see what is going on

ebon snow
#

True, but I don't see any world where Bukkit.getPluginManager().registerEvent would register multiple events

#

I'll try and look

keen compass
#

While it might not register multiple events, it doesn't mean the implementation doesn't have a bug

#

where it calls multiple events to fire

#

not exactly hard to fire off events you know. Just have to tell it to create a new event and there you go, an event was fired XD

#

Anyways, since you are on outdated version you are going to have to get accustomed to fixing server bugs as they present themselves unfortunately because 1.8 isn't going to get any more updates

ebon snow
#

Yeah, I'm just trying to find out if I'm missing something in my code before I go and edit server stuff

keen compass
#

I don't think you are, at least it doesn't appear so to me

#

and I think it is a bug in the server code

#

I do recall that some bugs existed for some events back then

#

but were fixed in later versions

#

but 1.8 was so long ago so it is hard for me to be specific lol

ebon snow
keen compass
#

you could just use buildtools to get the source for the server

ebon snow
#

Oh yeah, forgot about that lol

left plover
#

Stupid question: am I right in thinking Bukkit.getPlayer(name) returns null if the player with the given name is not on the server?

worn temple
#

it does say exactly that in the javadocs

keen compass
#

yes @left plover the Javdocs even says so

#

ah Nova beat me to it

left plover
#

Stupid question

#

thank ❤️

worn temple
#

Np ❤️

errant lava
#

So i saw people use command blocks with certain words in them that they could call on in their scripts, like someone had a command block with "archer" in it and it would give them a bow + arrows + armor. How do i do that in spigot?

worn temple
#

likely not a spigot server, sounds like modded tbh

keen compass
#

or sounds like a plugin

pastel condor
#

is there any reason why all my guis seem to be called at the same time (like if you click slot 3 on this one gui, it seems to click slot 3 on all my guis) here is my code for one of the guis (all of them share a similar inventory checking method) https://pastebin.com/eAt8F3XP

errant lava
#

No like they put values into the command block and were able to call upon those values in their script

#

Like they can see when "archer" is activated to give an archer kit

worn temple
#

yeah, that really doesn't sound like something a plugin can do...

#

unless the command block is just constantly polling for a value change (which would be so inefficient), I'm not sure how a plugin could do that

errant lava
#

My thoughts exactly, also you cant call upon other plugins in eclipse?

#

So does spigot have something like that?

#

Or is there some api i should get

worn temple
#

you need to bring it in as a dependency in maven/gradle

keen compass
#

uh wrong link

#

anyways, commandblocksender is a thing

errant lava
#

Lemme look that up

worn temple
#

Well yeah, a plugin can totally see what a command block does, I assumed he wanted it the other way around based on how he worded it @keen compass

keen compass
#

Ah

worn temple
#

Yeah, maybe he just worded it badly, in which case that would work

keen compass
#

I mean just need to have the plugin intercept the command that a command block normally uses

#

parse it for the keywords

#

if keywords present do something 😉

#

doesn't necessarily need to run custom commands lol

worn temple
#

Yeah, I assumed they wanted a command block to do something on a plugin action, on its own, not code related

keen compass
#

Well they couldn't see the plugins

#

just saw the command block function

worn temple
#

Yeah, that's why I assumed it was a mod function

keen compass
#

but mods definitely can do that too

#

so never know

worn temple
#

yeah, so that's why I assumed it was a mod he saw used, but if its a plugin intercepting a command block command, totally possible and been done a lot.

keen compass
#

@pastel condor are you using separate instances of your gui or just using the same instance for all players?

#

think you need to hold a separate instance for each player that has it open so that they don't interact with each other

errant lava
#

So lemme clear up confusion

#

So you input a value into a command block

#

Lets say the word "fighter"

keen compass
#

if the command block is running commands, doesn't really matter what you put if there is a mod or plugin intercepting the commands. Plugins have to do it differently then Mods do, but both can achieve just about the same thing. Mods have more degree of control over it.

errant lava
#

When you activate the command block, your plugin detects that command block "fighter" is activated

pastel condor
#

what do you mean by separate instance? @keen compass

errant lava
#

And it carries out a designated action based on that command block

pastel condor
#

I'm creating a new inventory Inventory inv = Bukkit.createInventory(null, 36, "Basic Settings");

keen compass
#

Well you have an Instance of your gui right? AKA an inventory ?

barren abyss
pastel condor
#

I'm no longer implementing inventory holder

#

oh yes

#

this is the instance Main.getInstance().openGUI.put(player.getName(), inv);

#

then I check if (!event.getInventory().equals(Main.getInstance().openGUI.get(player.getName()))) return;

keen compass
#

so you only have 1 instance of your gui?

pastel condor
#

I have multiple guis, just they are different classes

#

I create a new inventory (instance?) every time a player opens it

keen compass
#

still recommend setting an owner on the inventory

pastel condor
#

already tried that

golden vault
#

Lord Gaben, I have never used a command block before, so I am curious as to why use the command block for the input in the first place?

pastel condor
#

I was screamed at by choco

#

not exactly screamed but you get the point

keen compass
#

lol

pastel condor
#

*advised not to

keen compass
#

well, give me an hour or so and I will open up my IDE

#

have stuff to do in my IDE anyways that needs to get done

pastel condor
#

lol okay, no rush

keen compass
#

I know I have a plugin that does something with inventories

pastel condor
#

oh cool

errant lava
#

@golden vault well you can get for example stuff at the click of a button, or detect when something walks above the block

pastel condor
#

guis are so painful

#

I think theres a player interact event

keen compass
#

The only place I can see where using a command block is better is if you wanted to limit where they can get items

#

as opposed to globally running a command in the chat

pastel condor
#

and you can check if they clicked a button

keen compass
#

so IE, they actually have to walk to a button to get that item or items

pastel condor
#

^ player move event

#

btw

golden vault
#

makes sense but all that could be done with a plugin

keen compass
#

Sure, not saying command blocks are better, just I can see a very limited case where it might be easier

#

where you want to provide a player a choice in their input

#

but also restrict where at

golden vault
#

sure

keen compass
#

otherwise, just do it all via the plugin

errant lava
#

I meant them as signallers to the plugin

#

Not as an alternative

keen compass
#

Yes that is what we are talking about

#

generally it is more optimal to use the plugin to handle this without the use of command blocks

worn temple
#

^

#

A command block can issue plugin commands assuming it is coded to allow non players to issue commands, so ideally you don't have to even bother with nonsense like that and so a command block can use a plugin command for something like kits

golden vault
#

You could also use a shop plugin that allows for kits

keen compass
#

is your project on github @pastel condor ?

pastel condor
#

oh

#

it's on my repo

#

@keen compass

#

it's a private repo

#

I'll just make it public

#

for now

#

there

keen compass
#

made an account

pastel condor
#

oh okay

keen compass
#

not like it was difficult to do 😛

pastel condor
#

lol okay

#

I'll add you

keen compass
#

is this your personal git site?

#

you do realize that github provides free private repos now?

pastel condor
#

but they don't have workers, so I was going to set one up for private repos

keen compass
#

workers?

pastel condor
#

yes

#

the auto runner stuff

keen compass
#

They have actions

#

not sure if that is similar

pastel condor
#

yes

#

I meant that lol, sorry there are so many names

#

okay I just gave you write perms to the repo

keen compass
#

I mean github has actions available

pastel condor
#

for private repos?

keen compass
#

yes

pastel condor
#

wait what

#

if only I had known

worn temple
#

became free when M$ bought it

keen compass
#

No, it became free only recently

worn temple
#

No, it was when M$ bought it, trust me

#

Cuz I cancelled my subscription then

keen compass
#

well that isn't what my email messages tell me 😛

#

either way

#

private repos are free, you can have actions for private repos

pastel condor
#

oh cool

#

and it's 100% free?

keen compass
#

I think they limit the amount of actions you can have I think and that is about it

pastel condor
#

oh okay

#

doesn't really matter

#

I just have to migrate over 😦

#

thats always painful

keen compass
#

github has utility for that I think

pastel condor
#

oh?

keen compass
#

I mean its just git

#

all that needs to happen is a clone

pastel condor
#

oh yeah just changing the remote

#

and pushing

keen compass
#

that works too

pastel condor
#

kk I'll do that when I get a chance

worn temple
#

Its only a certain amount of actions, and no protected branches, so contributors can force to master for example. But otherwise, its basically 100% free

pastel condor
#

thats still reasonable good

#

I mean considering my website is really slow

#

it takes like 10 seconds to load a page for me

keen compass
#

yeah I was about to say

#

your site is slow 😛

pastel condor
#

lol yeah

#

I'm self hosting it from a raspberry pi

#

anyways, could you please help me with my gui issue?

keen compass
#

I am looking at it lol

#

Well you should probably remove them statics from the hashmap's

#

second, you don't have a method for referencing your hashmap

pastel condor
#

oh yeah, I removed it then reverted my git

#

for getting the inventory I just use Main.getInstance().mapName.get(player.getName)

keen compass
#

yes, but the map isn't public per-say so I am surprised you are able to

#

without it complaining lol

pastel condor
#

hmm

#

because I was able to use another hash map

#

for the chat event thing

keen compass
#

it just might be the way you are accessing it. You are accessing it indirectly via a static method

pastel condor
#

I'll try using non static

keen compass
#

lots of fixing lol

#

almost done with my changes @pastel condor XD

keen compass
#

@pastel condor you have a pr waiting for you 😉

pastel condor
#

oh sorry I was afk lol @keen compass

#

I'll check it out, thanks 🙂

tulip pendant
#

Guys Someone help me plz my waters not flowing

frigid ember
#

no

worn temple
#

Go away

tulip pendant
#

You go away dumbass gay @worn temple got out of ur stupid little tiny mouse server

#

Hahahahaha

keen compass
#

@pastel condor what I mainly did was changed how the references of the instances are obtained. Not entirely sure if that will fix your problem or not. If not, we can move forward into fixing it some more/changing it.

pastel condor
#

oh okay, I'm going to first test it then if it doesn't work I'll let you know

barren abyss
#

You go away dumbass gay @worn temple got out of ur stupid little tiny mouse server
@tulip pendant thats kinda homophobic tho 😮

tulip pendant
#

He’s irritating me

barren abyss
#

you mean she?

pastel condor
#

@keen compass, it looks like the same issue as before is happening

keen compass
#

Is it throwing the same errors as before @pastel condor ?

pastel condor
#

The thing is there are no errors

keen compass
#

ah

#

well that is an improvement 😛

pastel condor
#

🙂

#

Just you can drag items out lol

keen compass
#

yeah, to prevent dragging items out, will need to set the inventory owner to something other then null

#

it should prevent that

#

if not, there is always listeners for it

#

will get back to it here in a bit to see what needs changing

pastel condor
#

Okay thanks 🙂

#

Just btw I migrated the repo to github

keen compass
#

ok

#

my github name is the same name @pastel condor

pastel condor
#

Kk I’ll add you in 5 minutes

wraith thicket
#

If you're talking about a custom implementation of the InventoryHolder interface, then that's a misuse of the API:

rain plank
#

Is there anyone that could possibly help me config my voting platforms for my server. Please and thank you.

torn robin
#

I still am unable to find the packet/event for when a player's potion effects are modified.

#

EntityStatus doesn't seem to be called when doing /effect give, and I couldn't find any documentation related to potions in wiki.vg.

#

Any ideas?

hoary parcel
#

The API is missused all the time

#

Using inventory holder is simply the best way

pastel condor
#

Okay just added you @keen compass

red zenith
#

@rain plank Were you able to resolve the auto teleport?

rain plank
#

No.

red zenith
#

That's odd, if it's not a permission/op issue, and you don't have another plugin interfering somehow, the only other possibility was the configuration.

torn robin
#

yeah I just now found that it is indeed the correct packet, ty!

red zenith
#

👍

brittle summit
#

can any1 help me to install spigot on my mc server?

#

i am having problems

vernal spruce
#

Simply run the jar?

brittle summit
#

ill show the msg i am getting

#

1 sec

#

it says "This app can't run on your PC. To find a version for your PC, check with the software publisher."

vernal spruce
#

What OS?

brittle summit
#

windows

vernal spruce
#

What version and you have java installed?

brittle summit
#

mc 1.15.2

#

and yes

vernal spruce
#

Also you have the start script?

brittle summit
#

yep

vernal spruce
#

By that i mean what windows version

brittle summit
#

windows 10

obtuse rose
#

What did you do to "run" it exactly?

brittle summit
#

any ideas on what i should do?

torn robin
#

@brittle summit how are you trying to run it?

brittle summit
#

wdym?

torn robin
#

wdym wdym

#

how are you trying to run it

#

are you double clicking it or running it through CMD prompt

brittle summit
#

lol

torn robin
#

do you have any images of the error message?

brittle summit
#

double clicking

torn robin
#

ok

brittle summit
#

wait how to use snippet on windows?

#

i forgot

torn robin
#

thought so

#

you should read the wiki

#

it tells you how to run it

brittle summit
#

ok

#

ill try

#

it just tells me to put the code in and double click

torn robin
#

where do you see that @brittle summit

ebon snow
#

double click the script, not the server jar @brittle summit

brittle summit
ebon snow
frigid ember
#

but... you're calling both inventoryclickevent and craftitemevent?

ebon snow
#

I'm not calling any event...

#

I register a listener only for craftitemevent

#

yet it's being called for every type of inventoryclickevent

brittle summit
#

@ebon snow when u say double click the script u mean the notebook save with the script in it?

fleet crane
#

probably because CraftItemEvent shares a handler list

#

so you need to throw in an instanceof

ebon snow
#

Hm ok

fleet crane
#

just a quirk of using the event api directly

#

could possibly be called a bug, but youre using 1.8, so it aint gonna get fixed

ebon snow
#

Alright, thank you

#

Are there many events like that or is it like just that one?

tiny dagger
#

md why there is a PlayerPickuparrow event and pickupitem, wasn't there a better way to just give the arrow a field that tell it it's in ground? 🤔

fleet crane
#

theres a few events like that, mostly specific subclasses

ebon snow
#

Ok

fleet crane
#

the arrow event extends the item event

brittle summit
#

@ebon snow when u say double click the script u mean the notebook save with the script in it?

tiny dagger
#

it does? 🤔

#

i mean i tried it on 1.13/1.14 and itempickup didn't triggered on arrow pickup

#

maybe it's newerr

ebon snow
#

@brittle summit Assuming you're on windows, you'll have something that looks like this

#

that's what you double click

brittle summit
#

yep thats what i do

#

and then i get the popup

ebon snow
#

oh wait I completely misread your problem

brittle summit
#

"This app can't run on your PC. To find a version for your PC, check with the software publisher."

#

thats the msg i get

#

i cant see anything on the forums for it

spare forge
#

I lost access to my Premium Plugin download.

fleet crane
#

?faq

brittle summit
#

@fleet crane have u seen the problem i have b4?

spare forge
#

Hey MD if i reach out to the Plugin Author they should be able to grant me access again?

#

Cause i got charged, it already withdrew the money from my Paypal account it just telling me I have to purchase it for access.

timber barn
#

Thats what the faq says

#

Yes

brittle summit
#

do u think i should make a forums post about the iissue?

torn robin
#

what do you have in the start.bat

brittle summit
#

1 sec

#

@echo off
java -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot.jar nogui
pause

#

as it is in the wiki

barren abyss
#
java -Xmx1024M -Xms1024M -jar server.jar
brittle summit
#

ill try that

barren abyss
brittle summit
#

still the same msg

barren abyss
#

do not just copypaste kek

brittle summit
#

will that help?

barren abyss
#

can you share the message you having?

timber barn
#

rename server.jar to your actually jar or vise versa

torn robin
#

@brittle summit are you trying to run buildtools to get spigot or trying to start a server

brittle summit
#

the latter

torn robin
#

how did you get the server.jar originally?

brittle summit
#

the get bukkit website

torn robin
#

👏

timber barn
#

🙆‍♂️

torn robin
#

run buildtools

brittle summit
#

ok

torn robin
#

?bt

worldly heathBOT
tulip pendant
#

He'll

#

Hella

brittle summit
#

i opened git bash now what?

#

oh i got it

frigid ember
#

Anybody know how I can set the Attack & Follow range of a entity

frigid ember
#

this package does not exists

#

my spigot version: 1.8.8

wraith thicket
#

Well, there's your problem

teal haven
#

Hey i tried to make a /heal command but the command dosnt work on my server... anyone know how to fix?

frigid ember
#

send me the code

teal haven
#

Which one

frigid ember
#

The command

rough hare
#

Has anyone with a 1.15.2 creative server been able to disable saved toolbars?

fleet crane
#

you cant, theyre client side

real surge
#

someone has a link to a tutorial to create an API and his core ?

fleet crane
#

I guess you could stop them using the items

#

but you cant stop them loading them

rough hare
#

damn

#

Thats worrying, I want a 1.15.2 creative server, guess I can't do that then

frigid ember
#

Anybody know how I can set the ATTACK RANGE?

red zenith
#

Are the entries in the Player Tablist considered part of the Main Scoreboard or are they part of a separate system?

torn robin
#

separate system I imagine

tawdry venture
#

does the player#getbedspawnlocation returns the /spawn location?

hollow thorn
#

how do i make runnables

real surge
#

new BukkitRunnable

#

.runTaskTimer

brisk mango
#

no

#

BukkitScheduler is better

hollow thorn
#

how do i use that

wraith thicket
brisk mango
#

Bukkit.getScheduler()

vocal maple
#

How to properly disable vanilla advancements?
I know there is advancements: disabled: in spigot config, but disabling only roots will lead to a lot of errors

tiny dagger
#

gamerule

barren abyss
#

I have a question about runnables and variable data changing by day

#

ill show an example and tell me if you guys can help

vocal maple
#

gamerule
@tiny dagger no

barren abyss
#
long get_Day = get.month.day;

@EventHandler
public void onDeath(PlayerDeathEvent event){
   Player p = event.getEntity().getName();

   if(get_Date == 1){
      Bukkit.broadcastMessage(p + " died in day 1");
   } else if(get_Date == 2){
      Bukkit.broadcastMessage(p + " died in day 2");
   }
}

So I have a problem because when its day 1, its says day 1. but the next day dsnt said day 2, its still saying day 1 until I make a /reload or /restart. (the plugin needs to be reloaded to get the date again), my question is, how can I put this variable in a runnable that is updating itself every x seconds/mins?

naive goblet
#

With what

#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

naive goblet
#

@barren abyss use the world ticks?

#

Wym

#

Give more context

barren abyss
#

with that code my exampl should be enough

#

I cant use world ticks

#

I need the plugin work in a real life date

#

the system is done, but need that var to be updated

heady jolt
#

@frigid ember go and ask some koreans in their magicspells discord

#

@frigid ember 255xdR use this invite link

remote socket
#

How can I null check this?

for (String key : getConfig().getConfigurationSection("Holograms").getKeys(false)) {
}
heady jolt
#

if key is null

remote socket
#

the NPE is on the for line

heady jolt
#

I don't think it will ever be null if you have default config 🤔

remote socket
#

I got NPE

#

But there are no keys in that config section

brisk mango
#

well because there are no keys 😂

remote socket
#

I know

#

I am asking how to check

#

That config section

brisk mango
#

final ConfigurationSection section = getConfig().getConfigurationSection("Holograms");

if(section != null) {
if(section.getKeys(false).size() != 0) {
section.getKeys(false).forEach(key -> {

});
}
}
remote socket
#

ty

#

May I ask what "deep" actually is?

brisk mango
#

not sure

#

but just set it to false if u need to get the section after it

frigid ember
#

How can I give a zombie the texture of a human

remote socket
#
plugin.getConfig().set("Holograms." + hologramUUID + ".owner", player.getName());
plugin.getConfig().set("Holograms." + hologramUUID + ".world", player.getWorld().getName());
brisk mango
#

?

remote socket
#

How can i make it save as "world"

#

and "Royal_Scribblz"

brisk mango
#

wdym save as world

remote socket
#

I want it to save as a string

brisk mango
#

it is a string tho

#

player.getWorld().getName()

remote socket
#

But in the config it doesnt have ""

#

So when I read it it does this...

#

nvm

#

My mistake, i wrote it wrong (i used getint)

#

How come you don't need to use '' or "" when writing a string in a config?

frigid ember
#

How can I give a zombie the texture of a human

silk bane
#

custom resource pack probably

brisk mango
#

its YAML

#

its not needed, dont ask me

frigid ember
#

No its posssibile without. Like a npc plugin

remote socket
#

Probably using NMS

#

But NPC is a fake player. Not a mob.

frigid ember
#

Yes i will give the mob the texture of a fake player

remote socket
#

No I mean you cannot set the skin of a mob

#

You can only set the skin of the fake player

frigid ember
#

Can i give a fake player the ki of a mob?

#

ai*

remote socket
#

For some stupid reason there is always whitespace at the end of the name?

heady jolt
#

its minecraft problem iirc when involving colorcode

remote socket
#
String nameText = ChatColor.translateAlternateColorCodes('&', "&f&lOwner: &f" + getConfig().getString(path + ".owner"));
TextLine textLine2 = hologram.insertTextLine(1, nameText);
#

Oh

#

How can I fix it then?

torn robin
#

what mc version?

remote socket
#

1.8.8

heady jolt
#

meet notch at his mansion, he will fix it

remote socket
#

Notch doesn't own minecraft lol

torn robin
#

you can fix it by updating

#

other than that it's a client issue i believe

remote socket
#

Can i give a fake player the ki of a mob?
@frigid ember Probably using some complex code yes

heady jolt
#

notch still own some part of minecraft

frigid ember
#

@remote socket okay is it possibil tha a fake player target a player?

heady jolt
#

using disguise

remote socket
#

It must be possible to fix or the other various plugins using holograms would also have it

#

@remote socket okay is it possibil tha a fake player target a player?
Yes, much like in Citizens where the npc faces the nearest player, you could have the fake player follow them instead

serene inlet
#

guys do you know a good Spigot/Bukkit plugin that will show weapons on the back of the player? I'm using BackTools but it's a Forge mod and I'm looking into migrating to Spigot/Bukkit

vernal spruce
#

Not rly a way without killing performance

#

As in vanilla we can't simply add new stuff

serene inlet
#

I'm also wondering, why on all/most Plugins the custom items are "eggs"? For example I was checking out DiceFurniture.

#

Like...can't the devs set icons for the items?

vernal spruce
#

only by using a custom texture

#

or player heads with custom heads

#

when it comes to spigot all we can do is modify what already exists

#

we cant rly add new things like blocks,mobs...

serene inlet
#

aaaaha, understand

#

but Mods (Forge) can do that as it can just add local stuff, correct?

vernal spruce
#

yeah

#

they directly add stuff to the client

#

here we mostly abuse server stuff..

serene inlet
#

understood

#

so basically a "chair" is a...modified...what?

#

for ex DiceFurniture ads new models

vernal spruce
#

either texture or a bunch of player heads

serene inlet
#

yeah but you can sit on the chairs

vernal spruce
#

thats just creating a invisible entity and setting the player passanger to it

#

simulates how you ride a pig horse or smthng.

serene inlet
#

sneaky 😛

#

sorry I gotta go, thanks for your time/explanations!

#

I'm using Magma so I'm trying to do as much as possible with Spigot/Bukkit so I don't have to send files too everybody at each update

#

btw is there any better way to distribute updates/packs, rather than emailing them...? :\

vernal spruce
#

you can try creating ur own modpack and place it on curse

#

so you could just update the pack,and all they need to do is click download..

worthy lava
#

Is there a way to edit the bow drawing speed?

barren abyss
#

probably

blissful knot
#

For the moment i have just remove unnecessary plugins and use a javaagent to add some indexes on SQL Query

hollow thorn
#

ive made my while loops runnable

#

but there still on the main thread

frigid ember
#

how would i know if someone opens or closes a inventory...

barren abyss
#

InventoryOpenEvent ?

red bolt
#

is there a way to paste the latest.txt contents into a pastebin ?

#

with code ?

#

in the logs folder

obtuse rose
#

API is a thing

#

👍

red bolt
#

is it possible ?

frigid ember
#

InventoryOpenEvent doesnt work.

dusty topaz
#

I only modify it in the openInventory method and then the close event ... yet somehow, even though data is added above it is empty when it comes to the close event

strange grove
#

hey does anoyne know how to get the contents of a command?

#

it would be rly helpful

#

brb

#

sry if I don't respond immeadiattly

dusty topaz
#

contents of a command?

strange grove
#

🙂

#

yes

#

the contents

dusty topaz
#

what do you mean

red bolt
#

use arguments ?

strange grove
#

well i mean what i put into a command

red bolt
#

the last parameter in your oncommand method

dusty topaz
#

String[] args

#

will contain /command this is a test {this, is, a, test}

strange grove
#

well yes

#

but i mean

#

the <nameOfIMG> <urlOfIMG>

#

so it would be somthing like this

#

/replace <nameOfimg> <urlOfimg>

dusty topaz
#

okay, so use args

strange grove
#

then it would give it to these command

dusty topaz
#

and get the name and url

strange grove
#

s

#

/remove <nameOFimg

#

/afcreate <sameNameOfimg> <urlOfimg>

#

@dusty topaz how would I use args for this?

#

hello?

#

anyone their?

#

*there

#

anyone?

#

😦

frigid ember
#

hi guys

strange grove
#

oh hello!

frigid ember
#

I'm very new to Minecraft world, my daughter knows all the stuff. However she recently asked me to help her with Javascript programming in Minecraft Education Edition and I was very frustrated that I can't find a decent documentation for that

strange grove
#

umm then you shouldn't be speaking to me

#

thank you for your kidness

frigid ember
#

I'd appreciate any pointers

strange grove
#

i'm a newbie

#

and i'm in the same situation

#

though I can try to help you?

#

umm

#

i'm a young coder too 🙂

#

but

#

if you would like

#

I could also suggest another channel

vernal spruce
#

Javascript? Here we use Java

strange grove
#

so incase you need anymore help @frigid ember

#

it's the same thing

#

right?

vernal spruce
#

Its not..

strange grove
#

hmm

#

let's see

silk bane
#

spigot is server software for minecraft java edition, not education edition so it might not be the best place to ask

strange grove
#

yeah your right

frigid ember
#

thanks Stellrow, at least I know I'm not in the right place

strange grove
#

🙂

#

the help section here is helpful

#

so you're as stated "in good hands" 🙂

frigid ember
#

I am in the process of installing my own server; the big problem is I don't know what to chose so in the end I could write Javascript code for Minecraft

#

I don;t care about the Education Edition, I found that there's no decent documentation available for it

strange grove
#

hmm

#

this is something that is out of my hands

#

my dad setup mine for spigot plugin testing

#

i'm not that good at setup

#

but i can suggest a few videos that might help

#

from Kody Simpson or the source code

#

on youtube

#

but I think that's all I can give @frigid ember

vernal spruce
#

Closest thing to get it running with javascript is getting a plugin wich can translate it

frigid ember
#

thanks a lot H311KN1GHT, I appreciate you're trying to help

strange grove
#

🙂

silk bane
#

to reiterate, if you're looking at spigot, there's currently no framework to write plugins in javascript

brisk mango
#

java is better than javascript for minecraft

strange grove
#

i think having eclipse or INTELL J helps

#

right?

brisk mango
#

eh eclipse

silk bane
strange grove
#

oh

#

😐

vernal spruce
brisk mango
#

is anyone experieneced here with MIDI in java?

#

javax.sound.midi

vernal spruce
#

however dont expect that much support while doing it in js not alot of people are working with it..

vast night
brisk mango
#

why not just do block.forEach(block -> { }

#

im assuming block is an list/set

#

also why is the consumer named like a class lol

#

its a variable

#

final CutCleanBlock[] cutCleanBlocks = new CutCleanBlock[] {
new CutCleanBlock(params), new CutCleanBlock(params);
};

for(int i = 0; i < cutCleanBlocks.length; i++) {
fileConfiguration.set("blocks." + cutCleanBlocks[i].getFrom() + ".drop");
fileConfiguration.set("blocks." + cutCleanBlocks[i].getFrom() + ".amount");
fileConfiguration.set("blocks." + cutCleanBlocks[i].getFrom() + ".xp");
fileConfiguration.save();
}
#

also take look at these naming convetions i cant look at it

torn robin
#

Hi all, I'm a noob when it comes to web interactions and I want to post something to hastebin but at the same time kick the player with the link to that post.

#

I've looked into Future and Callable but I couldn't exactly figure out how/if I should be using those.

brisk mango
#

why at the same time

#

just first post it to hastebin and then kick him with the link for it

torn robin
#

Yeah how can I kick him once I have the link?

brisk mango
#

wdym

#

Player#kickPlayer??

torn robin
#

no I mean since I'm doing the web request async I can't use that right after

brisk mango
#

@maiden zephyr they are all shit but LiteBans is one of the decents

#

why not

#

synchronized(this) { }

torn robin
#

Asynchronous player kicks aren't allowed last I checked

brisk mango
#

and u can kick them

torn robin
#

ah

daring crane
#

thats not how synchronized works

#

youd have to schedule a task on the main thread (getScheduler().runTask(...)) and do it there

torn robin
#

Multiple types of databases are supported, including MySQL, MariaDB, and H2. H2 is used by default, meaning that MySQL is not needed to use LiteBans with a single-server setup.

brisk mango
#

you dont have to

daring crane
#

about to ping choco

brisk mango
#

you can run an Async task and do synchronized(this) { }

#

and it will be synchronized

tiny dagger
#

that synch block will first get accessed by the first thread to get a grasp and it will make the other thread wait there till it can take hold of it

#

so depends if you really need a synch block

daring crane
#

you can run an Async task and do synchronized(this) { }
the task will by synchronized with itself (or whatever this is in your case)

#

not in the main thread of the server

torn robin
#

so tl;dr i should just use the BukkitScheduler

daring crane
#

yep

torn robin
#

👍

daring crane
#

schedule an async task, do your async stuff there
schedule a sync task inside the async task and do the kick there

vast night
torn robin
#

i've got a feeling there's a reason why i didn't do that (i think i did do it and it didn't work, but i probably just did it wrong)

#

I would make sure getFrom aren't the same Superhize

#

would also probably not use an indexed for

#

and/or rename the array from cutCleanBlocks juts to Blocks for brevity