#help-archived

1 messages · Page 78 of 1

idle zodiac
#

i'm using pipes

naive goblet
#

Yes

idle zodiac
#

to build the inventorygui

#

but

#

idk much about this maven bs

naive goblet
#

Wel

marsh nova
#

use maven

#

it will help you a lot

naive goblet
#

Use matts framework

frigid ember
#

how do find out who placed a block in mc

naive goblet
#

And use Gradle

marsh nova
#

also, not maven clean package

idle zodiac
#

omg

marsh nova
#

it's mvn clean package

idle zodiac
#

literally

#

i'm lost

naive goblet
#

Don’t use maven

marsh nova
#

is it possible to use maven clean package?

idle zodiac
#

InventoryGUI says to use maven...

naive goblet
#

Use gradle

marsh nova
#

No

#

Maven better

idle zodiac
#

omg

#

i dont want to get into an argument

naive goblet
#

Jesus

idle zodiac
#

i'm fine with maven

#

i've set it up

naive goblet
#

Well imagine having to write more than 2 lines to import a dependency

idle zodiac
#

it's just throwing NoClassDeFofouroN erreoro all the while

naive goblet
#

Oh yeah

idle zodiac
#

on load

#

sorry

naive goblet
#

You need to shade it ig

idle zodiac
#

?

worldly heathBOT
#

Edit this to change the output of the command!

idle zodiac
#

wat

zealous yoke
#

yea its mvn

marsh nova
#

lol

idle zodiac
#

i'm so lost

#

and tired

#

its 10:20 pm

#

i've been coding sinse 6:00am

naive goblet
#

Like if we have some framework classes you may have to clone those into ur own project when processing the jar

zealous yoke
#

@idle zodiac answer my question

idle zodiac
#

WHAT

#

what wasd tyrou ejidomi

zealous yoke
#

otherwise i cant help you

idle zodiac
#

idk if i use maven clean package

zealous yoke
#

do u use mvn clean package to build it?

#

ok you dont

idle zodiac
#

i literally havent a clue what i'm doing

#

i'm using pipes to build it

#

its what InventoryGUI said to use

zealous yoke
#

View -> Tool Windows -> Maven

#

Select your project

idle zodiac
#

yes

zealous yoke
#

Click above it on the m

#

and run mvn clean package

idle zodiac
#

AJH

#

ok

#

thahks

zealous yoke
#

your project will be in your target folder

idle zodiac
#

so

#

do i select mvn clean?

zealous yoke
#

no, type clean package there

marsh nova
#

clean just removes the target folder

idle zodiac
#

oh

marsh nova
#

package builds a jar

zealous yoke
#

clean package cleans it and creates it

idle zodiac
#

there wasnt an option for clean package

zealous yoke
#

package would also be enough

marsh nova
#

install additionally adds it to your local repo if you need it in other projects of yours

zealous yoke
#

you can type it

idle zodiac
#

ah

#

ok

#

understood

#

OMG

#

ok

zealous yoke
#

by yourself

idle zodiac
#

it just built the Pipes

marsh nova
#

and if you are making a public API and deploying to a repository then deploy will do that as well

zealous yoke
#

then take a look at the target folder and you can use the jar where no "original" is

idle zodiac
#

?

worldly heathBOT
#

Edit this to change the output of the command!

idle zodiac
#

literally

marsh nova
#

also, make sure not to shade the spigot jar

#

yes, people have done that before

idle zodiac
#

that's already shaded right?

zealous yoke
#

yea

idle zodiac
#

paste it

zealous yoke
#

you should have two jars in the target folder

idle zodiac
#

where is the link

zealous yoke
#

which link?

idle zodiac
#

idk

#

for hastebi

zealous yoke
#

are you drunk?

idle zodiac
#

no

#

very very tired

marsh nova
#

I discovered a public economy plugin with Vault shaded into it. A user was having trouble with a shops plugin because it couldn't detect their Vault economy. No wonder

zealous yoke
#

what are you talking about? which hastebin link?

idle zodiac
#

idk

#

that's what ei berkoopl

#

built

marsh nova
#

that's a pom

idle zodiac
#

yes

marsh nova
#

look inside your project directory

#

find the target folder

idle zodiac
#

i'm in target

#

yes

marsh nova
#

it's literally called 'target'

idle zodiac
#

I SEES TI

#

now haet

zealous yoke
#

you should add the spigot repo also to maven but it will probably also work that way

idle zodiac
#

?

worldly heathBOT
#

Edit this to change the output of the command!

idle zodiac
#

wat

#

OMG

#

oitgj ko l oe rop o comm i sndo pp

marsh nova
#

um, by the way

idle zodiac
#

esy

marsh nova
#

where is your spigot dependency in your pom?

idle zodiac
#

wat

#

do i need it?

zealous yoke
#

not necessarily

marsh nova
#

no you don't

zealous yoke
#

if you use spigot

#

with intellij

idle zodiac
#

lmpok

#

o

zealous yoke
#

but it would be much better

idle zodiac
#

so

marsh nova
#

if you are attaching the library with intellij it's fine

idle zodiac
#

i have pipes.jar

#

niowen erhi

#

now what

zealous yoke
#

add it to your server

marsh nova
#

i just want to make sure inventoryGUI isn't declaring a compile dependency of spigot which is being shaded into your plugin

zealous yoke
#

and test it

idle zodiac
#

oko

#

ro

#

nope

#

it doesnt work

#

what

#

wiat

zealous yoke
#

the same exception?

idle zodiac
#

no

zealous yoke
#

or a new one?

idle zodiac
#

but i cant use piepesporjk.jar

#

it only shows "iptsje k maven: tihepekdo." or whatever

#

frpom whreje ei did irt before

pallid panther
#

ItemStack item = new ItemStack(Material.POTION); item.setDurability((short) 8197);

set durability is depreciated and doesnt work... how do i give a player a specific potion type

idle zodiac
#

use itembuilder

#

or whatever its called

#

stop

#

oops

#

wronoogo omrooeotor

#

OK there is still a noclassdeffounderror

#

hwat isethee

#

stop

#

fuck

pallid panther
#

item builder wont work for me facepalm haha i need a vanilla solution

idle zodiac
#

rip[

#

why

pallid panther
#

because im loading the type of potion from config

idle zodiac
#

rtepi

pallid panther
#

plugin.getConfig().getString(itemname + ".Type"); lol

idle zodiac
#

oh ok

#

ok

naive goblet
#

Whut

idle zodiac
#

i'm trying a shaded version of the ijores o od

#

buti['k nto sue if its triofng iowork

naive goblet
#

You can still make an ItemBuilder for that?

idle zodiac
#

WHY sidodesnT I work

#

ok

#

i'm going

#

slep

pallid panther
#

gn haha

naive goblet
#

Ok gn

pallid panther
#

sorry im a little new and libraries arent my thing

naive goblet
#

That’s Java

#

But yeah

#

What the issue

pallid panther
#

basically im creating an item stack with potion.. or splash potion or whatever

#

and i need

#

to add a type to it

#

like

#

to change it from an unobtainable potion to lets say an instant health potion

naive goblet
#

Make a potionbuilder extending the itembuilder

pallid panther
#

example?

naive goblet
#

You have an ItemBuilder class?

pallid panther
#

i really feel like a noob!! haha js is my thing not java

naive goblet
#

It’s fine 🙂

pallid panther
#

what do you mean by an item builder class

#

?

worldly heathBOT
#

Edit this to change the output of the command!

marsh nova
#

?

worldly heathBOT
#

Edit this to change the output of the command!

marsh nova
#

lol

#

?

worldly heathBOT
#

Edit this to change the output of the command!

frigid ember
#

?

worldly heathBOT
#

Edit this to change the output of the command!

pallid panther
#

wait thats super old

#
                        player.chat("/omzp givegui "+player.getName());
                    }else if(Bukkit.getPlayer(args[1]) != null && args.length == 2){
                        player.chat("/omzp givegui "+args[1]);
                    }else if(Bukkit.getPlayer(args[1]) != null && !args[2].equalsIgnoreCase("gui")){
                        try{
                            String arg = args[2];
                            ItemStack item = new ItemStack(Material.getMaterial(plugin.getConfig().getString(arg+".Type")), 1);
                            ItemMeta meta = item.getItemMeta();
                            meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString(arg+".Name")));
                            item.setItemMeta(meta);
                            Bukkit.getPlayer(args[1]).getInventory().addItem(item);
                        } catch (IllegalArgumentException e) {
                            player.sendMessage("The item identifier "+args[2]+" does not exist");
                        }
                    }else{
                        try{
                            String arg = args[1];
                            ItemStack item = new ItemStack(Material.getMaterial(plugin.getConfig().getString(arg+".Type")), 1);
                            ItemMeta meta = item.getItemMeta();
                            meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', plugin.getConfig().getString(arg+".Name")));
                            item.setItemMeta(meta);
                            player.getInventory().addItem(item);
                        } catch (IllegalArgumentException e) {
                            player.sendMessage("The item identifier "+args[1]+" does not exist");
                        }
                    }```
#

my current "item builder" if thats what your refering too

boreal tiger
#

use three `

#

instead of one

pallid panther
#

oh thanks haha

naive goblet
#
class ItemBuilder {
  ItemStack stack;
  ItemMeta meta;
  public ItemBuilder(ItemStack stack) {
    this.stack = stack;
    this.meta = stack.getMeta();
  }
  public <T extends ItemBuilder> T withLore(String... lore) {
    meta.setLore(Arrays.asList(lore));
    return this;
  }
  public <T extends ItemBuilder> T withName(String name) {
    meta.setDisplayName(name);
    return this;
  }
  public ItemStack toItemStack() {
    stack.setItemMeta(meta);
    return meta;
  }
}
class PotionBuilder extends ItemBuilder {
  public PotionBuilder(String name) {
    super(name);
  }
  @Override public PotionBuilder withLore(String... lore) {
    return super.withLore(lore);
  }
  @Override public PotionBuilder withName(String name) {
    return super.withName(name);
  }
  public PotionBuilder withColor(Color color) { 
    if (meta instanceof PotionMeta) ((PotionMeta) meta).setColor(color);
    return this;
  }
  @Override public ItemStack toItemStack() {
    return super.toItemStack();
  }
}
#

Might be some error

#

But yeah was from mobile

#

Ah lots of them alr

pallid panther
#

oml java master right here

naive goblet
#

But u get the point

pallid panther
#

i can find em yeah

naive goblet
#

The constructor for instance of PotionBuilder

pallid panther
#

okayyy..... i thinnk i get it

naive goblet
#

Hope so took a while to write :0

radiant ingot
#

How long does it usually take for the support team managing the support email (tmp-support@spigotmc.org) to respond?

#

Just wondering if anyone here ever went through this process and if so how long it took.

wraith dew
#

i have a question

#

For some reason the dates resultset is reset to 0 after each iteration of the first while loop

#

Even though i have not used dates.beforefirst()

frigid ember
#

Hello!

I've been having a constant issue with my AvatarCreatures plugin that causes Ravagers to not rotate while in motion. I have it explained in detail here: https://trello.com/c/OKbAdMda

If you happen to find a possible solution, please DM me, comment on the Trello board, or send me a ping here 🙂

Thanks!

cloud sparrow
#

If you are requesting help, your best option is to make a thread on the forums like everyone else does.

hallow surge
#

And Also Post your Code! and Not A link!

#

unless its long then you pastebin or hastebin

brisk mango
#

@cloud sparrow this is a help channel, why cant they

#

this is why this channel exists

#

also that is some ugly code @wraith dew

marsh nova
#

you think that's ugly code? i have seen some really messing spaghetti in the minecraft dev universe

subtle blade
#

Conclure

#

You and @radiant hollow would get along well

marsh nova
#

public static everywhere, methods longer than 400 loc

brisk mango
#

it is @marsh nova

subtle blade
#

He in-lines his annotations too and I hate him for it

marsh nova
#

I know it's bad, i'm just saying there's a lot worse

brisk mango
#

yeah no shit

near lodge
#

How many ms should building a gui take?

brisk mango
#

why do you need to know that

subtle blade
#

likely none at all considering that, ideally, your GUI should be mostly cached

near lodge
#

impossible

subtle blade
#

If your items are static and non-dynamic, you can create it once and reopen it

#

Or at least re-use those item constants

near lodge
#

All of the items are dynamic

subtle blade
#

Well, the more dynamic items you have, the longer it will take to construct. Can't help that

near lodge
#

It takes between 2-15ms

#

Which I feel it's really bad

brisk mango
#

Wdym really bad

#

how is that bad

#

like what do you expect

#

why do you need it to be faster, whats the reason lmfao

near lodge
#

A tick is 50ms

#

Taking 30% of a tick I don't know how bad it is

brisk mango
#

Well still, its almost like instantly

#

its not 30%

#

you should learn percentages before doing java

near lodge
#

15ms is 30% of 50ms

marsh nova
#

lol

brisk mango
#

not really, anyway the more shit code you have, the longer it will take

near lodge
#

"the more shit code you have"

brisk mango
#

send your current code in a bin

subtle blade
near lodge
#

send your current code in a bin
@brisk mango lmao

marsh nova
#

you shouldn't need a calculator

near lodge
#

@subtle blade The reason all the items are dynamic is mainly because each player can have their own language selected

subtle blade
#

I'd figured that was the case

near lodge
#

Not to mention that in the lore and name it displays states, placeholders and other fun stuff

subtle blade
#

Do you cache these languages?

near lodge
#

I do cache all the messages

subtle blade
#

You're not pulling from file every time you want it right? lol

near lodge
#

No

subtle blade
#

Alright I'd have had to beat you PES_AngeryKid

near lodge
#

And even pulling from a file, Bukkit's YamlConfiguration caches everything

subtle blade
#

In a Map, yea. Though you could always be using another file type

frigid ember
#

Assault isnt the answer 😩

near lodge
#

Yeah

#

But the language file doesn't have children

#

like child memorysections

#

It's a wip so I don't have translations yet

marsh nova
#

what you can always do is spend a few minute to make your own config API using snakeYaml which uses a ConcurrentMap instead, so that you can access your config async

#

which could help depending on what you're doing, although GUIs are not the best application

near lodge
#

I don't have a problem with files, I cache everything on startup

#

but I only worry on how much of an impact can a few ms have

#

micro optimizations

vernal spruce
#

jeez dude what monstrosity i created ```if(args[0].equalsIgnoreCase("area")){
temp.clear();
if(args.length>=1){
if(args.length>=2){
temp.clear();
temp.add("create");

                    if(args.length>=3){
                        temp.clear();
                        temp.add("mobName");
                        if(args.length==4){
                            temp.clear();
                            temp.add("mobLimit");
                        }
                        if(args.length>=5){
                            return null;
                        }
                    }
                }

            }

        }```
#

tab completer so hard jeez

subtle blade
#

oh dear

#

Yea you don't have to do 90% of that lol

#

Create constants for your suggestions if you can

pallid panther
#

oh yikes

vernal spruce
#

as ugly as it is somehow does the job

pallid panther
#

i mean yeah

#

but

#

at what cost

#

XD

vernal spruce
#

tbh idk

#

there arent many guides around for this stuff

#

so im firing in the dark basically

subtle blade
#
private static final List<String> ARGS_2_VALUES = Arrays.asList("create");
private static final List<String> ARGS_3_VALUES = Arrays.asList("mobName");
private static final List<String> ARGS_4_VALUES = Arrays.asList("mobLimit");

// in your tab completer
if (args[0].equalsIgnoreCase("area")) {
    switch (args.length) {
        case 2: return ARGS_2_VALUES;
        case 3: return ARGS_3_VALUES;
        case 4: return ARGS_4_VALUES;
    }
}

return null;```
#

This should accomplish the exact same thing

#

Get creative with it 😉

vernal spruce
#

hmm much cleaner i agree

subtle blade
#

I try to keep things mostly clean though even that one can be cleaned up a bit. Thing is, a lot of my values are dynamic

#

(the constant creation of new ArrayList<>() for instance - this is some old code)

vernal spruce
#

also a quick nice case 5: return Arrays.asList("");at the end

subtle blade
#

No reason to. It will default to break then fall through to the return null

#

If you have more args, return null at the bottom of the switch

vernal spruce
#

it will start pointing to the players name..

subtle blade
#

Ah, then yea. Create an empty constant

#

Or, rather, Collections.EMPTY_LIST

#

There is one already

vernal spruce
#

oh boy its gonna take a while to auto complete all the commands

subtle blade
#

Takes a bit of creative thinking to get it clean and efficient but the more you do it, the better you get

#

Also, StringUtil.copyPartialMatches() is your absolute best friend

#

(It's a Bukkit utility class)

#

In this exact case where you only have one argument it's no big deal, just return the one value. Though when you have more than one, return a partial match

vernal spruce
#

bad ideea? ```package me.Stellrow.HuntingGrounds.commands;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

public class AutoCompleteChoice {
private HashMap<Integer,List<String>> args = new HashMap<Integer, List<String>>();
public void addArg(Integer arg,String complete){
args.put(arg, Arrays.asList(complete));
}
public List<String> returnArg(Integer argToReturn){
if(args.containsKey(argToReturn)){
return args.get(argToReturn);
}
return Arrays.asList("");
}
}

subtle blade
#

Ehm, I mean

vernal spruce
#

to have a "manager with these"

subtle blade
#

Sure? But again, Collections.emptyList()

vernal spruce
#

return Collections.emptyList();

subtle blade
#

Yep

vernal spruce
#

wouldnt it do the same? or does it already have a pre-created list

subtle blade
#

It's a constant, yea

vernal spruce
#

oh yeah would save something at least

subtle blade
#

It's the generic-safe alternative to just doing Collections.EMPTY_LIST but you can probably return that as well if you'd like

#

Preference in this case

vernal spruce
#

gonna go with the constant

#

Why is tabcomplete so scuffed damn..

subtle blade
#

It's some old API but there's also really just no good way to implement it tbh

near lodge
#
private static final List<String> ARGS_2_VALUES = Arrays.asList("create");
private static final List<String> ARGS_3_VALUES = Arrays.asList("mobName");
private static final List<String> ARGS_4_VALUES = Arrays.asList("mobLimit");

// in your tab completer
if (args[0].equalsIgnoreCase("area")) {
    switch (args.length) {
        case 2: return ARGS_2_VALUES;
        case 3: return ARGS_3_VALUES;
        case 4: return ARGS_4_VALUES;
    }
}

return null;```

@subtle blade What's your opinion on switches?

subtle blade
#

Use 'em when they make sense

#

Would love to be able to do return switch(args.length) in this case but switch expressions are Java 11 lol

near lodge
#

Would love to be able to do return switch(args.length) in this case but switch expressions are Java 11 lol
@subtle blade wait what

#

you can do that in Java 11?

subtle blade
#

Ye

near lodge
#

How fast is that performance wise?

subtle blade
#
return switch (args.length) {
    case 2 -> ARGS_2_VALUES;
    case 3 -> ARGS_3_VALUES;
    case 4 -> ARGS_4_VALUES;
}```
near lodge
#

ooo nice

#

How fast is that performance wise?
Cause I know for instance Java 8 streams are slow (in comparison to normal iterators)

subtle blade
#

Ehhh not necessarily. Depends on how you use em

brisk mango
#

Streams are maybe slower than a foreach loop but they have their advantages

near lodge
#

Yeah

brisk mango
#

and they are not really that slower

near lodge
#

I love the filters

#

and the mapping

brisk mango
#

Its better than a for loop imo

near lodge
#

When writing definitely

brisk mango
#

its shorter, allows you to write an easy lambda

subtle blade
#

The issue is when you make use of a stream where a for loop just makes more sense

#

For instance, two calls to filter generally implies you should be using a for loop

#

Have to be mindful that some operations iterate the entire collection so calling it twice will iterate that collection more than is necessary

#

They have their time and place

vernal spruce
#

@subtle blade heard brigadier mentioned for tabcompleter

brisk mango
#

Wdym iterate the entire collection, thats what litterly for loop does too

vernal spruce
#

what does that do?

brisk mango
#

for(String name : names) {

}
#

this iterates through the whole collections

subtle blade
#

I mean in a for loop you can make those two filter calls in just a single for loop

#

if (something && somethingElse)

#

Brigadier is Mojang's command library that Minecraft makes use of. It handles tab completion in nodes. Every sub command is a node and has its own execution, suggestions, etc.

#

Bukkit doesn't expose it because it shouldn't be considered Bukkit API as it is not stable

near lodge
#

Oh god

#

What do you think of this?

shopManager.getShopItems().stream().skip(pageSize * currentPage).limit(pageSize).forEachOrdered(shopItem -> {
#

Bukkit doesn't expose it because it shouldn't be considered Bukkit API as it is not stable
@subtle blade It's not stable?

subtle blade
#

It's not held to the same standard as Bukkit's forwards compat

#

It's an independently maintained library

vernal spruce
#

@subtle blade also how come every list has to be final const

subtle blade
#

Just for the sake of not creating a throwaway object if you don't have to

#

For dynamic tab completion (which I do for registerable objects), you have no choice but to create a new one. Though all your args are constant every time you tab complete so you can create constant fields

near lodge
brisk mango
#

why would you ever make collections constant

near lodge
#

For dynamic tab completion (which I do for registerable objects), you have no choice but to create a new one. Though all your args are constant every time you tab complete so you can create constant fields
@subtle blade How does minecraft handle tabcomplete when they type more than one character? Is it now clientsided or is it still server sided?

brisk mango
#

static collections is so bad

near lodge
#

static collections is so bad
@brisk mango not at all

brisk mango
#

It is

#

static collections is something you shouldnt really do

marsh nova
#

not if they're immutable

near lodge
#

If they are final and static it's not a problem

marsh nova
#

final and unmodifiable

brisk mango
#

yeah but if you would have just static collection

#

anyway why make it a constant still?

#

why its not enough to just do

#

private final IdentityHashMap<String, String> players;

public ClassName() {
players = new IdentityHashMap<>();
}
near lodge
#

depends on the use case

brisk mango
#

no reason to make collections a constant

subtle blade
#

Servers send list of commands (including tab completion - it's part of the nodes) to the client, handled from there

marsh nova
#

sometimes you don't need multiple instances

subtle blade
#

That identity hash map wouldn't work btw lol

#

UUIDs and identities are no bueno

brisk mango
#

yeah it was just an example

marsh nova
#
private static final Set<DamageCause> aoeDamageCauses = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(DamageCause.FIRE, DamageCause.FALL)));
#

there you are

#

a constant collection

brisk mango
#

should be uppercase

subtle blade
#

Dude, use an EnumSet lol

brisk mango
#

or just

#

Collections.newSetFromMap

subtle blade
#

EnumSet.of(DamageCause.FIRE, DamageCause.FALL) 😄

marsh nova
#

it's just an example

#

i wouldn't use a hashset for an enum

vernal spruce
#

k is still a dumb thing being created? ```if (args[0].equalsIgnoreCase("mob")) {
switch(args[1]){
case "create":{
switch(args.length){

                    }
                }
            }
            }```
brisk mango
#

wdym

#

what is even that

vernal spruce
#

you see my big brian decided to have alot of subcommands with subcommands

brisk mango
#

this is so shit way to do this

#

dont use switch for this

#

im not sure if it ignores the case

mortal jetty
#

anyone knows if the team prefixes not showing up bug is fixed?

vernal spruce
#

by that i mean "/hg mob" has create(wich also has name/entityType)/setgear/setname/delete

#

basically a spaghetii

brisk mango
#

just do

if(args[0].equalsIgnoreCase(string)) {
if(args[1].equalsIgnoreCase("")) {

}
}
#

yeah just make an if inside of an if

#

will look better than that switch

vernal spruce
#

i will have 100 lines worth of shit

brisk mango
#

and will be

mortal jetty
#

?

worldly heathBOT
#

Edit this to change the output of the command!

marsh nova
#

switch does not ignore case

vernal spruce
#

i mean it does the job

marsh nova
#

you can just switch (args[0].toLowerCase())

#

switch is fine for the job

#

I use switch for sub-commands all the time

brisk mango
#

if(args[0].equalsIgnoreCase("mob")) {
if(args[1].equalsIgnoreCase("create")) {
if(args.length < 7) {
player.sendMessage("name/entityType/setGear/setName/delete");
return true;
}

final String name = args[2];
final EntityType type = EntityType.valueOf(args[3]);


}
}
#

or just do String#toLowerCase

vernal spruce
#
                switch(args[1]){
                    case "create":{
                        switch(args.length){
                            case 3:
                                return mobCreate;
                            case 4:
                                return mobType;
                            default:
                                return Collections.emptyList();
                        }
                    }
                }
                return mob;
                }``` looks ugly but perfectly does the job
marsh nova
#

for the record that is not what i do

green epoch
vernal spruce
#

if its spigot why its on papers github?

brisk mango
#

^

green epoch
#

well i thought it was a paper issue and made the issue on paper's repo

#

and it is a paper issue but its on spigot too

brisk mango
#

HUH?

#

Bug with spigot not paper

#

sends an paper link

#

its a paper bug but its on spigot

green epoch
#

do you have brain damage?

#

ever heard of an upstream bug?

brisk mango
#

no you probs have brain damage when you cant even tell what you need

tiny basalt
#

Can I upload an installation Jar to a Spigot Resource? Insted of the plugin Jar?

brisk mango
#

Fuck off tard

#

not u krachkiste

tiny basalt
#

For config purposes?

brisk mango
#

Installation jar?

#

Why do you need that

tiny basalt
#

I use it so that the user can select the desired functions in my plugin. It then copys the desired file into a folder from my domain

vernal spruce
#

Dont think you are allowed to upload anything that isnt a straight up plugin

brisk mango
#

Well do you think you would run a stranger's jar file?

tiny basalt
#

Oh ok. Thank you.

brisk mango
#

thats about as vulnerable as opening an random .exe file

tiny basalt
#

I shipped .exe once 😂

#

But not on spigot pages

novel phoenix
#

running unknown plugins isn't any different to launching random .exe files

cedar stump
#

Hi, when players go to overworld with creative mode, then get back to survival world, their inventories are now the "creative inventory" rather than their survival inventory. Is there a fix to this?

high basin
#

Decompiling java is way easier than x64

old elk
#

for some reason on my server anyone who joins automatically has every perms including being able to op themselves but in my permissions files i cant find anything that would cause this

cedar stump
#

Players have their creative inventory in survival mode

#

Looks like the creative and survival inventories are muddled up when changing worlds

craggy tundra
#

so im useing crazy enchants and my players have hit the limits of their enchant amount but they dont have any of the new enchants on them how do i fix this or what is the command to fix this

craggy tundra
#

can anyone help please

faint hinge
#

so if i have 2 proxies. both proxies communicating using redis. if i wanted to then send a player in one server a message from another server. but the other player was also connected on a diffrent proxy. would i still be able to use bungee plugin channels in spigot to communicate with players on diffrent servers although they are on diffrent proxies?

ripe spear
#

@craggy tundra wats the prob

steady osprey
#

is spigot down again?

rain plank
#

anyone know how to turn someone's glow off if the plugin isn't installed?

random canopy
#

website is acting weird

#

its not working

rain plank
#

Yeah. Spigot is down.

little lodge
#

The new spigot theme is there!

random canopy
#

is it good?

ocean coral
#

Is there an estimated return time?

#

and is it stable as i want to buy a plugin

random canopy
#

its good now

#

its up

rain plank
#

How do I stop a player from glowing if the plugin isn’t installed anymore

frigid ember
steady osprey
#

spigots down

frigid ember
#

Don't think so, but every 1-2 page refreshes it will give me a 502 error

steady osprey
#

they got ddosed the other day so idk

frigid ember
#

Nothing that anyone here except md_5 can do about it.

and I don't really think he can do much about it depending on if its still that sorry excuse for a human being enjoying clicking that button, You just have to deal with it and wait until the guy gets bored.

#

He won't stop

#

He been doing this for other websites

#

Oh it is being attacked? 😁

#

He done it on another website for a month

#

Until they payed him

#

And who is this guy?

#

He'll never get paid here lol

#

Senior

#

He has on the discord

#

He got banned

#

Senior is his name?

#

Yes

#

If he expects money from any staff here, He is an even bigger moron

#

What a tosser

marsh hawk
#

Anyone here reckon they could teach me how to shade on maven. I've tried a lot of guides and manuals but i cant seem to get it working

frigid ember
#

Never pay idiots money, they think they can do it to everyone

#

Well I hope somebody fries an egg on his router

#

Well I think he will keep going

#

Until the staff decide to do something about it

hasty drum
#

The Home Page Is Completely Broken

frigid ember
#

Cloudflare should be doing something about it

#

Or the host, not sure how it works exactly

#

He has bypass

#

For the ddos protection

#

Needs to be fixed then

#

CloudFlare is not that good, It has its perks but it also has vulnerabilities. You have to pay to get decent ddos protection

#

and no he doesn't even have bypass, he uses something he pays for, we talked to him. he is a moron

hasty drum
#

I Also Can't Verify Because it says it can't find my account

frigid ember
#

If he thinks he will get payed then I'm sorry but he is fucking delusional 😂

#

a person like that doesn't know how to bypass ddos protection and make their own ddos program

#

Indeed

#

anyway #general , there no questions being asked anymore

#

except the one asking to shade something in maven -> @marsh hawk

steady osprey
#

anyone else have a problem where they want to code a plugin but dont know what

frigid ember
#

Anyone here run a network and experienced a big DDoS attack?

#

I mean for fuck sake, how am I meant to do shit when I can't use the site?

#

You just don't, You wait literally

#

This has been happening for a few days no, I ain't got time to wait

#

You are getting into the complaining portion of things, #general for that stuff. md_5 definitely is already aware of the issues

latent rock
#

Any thoughts on using AWS for server hosting?

frigid ember
#

I need to update RedisBungee but I can't access the page to download it

strong bear
#

Can't even use the website on my dedicated server xD blocked however

frigid ember
#

yes but complaining here ain't going to do anything, you just have to literally wait

steady osprey
#

^

frigid ember
#

Well I hope the wanker gets karma

#

He literally said he has it set for weeks

#

He is fucking annoying

#

Thinking he will get paid, this isn't how it works I'm afraid

#

ok so #general would be nice

steady osprey
#

^

#

please

frigid ember
#

Lewis then the owner got to step in

#

and fix this shit

#

Whatever then if that makes you feel better

river wasp
#

how do I allow players to interact with armorstands? the use and interact flags are already set to allow but it doesnt work

#

gives me the "Hey!" error

frigid ember
#

./rg flag <regionname> interact allow

river wasp
#

doesnt seem to work

#

it works but sometimes it stops and then I have to turn it off and on again

pastel basin
#

you should ask in WorldGuard discord, it's probably a bug

jagged condor
#

worldguard uwu

river wasp
#

they have a discord?

#

can I just turn off the worldguarding aspect of worldguard?

#

just keep regions?

whole night
#

mi/tts PeenMaster69

#

PeenMaster69

wanton vine
#

how do I make mobs not move when spawned? In other words, when a blaze spawns from a spawner, or a ghast for example, I want them to not move at all, just simply spawn and sit there. How do I acomplish this?

visual glade
#

Does anyone know how to examine a error report log?

river apex
#

is there a way to get rid of dynmap's full render messages

#

they are so annoying

true anvil
#

how do i check if item has a lore and then if the lore contains a string?

i tried if(item.getItemMeta().getLore() != null && item.getItemMeta().getLore().contains(ChatColor.GRAY + "Telepathy I")) { return; } but no worky

timber barn
#

Remove .contains

#

And instead of using != use .equals

buoyant path
#

Anyone know how many characters you can have in a Text column for SQL

timber barn
#

Im on my phone wait a second @true anvil

true anvil
#

ok

timber barn
#

if(!item.getItemMeta().getLore().equals(null) && !item.getItemMeta().getLore().equals(ChatColor.GRAY + "Telepathy I")) @true anvil

#

Should work, not tested

buoyant path
#

Yo

#

When serializing inventories does it use the character :

timber barn
#

But think about the following problem: what if there is more than 1 meta?

heady jolt
#

didn't the getLore return you the List?

#

maybe do a loop and check it

timber barn
#

Not tested as I said :D

#

Im at work

true anvil
#

it didnt work oof

heady jolt
#

it return you a List, loop it, and check

timber barn
#

If its a list then convert it in a loop

buoyant path
#

why are you using .equals with a list of string

heady jolt
#

also you should check if the lore isEmpty. I don't remember if spigot check it for you or you have to do it by yourself

buoyant path
#

with a string?

#

you should be using contains lol

#

getLore().equals checks if it is equal to another list<string>

#

also you need to check if the item doesnt have an item meta

#

so

#
if (item.getItemMeta() != null && item.getItemMeta().hasLore() && item.getItemMeta().getLore().contains(string)) {
//do stuff
}```
timber barn
#

Oh yes .contains ist used for lists lol my bad

buoyant path
#

Anyone know what characters Base64Coder does not use?

#

I would like to store serialized inventories in SQL for pvs

#

and then just split the string

#

by a character which is not used in serialization

timber barn
#

Also u cant check null with .equals, sorry

frigid ember
#

hey guys im building up a server and i need a couple of plugins i tried many and most doesnt seem to work

buoyant path
#

@timber barn what experience do you have with this kind of stuff? lol

frigid ember
#

i need a plugin for the tablist of players / a plugin for WILD command and a plugin for setspawn

buoyant path
#

I'm sure a lot of the plugins you have work, you just aren't using them correctly?

timber barn
#

Im tired and at work ok @buoyant path 😭

buoyant path
#

Lol

frigid ember
#

but the thing is i have multivrse core and when i do Wild it do wild on the world im in like if im in the world named spawn and i do wild i do wild in that world and not the original overworld

buoyant path
#

Tbf i have like 5 years of experience and am coding a server with 2.4k members in our disc

frigid ember
#

ironman i see you have experience

#

can you help me fix my problem please

naive goblet
#

getItemMeta shouldn’t return null

#

So it’s kind of redundant to check for that

timber barn
#

Base64 should be ASCII @buoyant path

#

So use non ascii i guess

buoyant path
#

Ð

timber barn
#

Yes

#

Or €

#

£

buoyant path
#

would that work in SQL?

timber barn
#

Weird splitter tbh

buoyant path
#

I mean

timber barn
#

You can try, if u set ur table to utf-8

buoyant path
#

I kinda need to do it like this

#

scalability with file systems excluding mongoDb is bad lol

timber barn
#

Do you HAVE to but them together and store them in 1 row??

buoyant path
#

Well I want an unlimited amount of them, so prob

timber barn
#

oof

#

You could create a new row for each 🥶

buoyant path
#

that seems like a lot of work

timber barn
#

with unique keys aswell on creation 🥶

#

Y

#

Probably

buoyant path
#

Ill try out the Ð or something lol

timber barn
#

lol

#

If that doesnt work out (or as intended) i would stick with the new row per inventory

#

So you are creating a pv plugin?

#

@buoyant path § this is non-ascii

#

Looks better than the Đ

#

Đ reminds me of Đogecoin

buoyant path
#

Lol

#

Ok

#

@timber barn ill show u what im creating check dms

idle zodiac
#

Can someone help me with shading a plugin into my intellij project?

#

I'm using gradle

#

I'm so lost rn

buoyant path
#

@idle zodiac have you deleted the current artifact and made a new one yet?

#

IntelliJ forces you to do that whenever shading to maven/gradle

pastel basin
#

you can shade with intellij on Project Structure -> Artifacts

idle zodiac
#

OK

#

@pastel basin ?

#

I've never got that to work

#

It throws a NoClassDefError or whatever

buoyant path
#

@idle zodiac Remove the artifact from project structure then make a new one with dependencies, even if you already have it, you have to make a new artifact. I learned this the hard way lol

idle zodiac
#

ok...

pastel basin
#

or simply click the + button and add the dependency you want

idle zodiac
#

I'm so lost

#

so

#

I made a new artifact

#

for my plugin

#

then what?

#

I need to shade in a gradle script thing

#

*maven

pastel basin
#

maven or gradle?

idle zodiac
#

that's what i'm trying to do

#

i literally haven't a clue

#

i haven't done this before

#

it's sad, i know

buoyant path
#

Oh maven

#

Ok

pastel basin
#

with maven you can use maven-shade-plugin

buoyant path
#

But did you try what I said?

#

I'm sure you did it right lol

idle zodiac
#

how tf do i do it lol

buoyant path
#

Ill send a few screenshots give a min

idle zodiac
#

OK thanks

#

whenever i see pom

#

with my font

#

and i'm tired

#

it shows up as something quite fun

buoyant path
#

Go to File, then Project Structure

idle zodiac
#

but whatever

buoyant path
#

then what your gonna do

#

click the - button

#

then click the +

#

and do

#

add with dependencies

#

then put it wherever you want it to export

idle zodiac
#

ok...

#

I haven't even got a maven module yet

buoyant path
#

oh

idle zodiac
#

fuck my life

buoyant path
#

Rip

idle zodiac
#

because if I don't

#

it throws a NoClassDefFoundError

#

@buoyant path

buoyant path
#

I'm not really sure I'm not good with it either

#

Sorry

idle zodiac
#

Xd

#

it's werid

buoyant path
#

I can send you how I did HikariCP with shade

#

if you would like

idle zodiac
#

OK, sure

buoyant path
#

this is my whole pom

idle zodiac
#

thanks

#

So I created a new artifact, now what?

#

How do I set the version and artifact id?

#

and group id

#

i'm so sorry

buoyant path
#

I really have no clue lol

#

I just add dependencies usually

idle zodiac
#

what, in modules?

#

same

#

can i shade in there XDDDD

buoyant path
#

Idek xd

#

@idle zodiac is that github a plugin or just a api resource?

#

if its a plugin just drop it in the plugins folder, add as dependency in plugin.yml and in the pom.xml

idle zodiac
#

it's an api

#

also

#

where tf is the pom.xml

#

i'm using a different api now XD

cursive mulch
#

Is it possible to change the color of the usage from plugin.yml that onCommand calls when returning false

peak iris
#

Why cant I create Items with dangerous enchantment levels?

vernal spruce
#

there is a boolean at the end "unsafe"

#

woops wrong link

peak iris
#

So how would I use

vernal spruce
#

i mean it even says ItemStack.addUnsafeEnchantment..

heady jolt
#

he's not coding, he looking for a plugin to do those stuff.
What version are you using?
If you use 1.12.2, try Itemizer

peak iris
#

1.8

heady jolt
#

well good luck

vernal spruce
#

oh hes looking for one already made

#

lmao 1.8

#

might as well spit in our faces😂

peak iris
#

Already did

heady jolt
#

You use command to enchant or book?

peak iris
#

command

heady jolt
#

have OP?

peak iris
#

yes

#

im owner

heady jolt
#

unsafe-enchantments: true?

peak iris
#

yes

vernal spruce
#

then you shouldnt have a problem with it

#

but its still imited to vanilla behaviour most likely

#

you cant add silk touch to a sword..

peak iris
#

It will allow me to enchant some things

vernal spruce
#

it just lets you add unlimited enchant level

peak iris
#

but others it wont

#

I know i know lol

heady jolt
#

You can, I don't remember how essx enchant work, normally I just use plugin that customize lore and stuff they always come with enchant command that works

peak iris
#

It maxes my explosive at X, my sharpness at 10

heady jolt
#

Then what do you want to achieve then?

#

More enchants?

peak iris
#

No higher

#

levels

#

Like sharpness 29 for ex

#

but it will enchant to that then change to 10

heady jolt
#

So what happens when you type /enchatn sharpness 29?

#

It does not allowed?

peak iris
#

allows, then it will change to 10

vernal spruce
#

there is most likely a limit somewhere in the config

heady jolt
#

Maybe minecraft itself prevent it, check what plugins you have currently and its config

vernal spruce
#

not rly saw enough times

peak iris
vernal spruce
#

sharpness XX,minecraft debugs itself with unreasonable level by having the enchant in namespacedkey

peak iris
#

what could it be in

vernal spruce
#

like enchantment.minecraf.sharpness.level129 or things like that

#

try create the items through a command with nbt tags

#

and see if it does the same

peak iris
vernal spruce
#

hmm throw it and pick it up

#

is it still 29?

peak iris
#

nope just changes back

vernal spruce
#

try a fresh server only with essentials

#

and do it there and see if its spigot/essentials fault

peak iris
#

Works on there

#

its one of my plugins

#

but im not sure which one

vernal spruce
#

remove these one by one

#

ItemEdit/CagedItems

velvet halo
#
public class Claim {

    private final long data;

    public Claim(Chunk chunk) {
        data = ((long) chunk.getX() << 32) | (chunk.getZ() & 0xFFFFFFFFL);
    }

    public int[] deserialize() {
        return new int[]{(int) (data >> 32), (int) data};
    }

}```
Hey so I am saving chunks at the moment and need a way to efficiently reference a claim to a uniqueid or player. What would be the most efficient way to go about this?
sturdy oar
#

what's data for

velvet halo
#

data is a concatenation of the chunk coordinate (x, z) into a long with bitwise

sturdy oar
#

I mean to be honest, If I would have done it, I would just have saved the UUID into the claim

velvet halo
#

Part of the long or as a seperate variable?

sturdy oar
#

just as another variable

velvet halo
#

cause I don't see how that would work

sturdy oar
#

you can also use PersistentDataHolder to save 'stuff' on entities

velvet halo
#

That doesn't sound very efficient to me.

sturdy oar
#

although it's not the best way

peak iris
#

Any one know of a boss plugin?

velvet halo
#

Also if I store a claim object with a chunk and uuid attached to it

#

and a player has a 1000 claims

#

Then it would save 1000 uuids also...

#

Would rather make another object with one unique id and a set of claims

sturdy oar
#

yeah maybe another object that stores a list of Claims and has a UUID

#

I think you can ask to I-S here

#

he is the developer of PlotSquared so he should know how to properly make claims\plots and stuff

velvet halo
#

Is it ok to tag him?

sturdy oar
#

I don't know...

velvet halo
#

I sent him a message

wraith thicket
#

I feel like tagging someone (who is not a part of an ongoing conversation) is like saying "Come pay attention to me! My time is more valuable than yours!"

velvet halo
#

Why I sent him a message >.<

wraith thicket
#

I figured 🙂

velvet halo
#

I guess the best way to approach this is to just create a separate object with a unique id and a map of the data. Don't need to be ordered so yeah

sturdy oar
#

do you find MySQL support to be essential?

#

It seems like everyone is using that

velvet halo
#

No not at all

#

Not in this instance at least

#

Since the data is going to be stored locally

sturdy oar
#

no I was talking general

tiny dagger
#

Supporting MySQL is very important in my opinion

sturdy oar
#

like I've already implemented PostgreSQL and SQLite , but I feel like many still use MySQL

velvet halo
#

Not for claims that only need to be stored on one server

#

JSON seems more suitable.

sturdy oar
#

well yeah claims can use JSON or SQlite

velvet halo
#

If you want to look into mysql then I recommend Hibernate or apache cayenne. It is whatever you prefer I guess.

sturdy oar
#

what's hibernate

velvet halo
#

Hibernate is a library for object relational mapping.

sturdy oar
#

well I already use HikariCP

velvet halo
#

That is a connection pool not an ORM 😮

sturdy oar
#

I know, i just have no idea of what I could achieve with Hibernate

velvet halo
#
List<Painting> paintings3 = ObjectSelect.query(Painting.class)
        .where(Painting.ARTIST.dot(Artist.DATE_OF_BIRTH).lt(LocalDate.of(1900,1,1)))
        .select(context);
``` It simplifies the way you can query data. Formats it much nicer with code rather than Query language
#

This is an apache maven example

frigid ember
#

hi i tried to make a hellow plugin on eclipse when i went to make the yml file a window popped out to choose wich text editor to choose and i picked plain text the plugin doesnt load it says the yml file is invalid

sturdy oar
#

oh it's like a thing for making SQL syntax easier

velvet halo
#

Yes ^

sturdy oar
#

well at the moment my table is basically a 2 column with UUID and INTEGER

#

so no really need for it

velvet halo
#

make sure it is saved as .yml and not .txt

sturdy oar
#

I guess I could use it if it gets more complex

velvet halo
#

Yeah then I would 100% not worry about an ORM xD

frigid ember
#

yes i typed plugin.yml

velvet halo
#

I don't really use eclipse but it is strange that an IDE would prompt you to open an external editor rather than just a built in one >.<

sturdy oar
#

I honestly find eclipse bad

#

there are much better options such as Apache NetBeans or IntelliJ Community

frigid ember
#

so what should i do

velvet halo
#

I recommend switching to IntelliJ and searching on google on how to setup a java project on it.

frigid ember
#

ok

sturdy oar
#

or edit the file outside Eclipse

velvet halo
#

There are enough resources online to help you.

#

IntelliJ in my opinion is easier to use then eclipse

frigid ember
#

yes just the first plugin tut i found was with eclipse

sturdy oar
#

then the tutorial is damn old

frigid ember
#

ye its from 2017

sturdy oar
#

I honestly love NetBeans

#

although IntelliJ may be easier to use

#

and has more features

frigid ember
#

thx then im gonna get intelliJ

frigid ember
#

Can anyone help me dig up Minecraft Server Website which is 7.4-7.6mbs? cannot find it or be bothered

#

on the spigot site

wanton vine
#

are there any plugins that change how EXP works? I use Epic Enchants and some books cost 4000 EXP and currently my scoreboard displays EXP in a very weird way

frigid pumice
#

There is a difference between levels and points. 4000 Xp points is a little bit more than 50 levels

hollow thorn
#

how do i make a dabbing armour stand

idle zodiac
#

XD

#

WHY

hollow thorn
#

to make a dabbing entity

idle zodiac
#

XDDDDD

hollow thorn
#

that will chase the nearest entity

idle zodiac
#

mg

#

omg

hollow thorn
#

be killed by diorite

#

or contained

idle zodiac
#

are you having a laugh

hollow thorn
#

and convert mobs into its species

#

i thought about it like a fun idea

idle zodiac
#

well the armor stand you can create with mcstacker or smth

hollow thorn
#

but isnt MCstacker

#

for cmds

idle zodiac
#

you can run cmds in spigot

hollow thorn
#

it might be better to make it as a datapack

idle zodiac
#

ok?

wanton vine
#

@frigid pumice what placeholder should I use for my EXP then?

frigid pumice
#

i dont know, what your problem exactly is, so i cant answer that question properly. But showing the levels is for the user probably the better solution.

frigid ember
#

Hey

#

I'm trying to synchronize the Lobby's permissions with RankUP using MySQL from PEX, but I had already tried with LuckPerms, and I also couldn't... I managed to synchronize the Lobby with BungeeCord, but I am unable to synchronize BungeeCord and Lobby permissions with RankUP!

hollow thorn
#

@frigid pumice what placeholder should I use for my EXP then?
@wanton vine scoreboard

wanton vine
#

@hollow thorn Huh?

hollow thorn
#

as in the scoreboard attribute

#

there are loads of tutorials on line

wanton vine
#

can you explain what you mean?

idle zodiac
#

My Plugin is disabling because apparently Vault is not detected, however when I use vault, it says that it is already initialized!
I don't know whether it's to do with FAWE or smth

frigid ember
#

ji i got intelliJ why does it only export the plugin.yml

red linden
#

@frigid ember What do you mean?

frigid ember
#

after i artifact it theres only the plugin.yml

velvet halo
#

Make sure you depend on vault in your plugin.yml @idle zodiac

idle zodiac
#

@velvet halo ah thanks

#

UnknownDependencyException: Vault

#

wat is this

frigid ember
#

Anyone can help me?

idle zodiac
#

nvm

#

done it

#

@frigid ember wat u neet help with

frigid ember
#

I'm trying to synchronize the Lobby's permissions with RankUP using MySQL from PEX, but I had already tried with LuckPerms, and I also couldn't... I managed to synchronize the Lobby with BungeeCord, but I am unable to synchronize BungeeCord and Lobby permissions with RankUP!

idle zodiac
#

uuuuuuhhh

#

idk much about that

frigid ember
#

np

idle zodiac
#

what the fuck

#

?paste

worldly heathBOT
frigid ember
#

,_,

idle zodiac
#

apparently there is an NPE at line 65

#

its setting a variable

#

my brain

#

let me try movingf the var declaration int othe tryu

#

nope

#

what

#

oh

#

ok

#

my connection is null

#

let's fix that

frigid ember
#

why inteliJ only export yml file

velvet halo
#

they support more than just yml files xD

formal moth
#

I need help. a friend lost his spigot account, did his email and password change some way to recover it?

frigid ember
#

no i try to export to a jar file but it export only the yml for some reason

sturdy oar
#

Wdym export

frigid ember
#

what?

remote socket
#

What's the best way to get a block a player is looking at, #getTargetBlock()?

#

And if so, can anyone tell me what that means.

hoary parcel
#

Cast to set material

remote socket
#

👍

#

How would I check if an entity is stackable or not. Google only comes up with WildStacker results which isn't what im looking for.

#

Basically I wish to filter entities to only be items / blocks and they must be stackable

#
                if (entity instanceof Item) {
                    ItemStack itemStack = ((Item) entity).getItemStack();
                    if (itemStack.getMaxStackSize() > 1) {
                        //do stuf
                    }
                }
#

Is this the most efficient way?

wanton delta
#

Yea

sturdy oar
#

So i've been experimenting with the Bukkit YAML Api.

#

but I haven't seen a proper way to load a list of objects

marsh nova
#

getStringList

sturdy oar
#

mhh I'll try that

#

the thing is that my objects aren't strings

timber barn
#

.get()

#

What is stored in the list?

sturdy oar
frigid ember
#

idk what to do

timber barn
#

So the list cotains strings?

#

Wait

#

Im at work sorry, so strings it is?

#

@frigid ember you need to set up inteliJ properly

frigid ember
#

i made it export but it says it doesnt contain a yml file

timber barn
#

You need a plugin.yml file

frigid ember
#

so i do

timber barn
#

Inside /src

frigid ember
#

ohhh

timber barn
#

Not inside the package

frigid ember
#

but i did put it in src

sturdy oar
#

Those objects are represented inside my code

#

I think I'll have to use other APIs because unless I'm missing it, the current API doesn't allow me to directly return a list of Objects of a specified type

#

if anyone here knows how to do this , thanks

keen compass
#

What kind of objects?

#

I mean yaml 1.1 only supports so much when it comes to saving

sturdy oar
#

You see that class above called 'WordMatcher'

#

I basically need to get a List of those from YAML

keen compass
#

So you are saving objects?

sturdy oar
#

I've already tried various things but they were not working

keen compass
#

If you want to save Java Objects, just serialize them

#

as long as it can be serialized you can store them and then get them back and should work in obtaining it as a list

sturdy oar
#

so I need that class to implement ConfigurationSerializable?

keen compass
#

Should be just Serializable

marsh nova
#

don't use Serializable

#

use ConfigurationSerializable

finite belfry
#

hi

marsh nova
#

you should serialise and deserialise data, not objects

finite belfry
#

i have bungeecord and why the skin dont work

#

how to fix?

sturdy oar
#

are you using online-mode

finite belfry
#

no

#

but you cannot online mode to use bungee

sturdy oar
#

backends should be offline mode

#

while bungee online

marsh nova
#

yes

finite belfry
#

wdym

marsh nova
#

that's what he means

finite belfry
#

so how to fic

marsh nova
#

literally

sturdy oar
#

that's bungeecord documentation for you

finite belfry
#

can you send the link out?

marsh nova
#

your spigot servers need to be in offline mode and bungeecord: true

#

and your proxy needs to be in online mode in order to authenticate

#

the authentication happens on the proxy, not the spigot servers

sturdy oar
#

all here

keen compass
#

serializing java objects is just fine

#

you can use either method

finite belfry
#

so i need to do what to fix the skin

sturdy oar
#

Ok I'll implement the interface and add serialVersionUid then see what happens

keen compass
#

it is generally best to use ConfigurationSerializable if the object you want serialized is part of the API. IE itemStacks for instance, but if the object you want serialized is not, just go with Serializable since YAML supports serializing java objects in general.

finite belfry
#

so what i need to do for the skin?

sturdy oar
#

bruh

#

do what I said and come here again if it still doesn't work (it should as long as Mojang APIs are working)

remote socket
#
        if (infChestBlock != null) {
            broadcast("iChest found");
            for (Entity entity : infChestBlock.getChunk().getEntities()) {
                broadcast("There is an entity");
#

I get the found message but not the entity one

keen compass
#

well you get the first one because it is just a null check, not a type check

#

Not entirely sure for the loop

#

only thing I can think of is if the chest is on the border of the chunk, and the items are off a bit towards that border

#

then the items are technically in a different chunk then the chest

fringe island
#

How do i use commands i installed smooth timber and toxicoverworld

#

because smooth timber does not work for me

frigid ember
#

Anyone that knows a plugin which allows infinite End Portal spawning, instead of just 128?

vale slate
#

It is fixed