#help-archived

1 messages · Page 184 of 1

frigid ember
wraith thicket
#

And English is not my native tongue either, that's not really an issue here

#

That's really not useful if you don't show what object you're trying to use this method on.

frigid ember
#

yes

wraith thicket
#

Actually, yes, it does require an array for each vararg

frigid ember
wraith thicket
#

But you can simply create one of one element, i.e new BaseComponent[] {arg1}

frigid ember
#

BRUH

#

i asked on first

#

if i need to create BaseComponent

wraith thicket
#

You don't need to create any new BaseComponent objects, all you need is an array

frigid ember
#

ArrayList?

wraith thicket
#

No

#

Array - like the one I showed you above

frigid ember
#

i really dont understand what i need to do - can you please write it?

wraith thicket
marsh hawk
#

Which slots are the players' inventory? in InventoryClickEvent#getSlot()

frigid ember
#

012345678

wraith thicket
#

You can check which inventory they clicked on

marsh hawk
#

oh with e.getClickedInventory()?

wraith thicket
#

Exactly

#

If that's an instance of PlayerInventory, it'll be the player's inventory

marsh hawk
#

oh easy

frigid ember
#

bruh thank you finally BaseComponent[] vote = {Text, NormalMap};
vb.setTitle("§6Click to vote!");
vb.spigot().setPages(vote);

wraith thicket
#

Well, that'll make both the text be on one line

#

You need a separate array for each line

bronze acorn
#

just add \n

wraith thicket
#

I don't think that works in a book

frigid ember
#

i have it in textcomponent already...

bronze acorn
#

it does work in a book i've used it

frigid ember
#

look at that code

bronze acorn
#

you need to add \n to the end of the textcomponent string

frigid ember
#

TextComponent NormalMap = new TextComponent("§21. §6Normal" + nl + " §3" + votesNormal + " Votes");
TextComponent Text = new TextComponent(" " + nl + " §8§nClick to vote" + nl + " " + nl);

#

-.-

#

I said i have it

#

already in code

wraith thicket
#

Ah, you're treating it all as one line, I guess that'll work then

bronze acorn
#

don't know why you're using attitude you put nl without any context of what it was in the actual code

frigid ember
#

String nl = "\n";

marsh hawk
#

interesting how Bukkit.createInventory(player, InventoryType.CHEST, displayName); implies a 27 slot inventory

#

when chests can be both 27 and 54

wraith thicket
#

You can specify the number of slots

marsh hawk
#

in the method?

bronze acorn
#

mhm

wraith thicket
#

Yes

marsh hawk
#

i swear i looked on docs and couldnt see that lmao

bronze acorn
#

instead of .chest

#

do multiples of 9

marsh hawk
#

yeah but

bronze acorn
#

9, 18, 27, 36, 45, 54

marsh hawk
#

i can't specify slots and inventory Type

bronze acorn
#

you dont need to put inventorytype

#

wym

frigid ember
#

works now oh shit

marsh hawk
#

for my use case i need inventory type

#

because i check it later on

#

but the problem is i cant create inventories of type Chest with 54 slots

wraith thicket
#

The javadocs is clear, it'll be of type Chest

bronze acorn
#

wait im confused i dont understand your question

#

if you just need a chest

#

just use put 54 instead of inventorytype

#

and then when you check it

marsh hawk
#

oh sweet

bronze acorn
#

chcek if
inventory.getType() is an instance off

#

uhh

#

one of these i believe

wraith thicket
#

What?

marsh hawk
#

got it now

bronze acorn
#

sorry nevermind

marsh hawk
#

i assumed it set type as null or something

#

but it defaults to chest

bronze acorn
#

yeah

wraith thicket
#

getType returns an InentoryType enum

bronze acorn
#

yeah my bad

#

xd

#

yeah when you check in a listener you can just do

if (inventory.getType() != InventoryType.CHEST)
{
  return;
}

//do chest stuff

or

if (inventory.getType() == InventoryType.CHEST)
{
  //stuff here
}```
sturdy oar
#

1st is better

wraith thicket
#

Well, neither is really useful in the context of creating an inventory

#

And not much use when listening to clicks either

frigid ember
#

there is no way to get commands help in waterfall/bungee i think

native elk
#

Im getting insta disconnected when i try to join my minecraft server. "main" is what bungee should transfer players to when joining and is my only world.

bold anchor
#

Use velocity

#

Has more useful errors imo

native elk
#

alright

#

does velocity work with bungeecord plugins? @bold anchor

bold anchor
#

Nope, but it has a wide collection of their own plugins too

native elk
#

i see

frigid ember
#
    @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
    public void onSpawnEntity(SpawnEntityEvent event) {

        Object cause = event.getCause().getRootCause();
        if (cause instanceof Player) {
            if(!event.getEntity().equals(Vehicle)) {
                return;
            }

            Player player = (Player) cause;
            //EntityType type = event.getEffectiveType();
            for (Entity entity: event.getEntity()) {
                if (boatFlagEnabled(entity, player)){
                    event.setResult(Event.Result.ALLOW);
                }
            }
        }
    }```
#

I'm using a worldguardapi event

#

but it doesnt recognise 2 things :/

#

if(!event.getEntity().equals(Vehicle)) {

#

for (Entity entity: event.getEntity()) {

prisma falcon
#

how do i stop a sh script

native elk
#

@bold anchor

bold anchor
#

You are doxing yourself

#

That contains your ip

#

M8

tiny dagger
#

too late

native elk
#

lol, i forgot mb

#

geegees

tiny dagger
#

imma spread it everywhere

grim halo
#

@prisma falcon Do you mean externally or from within the script?

prisma falcon
#

uhh, wdym

grim halo
#

Are you writing a shellscript yourself?

prisma falcon
#

no

#

i use sh to start uhh, let's say the survival section or skyblock

grim halo
#

Then it should run only once. Takes a second max.

prisma falcon
#

well, how do i stop it, i want to re-open the script

#

like restart it

prisma falcon
#

got it

grim halo
#

The script doesnt run anymore. It just ran once for half a second after executing.
Are you using "screen"

prisma falcon
#

i got it!

grim halo
#

ok

wind dock
#

Anyone know how to access the daimon/what is a daimon in multicraft :/

kindred bay
#

I wanna use databases in my plug-in but idk how to do, and which type choose between json or mysql 😬 Someone can help me pls?

grim halo
#

json isnt a database. I think you mean MongoDB.
I think mysql is easier if you have no experience with databases.

stuck quartz
#

@grim halo the manager creates the LockGUIs?

grim halo
#

Yes the manager creates the guis and opens them for the player

#

internally the manager stores them in a map<Inventory, LockGUI>

stuck quartz
#

ok, thanks

native elk
vernal spruce
#

a spoiler called spoiler monkaS

native elk
#

not sure why discord did that, i jsut dragged and dropped

grim halo
#

What even is that log...

native elk
#

idk...

grim halo
#

Are you trying to bind to the port that the server is running on?

#

Or maybe you already got a server that is bound to that port

native elk
#

my old bungeecord was binded to that server, ive stopped it. my domain name should forward it to 25565 and then forward it to the actual server at 25566

#

Or maybe you already got a server that is binded to that port
i think i didnt close velocity properly

grim halo
#

binded... what am i even typing. *bound

wind dock
#

Anyone know how to access the daimon/what is a daimon in multicraft :/

grim halo
#

what is that? -> daimon <- thats not a word i think

native elk
#

does velocity have a console to input commands in?

wind dock
#

@grim halo its something in multicraft?

grim halo
#

isnt it just a waterfall fork? So it should have console interaction.

wind dock
#

Its like a file thing

native elk
#

no command prompt console pops up when i open the velocity.jar file

#

i think ive missed something to enable console interaction

grim halo
#

What do you mean by "open the velocity.jar file" are you on linux?

formal nimbus
#

Hey guys 🙂 For a hashmap if I use myMap.put(), but an entry already exists with that key, will the value linked to that key just be overridden?

native elk
grim halo
#

yes the value will just be overriden

formal nimbus
#

nice

grim halo
#

Ok and how exactly do you "open" it?

native elk
#

double click lol

grim halo
#

No... dont.

#

Thats not how this works.

native elk
#

make a bat file?

grim halo
#

Are you on windows

native elk
#

yeah

keen compass
#

some jars are able to handle being double clicked

#

typically minecraft ones don't handle that properly

grim halo
#

Yes but you will have no terminal to interact with in this case

rare prairie
#

when have a server gui

#

like for spigot

#

some jars are able to handle being double clicked
^^

native elk
#

so, how do you open it?

keen compass
#

java -jar (jar file name)

#

still hard to believe that despite how many tutorials there is on running minecraft stuff

#

people still fail to read the basic stuff o.O

grim halo
#

Class you need to go into your taskmanager and randomly kill every java process.
After that make sure to only start your servers with bat files.

rare prairie
#

some people ask me, how do i install a plugin

#

bruh

graceful vigil
#

Is there any event fired when a user is kicked/banned?

rare prairie
#

PlayerKickEvent

grim halo
#

Ah! @wind dock Are you talking about a daemon?

graceful vigil
#

What about banned event?

rare prairie
#

its the same

graceful vigil
#

Oh that's great

grim halo
graceful vigil
#

yeah first thing I did was check for an event in the javadocs, but I didn't see PlayerBanEvent so I thought it would've been under something else

keen compass
#

just use generic words in the javadocs

#

in this case if you just use the word event you will get a list of all the events 😛

native elk
#

Class you need to go into your taskmanager and randomly kill every java process.
After that make sure to only start your servers with bat files.
alright, ive done that.

keen compass
#

you can see all known subclasses of Event 😛

#

for future reference whenever looking through events lol

#

or something else

graceful vigil
#

I'll keep it in mind for the future, thanks

native elk
#

not sure whats happening here ^

grim halo
#

Are you sure that you need a proxy?

native elk
#

yeah, currently using tcp shield

#

trying to host a server for a friends instagram page....

#

not exactly sure what im doing, only have bungee experience lol

keen compass
#

obviously you don't otherwise you would know the problem here since it kind of tells you in the logs

native elk
#

okay

keen compass
#

is your lobby server up and running?

native elk
#

yes

keen compass
#

and then configurations set appropriately?

native elk
#

they should be, they worked on bungee fine before. theyve just stopped working once ive added tcpshield proxies

round igloo
#

Does anyone know what the EntityType for a skeleton horse is, on the JavaDocs it says SKELETON_HORSE but that doesn't work

keen compass
#

third you are using velocity which is a proxy I am unfamiliar with but going to assume it is a bungee fork

native elk
#

its a waterfall fork

grim halo
#

and waterfall is a...?

native elk
#

bungeecord fork

#

lmao

keen compass
#
[19:11:43] [main/INFO]: Proxy is running in offline mode!
[19:11:43] [main/WARN]: Player info forwarding is disabled! All players will appear to be connecting from the proxy and will have offline-mode UUIDs.
#

^ that is your problem

grim halo
#

Also yes. Thats not a good idea.

#

Is your main server running in offline mode?

keen compass
#

waterfall is papers fork of bungee

native elk
#

Is your main server running in offline mode?
@grim halo yes

grim halo
#

k

keen compass
#

hate offline mode networks -.-

grim halo
#

Then go ahead and try running your proxy in online mode

#

@keen compass You dont really hava a choice if you want a proxy i think...

keen compass
#

the servers need to be offline

rare prairie
#

Maybe he don't have bought client

keen compass
#

but the proxy can be online

#

@rare prairie precisely the reason I dislike them

native elk
#

Maybe he don't have bought client
@rare prairie i do, but friends dont

rare prairie
#

k

grim halo
#

Yes. You just need to make sure the player can only join via the proxy

keen compass
#

I don't support piracy so I am out with the support

marsh hawk
#

Does PlayerMoveEvent include head rotation?

grim halo
#

Yes

marsh hawk
#

sweet

grim halo
#

Wait...

#

Yes

round igloo
#

Does anyone know what the EntityType for a skeleton horse is, on the JavaDocs it says SKELETON_HORSE but that doesn't work
@round igloo Don't want to sound annoying but in case you didn't see ^

raven hound
#
18.07 14:22:46 [Server] INFO at org.bukkit.craftbukkit.v1_13_R1.util.CraftMagicNumbers.checkSupported(CraftMagicNumbers.java:209) ~[patched_1.13.jar:git-Paper-173]```
#

My server keeps crashing with this error

grim halo
#

You run a 1.16 plugin on a 1.13 server

raven hound
#

I'm trying to run worldedit

grim halo
#

Or the other way around

marsh hawk
#

download 1.13 world edit

raven hound
#

It isnt the normal one?

rare prairie
#

@round igloo Don't want to sound annoying but in case you didn't see ^
and whats your code?

round igloo
#
 NPCRegistry registry = CitizensAPI.getNPCRegistry();
        NPC horse = registry.createNPC(EntityType.SKELETON_HORSE, color("&a[" + player.getName() + "&a] The Snowman Rider"));
#

I've made a function for "color" by the way

rare prairie
#

Did you get any exception?

round igloo
#

It just says it cannot resolve symbol

raven hound
#

Wait worldedit is 1.13.2 till 1.16, does that mean I can't use it on my 1.13 server

keen compass
#

o.O

rare prairie
#

It just says it cannot resolve symbol
can you send here a screenshot about "cannot resolve symbol"?

grim halo
#

cannot resolve symbol... cant you even compile?

keen compass
#

most likely the IDE just being screwy. Most times restarting the IDE fixes that problem

#

or they don't have the API

round igloo
#

I'll try that

keen compass
#

and server jar

rare prairie
#

or you not built your project

keen compass
#

never had that problem

#

I mean generally you don't need to build your project before you are done 😛

round igloo
#

I'll try to build it

rare prairie
#

because there are features in IDEs that automatically builds your projects

#

if you save your work

keen compass
#

you set your IDE to compile when you save?

rare prairie
#

no

keen compass
#

mine does formatting but it certainly doesn't build my project

#

XD

round igloo
#

Yeah it didn't build

frigid ember
#

anyone knows why this dont work? new Thread(() -> { while(count == 20){ SelectWinMap.selectWinMap(); Bukkit.broadcastMessage("§8[§6Vote§8] §7Map §6" + Map + "§7has won! §3(" + MapW + "Votes)"); } }).start();

rare prairie
#

count is never be 20

grim halo
#

What am i looking at here?
What doesnt work?

keen compass
#

everything

grim halo
#

depends on the scope of count

keen compass
#

think they wanted it to loop 20 times

frigid ember
#

nope

#

if int == 20

#

i want to broadcast that message

keen compass
#

is count initialized?

rare prairie
#

20+ times

keen compass
#

oh I know your problem

frigid ember
#

what?

keen compass
#

you are creating an anonymous inner class

frigid ember
#

and?

keen compass
#

you need to intialize count at the top of the class

#

otherwise the new thread can't access the value

frigid ember
#

nope

#

i get no error

keen compass
#

of course not

#

why would you get an error on a boolean check?

frigid ember
#

no

#

i think in intellij

#

is no error

grim halo
#

uhm... i think if you make the variable count effectively final you can acces it from the stack the thread is started from

keen compass
#

again why would there be? is there something wrong with your syntax?

#

runtime errors are not detected before well, runtime

#

XD

frigid ember
#

cant be made final

keen compass
#

it certainly can be static

grim halo
#

if it cant be made final then you wont be able to compile

frigid ember
#

public static int count = 60;

stuck quartz
#

@grim halo im having a problem

player.closeInventory();
LockUI LUI = ChestSec.PublicLockManager.get(e.getInventory());
player.sendTitle("Debug", ((Sign) LUI.sign.getState()).getLine(1), 1, 5, 1);
```when the player clicks the item i close the inventory so i can send a title to the player and check if it works
but id have close the inventory (causing the manager to destroy it), then id have to call the manager and get the LockUI (that got destroyed)
frigid ember
#

public static void CountDown(){
new BukkitRunnable() {

        @Override
        public void run() {
            if (count == 0) {
                RunGame();
            }else{
                count--;
                coutdown = "" + count;
            }

        }
    }.runTaskTimer(Bedwars.getMain(), 0, 20);
}
grim halo
#

sure or static. If your count is in the heap then you can access it

frigid ember
#

and

keen compass
#

I pretty much stated this

frigid ember
#

whats the problem so?

keen compass
#

did you run it?

frigid ember
#

what?

keen compass
#

you are asking about a problem, but you are saying the IDE gives no errors

frigid ember
#

yes

keen compass
#

IDE's don't give errors for runtime errors

rare prairie
#

Do you know actually what is java? @frigid ember
Just asking

frigid ember
#

i know

rare prairie
#

k

frigid ember
#

but you dont know what i mean

keen compass
#

but your syntax is correct

#

therefore why would there be a runtime error for a value that isn't set properly?

#

if it isn't null

frigid ember
#

atleast ill try it

keen compass
#

its perfectly good code to the JVM 😛

#

doesn't mean you will get the result you want however 😉

frigid ember
#
        new Thread(() -> {
            while(CountDownRunnable.count == 20){
                SelectWinMap.selectWinMap();
                Bukkit.broadcastMessage("§8[§6Vote§8] §7Map §6" + Map + "§7has won! §3(" + MapW + "Votes)");
            }
        }).start();
grim halo
#

Ok lets start again. Could you pls give us a bit more context petako

frigid ember
#

ill try it like this

#

this is in on enable

grim halo
#

Ok. Is count 20 at the moment you start the thread?

frigid ember
#

nope

grim halo
#

then the while loop will never start.

frigid ember
#

public static int count = 60;

grim halo
#

it just skips the loop

frigid ember
#

look at what i sent

keen compass
#

will always make it false unless you have something that modifies the value to be 20

frigid ember
#

yes

#

i have what modified it

#

look above

#

i sent it

keen compass
#

I see nothing setting count to 20

frigid ember
#

public static void CountDown(){
new BukkitRunnable() {

        @Override
        public void run() {
            if (count == 0) {
                RunGame();
            }else{
                count--;
                coutdown = "" + count;
            }

        }
    }.runTaskTimer(Bedwars.getMain(), 0, 20);
}
grim halo
#

Yes. But is the count exactly 20 when you start the thread?
If not the code just runs once and skips the while loop

frigid ember
#

its in THREAD

keen compass
#

do you not understand that anonymous inner classes are still separate classes? o.O

frigid ember
#

i have this

#

new Thread(() -> {
while(Bukkit.getServer().getOnlinePlayers().size() <= 11){coutdown = "§aWaiting...";
}
CountDown();
}).start();

keen compass
#

the only difference is they exist in one file, but to the JVM it is two seperate classes

frigid ember
#

this works

#

but why not that count

keen compass
#

because methods can be accessed from other classes

grim halo
#

im speechless

frigid ember
#

oh

keen compass
#

you are not comprehending the difference between a method and a object

frigid ember
#

so i need to set count to method?

#

o-k

keen compass
#

that is one solution of a few you can do

grim halo
#

is the. count exactly 20. at the moment. you start. the thread?
If not -> the while loop does NOT start. It is skipped.

keen compass
#

@grim halo aside from that, there is other problems as well

frigid ember
#

ITS IN THREAD

keen compass
#

threads are not magical

grim halo
#

Everything in this code is a problem

frigid ember
#

bruh that thread is in on enable

keen compass
#

just fyi

#

most of the API is not thread safe

#

should probably not use API methods in threads, but aside from that, you have some problems with your code

frigid ember
#

public static int getCount() {
return count;
}

grim halo
#

What is that?

frigid ember
#

CountDownRunnable.getCount() == 20

#

right?

keen compass
#

well if you are expecting me to spoon feed you code, then I am not going to do that. However you obviously have very little understanding in how java works though

frigid ember
#

its correct?

keen compass
#

have no idea, not my project

grim halo
#

no the method is not even static

keen compass
#

so I couldn't tell you otherwise

frigid ember
#

ok

#

yes its

keen compass
#

method doesn't need to be static @grim halo it is by far the easiest solution, but not actually required

grim halo
#

He calls class.method

#

CountDownRunnable.getCount()

frigid ember
#

its need to be static

wraith thicket
#

He's probably just misnaming things (i.e not in accordance to the convention)

keen compass
#

or just has a lack of understanding in what they are doing XD

pastel nacelle
#

imagine following naming conventions

grim halo
#

Also if you want to share primitives between threads you should use atomics

keen compass
#

only if you need them to be accurate

frigid ember
#

i know what it doing

wraith thicket
#

lol

#

Clearly

keen compass
#

but using synchronized is enough for that though

#

atomics are completely different however

stuck quartz
#

smile, can you answer my question if you are available?

grim halo
#

i dont think you can synchronize primitives... only methods accessing them or the wrapper objects

keen compass
#

you can synchronize any method

grim halo
#

sure but you cant do something like:
int a = 10;
synchronized(a){
a++;
}

pastel nacelle
#

you wouldn't want to do that on an immutable wrapper anyway

keen compass
#

you wouldn't need that

#

you just need to synchronize the method that changes int a

grim halo
#

if there is only one... then ok

keen compass
#

but, generally most of the time the method that updates such things

#

isn't being accessed from multiple threads to be updated anyways

#

usually just read

pastel nacelle
#

if it's not read-written concurrently just use a volatile primitive

grim halo
#

@stuck quartz one moment pls ill look ar what you wrote in a min

stuck quartz
#

im having a problem

player.closeInventory();
LockUI LUI = ChestSec.PublicLockManager.get(e.getInventory());
player.sendTitle("Debug", ((Sign) LUI.sign.getState()).getLine(1), 1, 5, 1);
```when the player clicks the item i close the inventory so i can send a title to the player and check if it works
but id have close the inventory (causing the manager to destroy it), then id have to call the manager and get the LockUI (that got destroyed)
crystal fog
#

how can i remove an resource from my spigot account?

stuck quartz
#

this is what i wrote

keen compass
#

@crystal fog report it and state you want it removed

crystal fog
#

where? i've already contacted the e-mail

keen compass
#

go to the resource page of the plugin

#

report it

#

in said report, state you want it removed from your account

frigid ember
#

still not working....

keen compass
#

@grim halo I will let you handle this 😛

#

don't really have the patience for this at the moment XD

crystal fog
#

thanks

grim halo
#

@stuck quartz cant you just repoen the GUI afterwards?
If no -> add a boolean shouldBeClosed to your LockUI and check in on close if it should be deleted or something

keen compass
#

you're welcome

#

@stuck quartz you can close inventories without destroying them just fyi

#

generally if you have inventories that are not going to change. IE they are a gui menu or sorts

#

never get rid of the inventory object for it 😉

#

saves you from re-creating it all the time

grim halo
#

@frigid ember ?paste could you paste your code?

keen compass
#

?paste

worldly heathBOT
grim halo
#

thx

keen compass
#

commands don't work if you type after them =/

#

also doesn't work if you try to put it on its own line as well

#

unfortunately

grim halo
#

Where do i find all the commands anyways?

keen compass
#

?help

#

.help

#

!help

grim halo
#

!HELP 😦

keen compass
#

guess it doesn't message you

#

anyways the commands can be found on Irc server in channel #Cafebabe

grim halo
#

weewoo_red HALP PLZ weewoo_red

#

Ah thx

wraith thicket
#

I don't help the popo

frigid ember
crystal fog
#

i've just donated, how can i edit my nickname?

keen compass
#

uh I think someone does it for you

frigid ember
#

you must donate 10+

keen compass
grim halo
#

Why is the thread dangling there?

keen compass
#

probably because they don't want to show their main class

crystal fog
#

you must donate 10+
@frigid ember i've donated 10$

frigid ember
#

thats not solution

#

ok

keen compass
#

because they love to keep you guessing in what is going on @grim halo 😉

grim halo
#

Why not obfuscate it before sending? Would make my life much more easy

keen compass
#

supposedly the method at top is in the onEnable()

grim halo
#

ok...

keen compass
#

that is all I know lol

frigid ember
#

yes

#

its in on enable

#

so you dont know?

grim halo
#

The thread gets started right away. right?

frigid ember
#

yes

grim halo
#

and the count starts with a value of 60?

frigid ember
#

when are players 11+

grim halo
#

then this here:

            while(CountDownRunnable.getCount() == 20){
                SelectWinMap.selectWinMap();
                Bukkit.broadcastMessage("§8[§6Vote§8] §7Map §6" + Map + "§7has won! §3(" + MapW + "Votes)");
            }

Is skipped. Because 60 is not 20

frigid ember
#

its start

keen compass
#

I wonder when they will realize that threads die after they have executed their code successfully unless there is a loop to keep it going 😉

frigid ember
#

WTF

grim halo
#

So the thread starts -> runs the code once (skipping the loop) -> then ends

frigid ember
#

no

keen compass
#

yes that is exactly what happens

frigid ember
#

ok

#

so can you tell me why this work?

#
            while(Bukkit.getServer().getOnlinePlayers().size() <= 11){coutdown = "§aWaiting...";
            }
            CountDown();
        }).start();```
grim halo
#

Put a System.out.printline after the while loop

keen compass
#

while(Bukkit.getServer().getOnlinePlayers().size() <= 11)
@frigid ember you have a loop ^

grim halo
#

Because .size() is below 12 when the thread starts

frigid ember
#

so

#

what i need to do?

keen compass
#

modify the condition so that it is true for it to execute it

craggy lynx
grim halo
#

Want my recommendation or a quickfix?

keen compass
#

or inverse the condition

frigid ember
#

yes

#

i want

#

while true?

grim halo
#

Want my recommendation or a quickfix?

frigid ember
#

while(true){
if (getCount() == 20)
SelectWinMap.selectWinMap();
Bukkit.broadcastMessage("§8[§6Vote§8] §7Map §6" + Map + "§7has won! §3(" + MapW + "Votes)");
}

keen compass
#

@craggy lynx yes it is possible. You have two methods to make this work. Either use the conversation API, which is what I recommend, or keep track of messages of who is where and send the appropriate messages to the right places.

grim halo
#

Yes. I dont care anymore. Just use while(true).

keen compass
#

lmao

frigid ember
#

xD

keen compass
#

Alright, going to watch some comedy now

frigid ember
#

me too

stuck quartz
#

@grim halo

Inventory inv = player.getInventory();
player.closeInventory();
LockUI LUI = ChestSec.PublicLockManager.get(e.getInventory());
System.out.println(ChestSec.PublicLockManager.get(e.getInventory()));
System.out.println(ChestSec.PublicLockManager.get(e.getClickedInventory()));

player.sendTitle("Debug", ((Sign) LUI.sign.getState()).getLine(1), 1, 5, 1);
ChestSec.PublicLockManager.destroy(inv);
``` im going to try to destroy the LockUI manually, this way
if i used shouldBeClosed it would stay on the manager forever (not forever forever, till the plugin is disabled)
craggy lynx
#

@craggy lynx yes it is possible. You have two methods to make this work. Either use the conversation API, which is what I recommend, or keep track of messages of who is where and send the appropriate messages to the right places.
@keen compass And how can I "stop" chat messages, copy them and send them to a specific world?

keen compass
#

depends which method you choose

#

if you are going to go with the manual method, which is the second option I stated, you will have to listen to the appropriate chat event

#

basically you are going to be cancelling the chat event, grab the message and player involved

#

then you will get the world from the player object, then get all the players in said world

#

send the message to all players there

hollow stag
#

I am gettomg this error
https://hasteb.in/agukamif.apache
Here is my code

Inventory inventory = Bukkit.createInventory(player, InventoryType.ANVIL);
                player.openInventory(inventory)
keen compass
#

or...Conversation API you don't need to do all of that

#

you just add people to the conversation in the world they are in

#

and the server will handle that 😉

craggy lynx
#

@keen compass
Something like that: event.getMessage()

keen compass
#

well it is going to be playerchatevent

#

or playerAsyncchatevent

#

one of the two

#

anyways, have fun. Those are the two ways I know of, well technically know a third and that is using packets

#

but that third option is more difficult then the former 2

marsh hawk
#

probably a long shot but has anyone done the math to perfectly prop an item in an armorstand's hand on top of a player's head?

frigid ember
#

STILL NOT WORKING BRUH

grim halo
#

Oh really?

keen compass
#

@marsh hawk not sure about items, but do entities count?

grim halo
#

I thought while(true) was a tremendous idea

frigid ember
#

why?

stuck quartz
#

@grim halo IT WORKED! thanks a lot!

marsh hawk
#

Hmm, idk i want to put a flower on the top of the player's head

#

just a lot of math to it

frigid ember
#

whyyyy it dont woork

neat pulsar
#

someone please help me. My server is stuck while saving chunks.

[08:03:42 INFO]: Saving players
[08:03:42 INFO]: Saving worlds
[08:03:42 INFO]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld
[08:03:42 INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[08:03:42 INFO]: Saving chunks for level 'ServerLevel[world_nether]'/minecraft:the_nether
[08:03:42 INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[08:03:42 INFO]: Saving chunks for level 'ServerLevel[world_the_end]'/minecraft:the_end
[08:03:42 INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[08:03:42 INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[08:03:43 INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved

I'm using screen in ubuntu, it usually closes it, but now it's just stuck in here. I pregenerated a 20k x 20k area, that can be the issue I quess.

marsh hawk
#

probably shouldnt be running a server through screen

#

use docker

keen compass
#

what?

#

screen is just fine

marsh hawk
#

not really any isolation

stuck quartz
#

what is a docker

keen compass
#

if you try to run all the servers as the same user sure

#

but honestly what are you expecting another server to do?

marsh hawk
#

yeah fair

#

Whos the dude that everyone calls the math genius of spigot

neat pulsar
#

screen was fine for me, it's the first issue since I'm using it. Does my server still saving chunks, or it's just stuck?

marsh hawk
#

might sned him a message about the item on head

sinful spire
#

its probably saving that 20k x 20k map

neat pulsar
#

I can close the process, but shoud I?

sinful spire
#

probably not

#

you could lose some of the generation progress

keen compass
#

https://github.com/iso2013/PacketEntityAPI
https://github.com/iso2013/MultiLineAPI
@marsh hawk between these two plugins, it spawns entities on top of players heads. MultiLine allows creating multiple lines for player tags, and PacketEntityAPI is pretty much the plugin that does the majority of the work in spawning the entities.

neat pulsar
#

It was a nether 1.16.1 pregen with chunkmaster

#

20k x 20k area

grim halo
#

Hm did you try just sending a enter keystroke? Hwo long is it hanging now?

frigid ember
#

@grim halo why it dont work?

marsh hawk
#

@keen compass Yeah taht's entities though, I need the rotation of an armorstand's arm to perfectly position an item

grim halo
#

@frigid ember Because that is not how any of this works. But you neither wanted my recommendation nor my quickfix. So go and use your while(true)

keen compass
#

I did the math for this not too long ago

#

its really not all that hard

#

just need to use radians

marsh hawk
#

all i have so far is the yaw down

frigid ember
#

@grim halo i asked for your quickfix

marsh hawk
#

pitch*

keen compass
#

well better start sprucing up on your circles 😛

marsh hawk
#

yaw is a bit weirder

#

argh i hate circular functions in math lol

neat pulsar
#

bungee saying that survival is offline

frigid ember
keen compass
#

bascially need to use a circle to determine at what point the arm needs to be in relation to the players head for a given item. And well the arm rotates

marsh hawk
#

i also have to account for the length of the armorstand's arm

grim halo
#

I asked do you want X or Y
Your answer: Yes

frigid ember
#

quickfix

#

oh

#

i readed it now

#

there is or

#

sorry

#

quickfix please 🙂

grim halo
#

set count to a value below 20

frigid ember
#

what?

#

its below 20

keen compass
#

oh, different items cause the numbers to be different for the rotation too @marsh hawk so watch out for that

frigid ember
#

its 60

tough kraken
#

if i am using the ChatEvent in Bungeecord, commands doesnt work.
any ideas?

marsh hawk
#

this is going to be a pain lmao

frigid ember
#

public static int count = 60;

grim halo
#

Ok now you are just straight up trolling

frigid ember
#

oh below

#

xd

keen compass
#

Well in PackentityAPI as you notice there is a structures file @marsh hawk had to keep track of all entities sizes

#

so I understand the pain for that in regards to items

frigid ember
#

but i need to have it 60 wtf

keen compass
#

unfortunately there isn't information in regards to item sizes XD

frigid ember
#

when will be done that while

#

if its below 20

grim halo
#

then change == 20 to > 20

marsh hawk
#

That's really strange though; why would items effect rotation numbers

keen compass
#

because items are held from the bottom

#

but that isn't true for all items

marsh hawk
#

ah right

frigid ember
#

but that will spam chat?

#

or no?

neat pulsar
#

does anyone knows a good economy plugin?

grim halo
#

Yes that will def spam chat.

sinful spire
#

Vault

frigid ember
#
        new Thread(() -> {
            while(true){
                if (getCount() == 20){
                    SelectWinMap.selectWinMap();
                    Bukkit.broadcastMessage("§8[§6Vote§8] §7Map §6" + Map + "§7has won! §3(" + MapW + "Votes)");
                }
            }
        }).start();
keen compass
#

alright have fun @grim halo 😉 going to rest now lol

grim halo
#

That might work. But then you have thread running full go no stop

#

Thx...

frigid ember
#

that dont work

#

this dont work

grim halo
#
            public void run() {
                if (count == 0) {
                    RunGame();
                }else{
                    count--;
                          <- Why not check if count == 20 here and then broadcast?
                    coutdown = "" + count;
                }
marsh hawk
#

gotta crack open the good ol' graphing calculator

frigid ember
#

oh true

#

sorry

humble olive
#

Additionally if you use threads, its generally considered to use while(Thread.currentThread().isInterrupted()) instead of while(true)

#

Considered better practice

#

!

#

Isinterrupted

grim halo
#

Dont event start

humble olive
#

?

grim halo
#

He wont comprehend a single word you say.

humble olive
#

:/

#

Well, everyone starts somewhere

grim halo
#

Scroll up and read the full convo with him.

humble olive
#

Oh, I see

#

Hang in there

frigid ember
#

bruh finally

sinful spire
#

AbNormal|has

#

add a space there please

#

also 1|Votes

#

its something that will trigger people

frigid ember
#

i know

#

I already done it

marsh hawk
#

I think i've figured out pitch

#

but now i need to do yaw

#

o-o

#

screw you radians & circular functions

#

and while im at it

tiny dagger
#

yaw is horizontal

marsh hawk
#

maths as a whole

tiny dagger
#

pitch is vertical

marsh hawk
#

I know what it is

#

im tryingt opositon an armorstand's arm ontop of the player's head

tiny dagger
#

yaw = x = cos

#

if i remember by my top of my head

#

not really equal

#

but this is how it's used 🤔

#

pitch = z = sin

marsh hawk
#

thank god for desmos, this wouldve taken me yonks to do in my head

tiny dagger
#

what's this exactly for? 🤔

marsh hawk
#

im trying to positon an armorstand's arm ontop of the player's head
@marsh hawk

tiny dagger
#

i saw the function somewhere

#

oh

#

why didn't you used a vector

marsh hawk
#

would be easy if i didnt have to account for the armorstand's arm length

#

hm i could

#

Would still be the same problem with the length of the arm though

stuck quartz
#

how can i loop through PersistentDataContainer data?

tiny dagger
#

you just need the vector to get the start

#

then the length is the magnitude you give to that vector ? 🤔

vernal spruce
#

javadocs wouldv have gave you a quick answers on that @stuck quartz

stuck quartz
#

ok, thanks

marsh hawk
#

so get the normal of my head angle

#

then add magnitude?

hollow stag
#

I am gettomg this error
https://hasteb.in/agukamif.apache
Here is my code

Inventory inventory = Bukkit.createInventory(player, InventoryType.ANVIL);
                player.openInventory(inventory)

repost

tiny dagger
#

i think you need the arm start

#

then get the vector direction

#

torwards the target

#

i'll have to try myself

frigid ember
#

Is there a way to prevent mobs from attacking certain players?

#

I don't want this skeleton to attack players on a specific bukkit scoreboard team

unkempt ridge
#

How can I get \t to work in player.sendMessage()? It comes up as a weird symbol currently.

grim halo
#

@frigid ember I think you need to write your own AI goal selectors

frigid ember
#

I see

#

What does that entail

vernal spruce
#

listen to this

silent veldt
#

@unkempt ridge what are you looking for exactly? Evenly spaced columns?

vernal spruce
#

cancel if its your player

frigid ember
#

Is there some documentation detailing how to do that or where to start?

#

oh ok

#

Thanks Stellrow

grim halo
#

I thought about that but it might target the same player over and over again.

unkempt ridge
#

@silent veldt yes I have "PlayerName\t\t\tPlayerLevel"

vernal spruce
#

it already check alot of times by default even if it has a target

#

so its not that important

silent veldt
#

Minecraft uses a nonproportional font, so tab spacing won't work

#

You can do it manually, but it's.. difficult

grim halo
#

My point is with a custom goal selector you could cycle throught the players nearby and selecto only those in a team.
If you just cancel the event the mob might just stand around while allies are nearby even when there is a potential enemy in sight.

unkempt ridge
#

is there any other way besides manually? I can just do 8-12 spaces and I tihnk that should work

#

thats sad escape characters don't worrk 😭

silent veldt
#

You can do the spaces manually, sure. But the columns probably won't line up. Depends on what you're displaying in the first column

vernal spruce
#

not sure how it would react

frigid ember
#

My point is with a custom goal selector you could cycle throught the players nearby and selecto only those in a team.
If you just cancel the event the mob might just stand around while allies are nearby even when there is a potential enemy in sight.
@grim halo Exactly, thats what I think it will do

vernal spruce
#

im mostly aiming towards a list of all in range players

#

wich the entity just cycles through once cancelled/not available

frigid ember
#

Right, but how would I know if it no longer has a target?

vernal spruce
#

not rly sure how it handles

#

targeting

grim halo
#

I think the event will be fired for the closest player

vernal spruce
#

the getTarget will return null

#

i guess it could be fancy

#

you might be able to make the player invisible to the entity

unkempt ridge
#

@silent veldt how can I do it so all 3 columns line up with their headers?

vernal spruce
#

not sure

silent veldt
#

You measure the width of each character manually, write a class that will give you the width of a particular display string, calculate the padding you need between columns, then leverage the fact that normal and bold spaces are 4px and 5px individually and you can cover any column spacing over 11px with a combination of the two

void marsh
#

Hello, for the server i am staff on there is a weird thing where you can break zombiepigmen spawners but you dont actual pick up the spawners.

silent veldt
#

That's how I did it, at least.

vernal spruce
#

Thats most likely from silkspawnrs not spigot

#

meaning you should seek help on theyr page

void marsh
#

Ok

#

Do they have a discord?

frigid ember
#

idk Zack - heres where you can look

void marsh
#

Lol

unkempt ridge
#

would be so much easier if escape charters were a thing ._. I'll do some research

void marsh
#

Have you got any ideas tho why it does that

silent veldt
#

Yup as I said, not easy. But once you get it it looks really nice

wind dock
#

@grim halo very late but yes I was talking about a daemon

#

I got it kinda figured out

#

Its on the actual pc that's hosting the server

unkempt ridge
#

@silent veldt somewhat like that yeah my headers were going to be at the top and the information displayed below them

sinful spire
#

why did you blur out UUID if its just your indentifier that you can get from the nickname?

frigid ember
#

yea idk, theres no point in hiding any of that info lol

wind dock
#

How do I make it to the play.geometrycraft.host go to 25577?

sinful spire
#

you need to wait for DNS to refresh probably

wind dock
#

@sinful spire its been 4 hours

sinful spire
#

oh

#

TTL is 30min

#

can you change that?

wind dock
#

Yes

sinful spire
#

try giving it like 2 minutes

wind dock
#

Change it and give it 2 min?

sinful spire
#

also whats that A record also with play.domain.host?

wind dock
#

?

sinful spire
wind dock
#

Thats the ip

#

I blacked it out

sinful spire
#

doesnt the SRV record require a ip?

#

it did on cf

wind dock
#

Ummm

#

Where do i put the ip

sinful spire
#

what you using

#

for the domain?

wind dock
#

Same domain

sinful spire
#

wdym same domain

wind dock
#

They both have the same domain

sinful spire
#

i mean

#

do you use something like cloudflare

wind dock
#

No, namecheap

sinful spire
#

ok

wind dock
#

Yeah

sinful spire
#

the SRV protocol seems to need "_tpc.play"

wind dock
#

Ph

sinful spire
#

tcp*

bronze acorn
#

i'd recommend connecting ur domain w cloudflare

#

easier to manage

wind dock
#

_tcp.play right

#

Oki

#

@bronze acorn how do i change?

#

U bought this domain for pretty cheap, like 2 bucks

sinful spire
#

yeah

wind dock
#

I*

bronze acorn
sinful spire
#

cf is free until you start to use theirs premium services

bronze acorn
#

yeah

wind dock
#

Oh really? Even for a domain?

sinful spire
#

yeah

bronze acorn
#

i have a namecheap domain as well but i use cloudflare

#

their free services are good enough

sinful spire
#

i dont need a domain so i just got a freenom domain

wind dock
#

Oh, but the domain will run out soon right

#

Oh yeah

sinful spire
#

no

bronze acorn
#

cloudflare is free forever

sinful spire
#

on cf its unlimited

wind dock
#

Oh

bronze acorn
#

just pay for namecheap

wind dock
#

Ohhh

#

Ok

#

I see

bronze acorn
#

yesh

sinful spire
#

.host is like cheap

wind dock
#

How do I use the namecjeap domain with cf? A guide?

bronze acorn
#

so once you register it'll tell you to add a site

sinful spire
#

just point your DNS to cloudflare

bronze acorn
#

then you type in your domain

wind dock
#

Oh

#

I see

bronze acorn
#

and then itll scan to see if its like existing or whatever

sinful spire
#

it'll take a few minutes ^

bronze acorn
#

then itll tell u to change the domain nameservers to cloudflares

wind dock
#

I gtg, thank you guys

bronze acorn
#

and that might take 5 minutes up to an hour or so

sinful spire
#

cya

wind dock
#

I'll look into cloudfare

bronze acorn
#

aight cy

wind dock
#

Is it really good?

sinful spire
#

yeah

bronze acorn
#

yesh

wind dock
#

Ok cya

sinful spire
#

you get free 3 page rules

wind dock
#

Thnx again

sinful spire
#

which is enough for most people

bronze acorn
#

no problemo sie

#

sir

wind dock
#

Whats a 3 page rule?

#

I gtg tho so uh imma look back

sinful spire
#

cya

bronze acorn
#

3 rules, such as permanent redirects and stuff

#

cya

sinful spire
#

it took cf once 48h to get dns up 😄

bronze acorn
#

cf was like having outages everywhere today werent they

#

😪

sinful spire
#

like yesterday

bronze acorn
#

ye

#

rip

sinful spire
#

this isn't the way to get a entity from a event

frigid ember
#

Is there away where i can host my vps without puTTY wont close?

bronze acorn
#

what is getEnrity

#

getEnrity

#

ENTITY

#

brandon

#

as long as ur machine is always on

#

then u dont have to have putty open

#

if you have a task running

sinful spire
#

just ssh later

bronze acorn
#

id recommend installing screen

#

to run background tasks

#

KM what event is that

sinful spire
#

nvm i imported the wrong entity

#

a event

bronze acorn
#

oh xd

#

gg

sinful spire
bronze acorn
#

ah

#

i'd say dont declare an entity variable if its only gonna be used once

#

just use event getEntity instanceof but its whatever

sinful spire
#

true, but im going to use it after the else probably

bronze acorn
#

ah

#

aight

sinful spire
bronze acorn
#

is that good

#

cd

#

xd

#

gg

sinful spire
craggy lynx
#

How can I make a string out af an array and remove the first "item" frome the array in the string

tiny dagger
#

array copy

#

from 1 to length - 1

craggy lynx
#

Im a java beginner, i nedd the code please

sturdy oar
#

.-.

#

u need spoonfeed?

#
final StringBuilder strBldr = new StringBuilder();
final String[] yourArray = ...
for (int i = 1; i < yourArray.length; i++)
  strBldr.append(yourArray[i]).append(' ');
craggy lynx
#

Thanks

torn robin
#

ew

sturdy oar
#

that generates a string without the first element

#

be sure that the array is at least 2 elements

#

or it will yeet itself

torn robin
#

don’t forget to append a space

#

assuming they’re strings

#

which would make sense

#

There ya go

sturdy oar
#

wait nvm i can improve

trim lodge
#

How I can add Javadoc in Visual Studio Code

sinful spire
#

a question, what does player.getHealth() return? because 0,5hp seems to be 4

karmic sable
#

Heya, anyone knows how I can get the Player who fired an arrow (in for example ProjectileLaunchEvent)

lone fog
#

It’s a double

sinful spire
#

ohh

lone fog
#

Each half heart is 1 hp

sinful spire
#

nevermind then

#

wait

#

that doesnt make sense

sturdy oar
#

? it does

#

4 health would be 2 hearts

#

wait

craggy lynx
#
final StringBuilder strBldr = new StringBuilder();
final String[] yourArray = ...
for (int i = 1; i < yourArray.length; i++)
  strBldr.append(yourArray[i]).append(' ');

@sturdy oar
And how is the ne string calles

sturdy oar
#

what

sinful spire
#

nevermind there was a sneaky * 2 in my code lol

torn robin
#

😐

lone fog
#

strBldr.toString

sturdy oar
#

yeah dude you need to learn some java

#

I've already spoonfed enough

craggy lynx
#

Ok thanks

karmic sable
#

TheViperShow wanna feed me the answer to my question? ;)

sturdy oar
#

which question

karmic sable
#

How I can get the Player who fired an arrow (in for example ProjectileLaunchEvent)

sturdy oar
#

you do an instance check

#

and if it's a player you cast it?

torn robin
#

Issa projectile

sinful spire
#

arrayName[1].toString() lmao

dark shuttle
#

Projectile#getShooter

torn robin
#

It has a source

sturdy oar
#

shooter is an entity

torn robin
#

Get it’s source and then get the shooter

dark shuttle
#

it will return ProjectileShooter, and then check if shooter is instanceof Player

lone fog
#

Not always an entity

torn robin
#

If the shooter is a player then tada you can cast

sturdy oar
#

yeah it can be a dispenser my bad

sinful spire
#

it'll probably error when a dispenser is used

#

but might not

karmic sable
#

Wait are you guys saying that event.getEntity returns the entity causing rhe projectile, and not the actual projectile??

lone fog
#

No

pastel nacelle
#

read the docs

lone fog
#

Event.getEntity.getShooter

torn robin
#

No it returns the projectile

karmic sable
#

alright thanks Coll

#

And the others

trim lodge
#

Anybody known how to add Javadoc in Visual Studio Code?

torn robin
#

you type it out

dark shuttle
#

you mean like attaching the doc?

trim lodge
#

Yes

sturdy oar
#
@EventHandler
public final void bruh(final ProjectileLaunchEvent bruhEvent) {
final ProjectileSource prjS = bruhEvent.getEntity().getShooter();
if (!(prjS instanceof Player)) return;
final Player player = (Player) prjS;
// do your stuff
}
``` @karmic sable
trim lodge
#

I have the doc

#

Buy idk where I can past it

karmic sable
#

Thanks TheViper but all I needed was the "getShooter" which I didn't know existed ;) But yeah thanks!

pastel nacelle
#

read the docs

#

it will help you

dark shuttle
#

@trim lodge are you using vscode java pack?

sturdy oar
#

smh do people really use VSCode for java

karmic sable
#

You can get intelIJ for free

trim lodge
#

Intellj is better?

lone fog
#

Or eclipse, or netbeans

karmic sable
#

intelIJ is what I use, had no issues with it

sturdy oar
#

Intellj is better?
@trim lodge It's an IDE

#

VSCode... well it's not really

trim lodge
#

Ok

sturdy oar
#

Like it does work, i even use it for NodeJS , but i honestly wouldn't recommend it for Java

trim lodge
#

I'm going to install it, could you help me with the installation?

sturdy oar
#

i mean it's stupidly easy

#

if you have Windows 10

#

the setup wizard will do basically everything for you

trim lodge
#

I have 8

#

xD

sturdy oar
#

whatever it's the same process

#

and btw update lol

trim lodge
#

I would just need help adding the libraries and little else

lone fog
#

Isn’t windows 10 not a free update anymore

sinful spire
#

dont think it is

sturdy oar
#

i mean a license is 5$

polar gust
#

I really need a way to register entities in 1.15.2, does anyone have a way to do it?

sturdy oar
#

what do you mean "register entity?"

polar gust
#

registering custom NMS entities

mellow wave
#

and what's the reason for registering entities in to the nms..?

polar gust
#

so that I can spawn them

trim lodge
mellow wave
#

There are better ways than injecting your entities in to NMS

sturdy oar
#

disable Plugin Development

#

you're 99.9% not going to code IntelliJ plugins i think

#

the rest is fine

trim lodge
#

xD

vernal spruce
#

so that I can spawn them
@polar gust be more precise

#

you can already spawn w/e you want without much problem

#

i sometimes even use the api to avoid using nms

trim lodge
vernal spruce
#

select java 8 where it says 14

#

top bar

#

actually nvm thats the first project thing

#

go with empty project,write ur name

sturdy oar
#

make him install Minecraft Development Plugin

craggy lynx
#

How can i load a world with a plugin

light orbit
#

Like put a plugin in a server?

craggy lynx
#

Any code or is it too much

vernal spruce
#

Its actually rather simple to load a world

light orbit
#

Yeah

sturdy oar
#

But not to generate it 🤣

#

expecially on other threads

craggy lynx
#

I just want to load it no generation

sturdy oar
#

you can use Multiverse API tbh

#

they probably allow this kind of stuff

#

otherwise I'm pretty sure you'll need NMS

craggy lynx
#

Ok so it is not possible with just bukkit/spigot api

sturdy oar
#

I'll check

#

but i think not

craggy lynx
#

Maby getServer().getWorlds.add(worldname;

sturdy oar
#

wut

#

that makes no sense

#

it's not even a list of strings so you can't add a name

vernal spruce
#

'new WorldCreator("worldName").createWorld()'

sturdy oar
#

mh probably

vernal spruce
#

Has been tested

sturdy oar
#

but that just creates the world folder doesn't it

vernal spruce
#

Its a thats it rather than probably

#

If it exists its gonna load it instead

#

As its common for almost everything

craggy lynx
#

Thanks

ocean prism
#

Hello, I would like to know how it would be possible for me to retrieve the drops when I break wheat for example 🙂 ( 1.8.8 )

vernal spruce
#

oh boy

pastel nacelle
#

there is an event named something along the lines of blockdropitemevent

#

but i don't remember if that is exclusive to paper or if it's on spigot as well

sturdy oar
#

yes it's possible

vernal spruce
#

thats really encouraging

#

go at blockbreakevent

ocean prism
#

But event.getBlock().getDrops() don't work :c

vernal spruce
#

dont see any getdrop/setdrop

#

method in there

#

you got a setdrops method?

pastel nacelle
#

use a version that isn't over half a decade old 🙃

vernal spruce
#

also ^

#

join the movement of making 1.8 die by not creating this for it anymore

sturdy oar
#

oh wait it's 1.8.8

vernal spruce
#

jk

ocean prism
#

oh wait it's 1.8.8
@sturdy oar yup

vernal spruce
#

javadoc for 1.8.8 is almost inexsistent

wraith thicket
#

As far as I know, up until 1.13, the #getDrops method wouldn't take into account the tool (i.e fortune/silk touch) + you'd still need to manually get the drops of any subsequently broken blocks (signs, paintings, sugar cane and so on)

vernal spruce
#

he actually doesnt know how to get the drop

#

as the method doesnt exist

wraith thicket
#

If he wants to take into account enchantments, he'll have to do it manually anyway

vernal spruce
#

cant wait for the moment where md says they no longer accept 1.8 discussions md_5

#

gonna buy a cake

ocean prism
#

noice

wraith thicket
#

And the method does seem to exist in the javadocs you linked to?

ocean prism
#

And the method does seem to exist in the javadocs you linked to?
@wraith thicket #getDrops ?

wraith thicket
#

Yeah

frigid ember
#

hey Guys

ocean prism
#

yep

frigid ember
#

How do you update armor durability.