#help-development

1 messages Ā· Page 1499 of 1

main tangle
#

?paste

undone axleBOT
lean gull
#

can someone help? my command is sending the usage whenever i execute it

        else if (cmd.getName().equalsIgnoreCase("chatcolor")) {
            player.sendMessage("yee");
        }```all my other commands are like this and they work perfectly fine
main tangle
#

the full pom.xml

wraith rapids
#

you are returning false

lean gull
#

u talkin to me?

jagged monolith
main tangle
#

Oh

#

so i should change 1.8 to 16?

jagged monolith
lean gull
#

but after it, it returns true

jagged monolith
wraith rapids
#

you are returning false

lean gull
#
        else if (cmd.getName().equalsIgnoreCase("chatcolor")) {
            player.sendMessage("yee");
        }


    return true;
    }```
wraith rapids
#

you are returning false somewhere

main tangle
lean gull
#

i'm returning false if the sender is not a player

wraith rapids
#

the usage string is printed if you return false

#

therefore you are returning false

lean gull
#

actually nvm

#

i'm always returning true

wraith rapids
#

then you will never see the usage string

main tangle
lean gull
#

...but i do...

chrome beacon
wraith rapids
#

one or the other

lean gull
#

i'm confused, i don't return false in this class and i stil get the usage?

main tangle
wraith rapids
#

then you're either seeing things or you're not seeing the part where you're returning false

#

send the class over pastebin or something

lean gull
#

i literally just searched in this class "false", 0 results

#

don't steal pls thx

dusty herald
#

steals

wraith rapids
#

yes, this shouldn't print the usage string

#

make sure you're properly restarting the server and shit

lean gull
#

i just do /stop and then click enter in the cmd prompt so it goes bye-bye

wraith rapids
#

i don't know what that means but make sure you restart the server properly and modify the jar while the server is offline, not online

lean gull
#

i do modify it when it's offline and i'm not sure how you restart it properly

wraith rapids
#

well, then you are seeing things

lean gull
#

also i'm allowed to edit the classes when it's online just not build it, right?

wraith rapids
#

yes

lean gull
#

yeah then idk why this is happenin

#

my chat thing is also broken

wraith rapids
#

delete everything and start over

lean gull
#

uh no thank you

wraith rapids
#

assign a separate command executor for each command

#

this if else spaghetti is illegible

lean gull
#

so all you want me to do is remove "else"?

main tangle
chrome beacon
#

?bt

undone axleBOT
wraith rapids
#

no, I want you to create a separate command executor for each command

#

currently you are using one command executor for all of your commands

jagged monolith
main tangle
#

i am using intellij

wraith rapids
#

so you need to use a million if/else/equals shits to test which command is actually happening

#

which makes the whole thing ass to read and debug

jagged monolith
lean gull
#

ok this might take some time, i'll be back when i do that

wraith rapids
#

doing that will probably fix your issue as well

river shell
#

any way to delete chunks in a world to force the server to regenerate them?

wraith rapids
#

or if not, it'll make it much easier to debug

main tangle
lean gull
#

🤦

jagged monolith
# main tangle No

Read the post, it tells you what to do if you've not used buildtools before and explain how to use it.

lean gull
#

i just realised why this is not working

wraith rapids
#

you're probably not assigning an executor to it

lean gull
#

i forgot to put the setExecutor in the main class

jagged monolith
wraith rapids
#

yes, this ^^

lean gull
#

ok

main tangle
jagged monolith
#

Now try building the plugin

main tangle
#

what do i do with the .jar file??

#

i built it in a different folder

wraith rapids
#

you sell it for rubies

main tangle
#

:|

jagged monolith
main tangle
opal juniper
#

šŸ™ƒ

main tangle
#

to where

opal juniper
#

ur plugins folder??

wraith rapids
#

i think they're talking about the built spigot jar from bt

opal juniper
#

ohh - well then just make a new folder for ur server and run it

wraith rapids
#

he built it for nms

opal juniper
#

🤷

wraith rapids
#

he can just delete the jar

opal juniper
#

nvm then

#

let me just slowly back out of this conversation pepe_bye

wraith rapids
#

the actual thing that was achieved was that in the process of building the jar, the spigot artifact was installed locally in your local maven repository

#

so, you don't need the jar, you can throw it away

#

but, your maven project should now be able to locate the spigot artifact, as now it is installed locally

#

spigot can't publicly distribute the artifact, as it contains mojang code, namely nms, and that would be illegal

opal juniper
#

its a shame they can't tho

#

cause like mojang must be aware of spigot / paper etc etc

#

so it would be nice if they just said that spigotmc & papermc could distribute

wraith rapids
#

legal is bullshit and shit never works the way you want it to or the way it should

opal juniper
#

oh yeah i completely agree

main tangle
jagged monolith
#

Did you run the buildtools for 1.17

main tangle
#

yes

ivory sleet
#

Gradle or maven?

#

Anyways if you use gradle you need to declare the mavenLocal() repo inside repositories block

jagged monolith
#

He's using maven

ivory sleet
#

Oh nvm

#

Morshu you will also have to reload your maven for project in addition of merely adding the dependency

lean gull
#

am i allowed to ask normal java questions here?

#

or only spigot-related

ivory sleet
#

Programming related questions should be asked here although I hope you have googled your problem in first hand

lean gull
#

so i can ask normal java questions here

#

right?

jagged monolith
#

Yes.

lean gull
#

ok, thanks

wraith rapids
#

you should ask google those questions first, however

jagged monolith
#

Ask Google first. If you still struggle ask here.

crude hound
#

so do you know a way to modify player nbt?

wraith rapids
#

open the file and modify it

crude hound
#

it work instantly?

wraith rapids
#

no

#

i see you are on my 1.8 list of plebians

#

and have asked about nbtapi before

#

use nms

crude hound
#

no today I am on 1.16.5

wraith rapids
#

you're on 1.8 anyway and will never update so it doesn't matter

#

why do you want to modify the player's nbt

#

most of those things are modifiable through the api

crude hound
#

because It's for a friend and he really want to do it in command block and datapack

wraith rapids
#

then ask a command block and datapack discord

eternal oxide
#

You are using 1.16.5 so you can use the PDC

wraith rapids
#

this is java help

crude hound
#

no just I do a command in a plugin and he use it in a command block

icy beacon
#

may i send a link to my problem thread?

young knoll
#

You can already modify NBT with /data modify

#

Or whatever it is

crude hound
#

yes but you can't do it for a player

icy beacon
#

looks like i may not..

wraith rapids
#

asking questions is forbidden

#

you will be penalized accordingly

icy beacon
#

you are a very funny individual

crude hound
#

I founded an answer but I don't really know if it work

icy beacon
#

what if posting links is forbidden, like in most discord servers

#

fuck knows

wraith rapids
#

the actual spelling you're looking for is found

#

you can post links

eternal oxide
#

gamble, take a chance

icy beacon
wraith rapids
#

as for whether anyone has the effort to open it is another matter

icy beacon
#

the initial problem was solved but turned out that the method doesn't exist on the version i am using

wraith rapids
#

let me guess

#

you're a 1.8 plebian too

icy beacon
#

PrepareItemEnchantEvent#getOffers doesn't hecking exists on 1.8

#

yea

crude hound
#

also how can I use the vanilla selector in a spigot command in 1.16.5

wraith rapids
#

let me grab my list

eternal oxide
#
  • closes the link *
wraith rapids
#

basically, using outdated software means you don't get to use the stuff that was added since

#

so get rekt scrub

#

update or suffer

icy beacon
#

...

wraith rapids
#

did you know that 1.16 supports custom enchants natively

eternal oxide
#

From what I remember you have to use reflection to register enchants that show up in tables.

icy beacon
#

i prefer to suffer on a version that i know on both minecraft and spigot better than any other versions, rather than updating to a version that will lag on any device i have and that i don't know on an intuitive level

wraith rapids
#

suit yourself

#

but, know that majority of the people who help other people here don't know 1.8 at all

#

so finding help will be difficult

#

there are plenty of 1.8 people here

icy beacon
#

you didn't even open the link i bet

young knoll
wraith rapids
#

but they don't help other 1.8 people

pseudo quiver
#
            for (ItemStack i : player.getInventory().getContents()) {
                if (i != null) {
                    player.getWorld().dropItemNaturally(player.getLocation(), i);
                    player.getInventory().remove(i);
            player.sendTitle(Color.RED+ "All your item dropped out","",10,70,20);
            player.playSound(player.getLocation(),Sound.ENTITY_ENDERMAN_SCREAM,1,1);
                }
            }
        }```
will this make my player drop all of his item in the inventory (not include armor slot) in front of his face ?
wraith rapids
#

let me ping a few for you and see if they can help their fellow plebian

wraith rapids
#

@crude charm
@echo ether
@quaint mantle

icy beacon
wraith rapids
#

one of them is pink so you should pressure them extra hard

icy beacon
icy beacon
wraith rapids
#

it doesn't

little surge
#

Hello, i need a help please, what are the difference off orginal, normal and remapped ? (Spigot 1.17)

wraith rapids
#

the item you obtain from getContents is a clone

#

dropItemNaturally will set it to air

pseudo quiver
wraith rapids
#

but since it's a clone, it won't be reflected in the underlying original inventory

icy beacon
pseudo quiver
#

ok thank you guys

icy beacon
#

dropItem(true) seems very weird

#

why pass a boolean there

pseudo quiver
#

it said that boolean for allitem or not

icy beacon
#

idk then

quaint mantle
#

why u pingd me

eternal oxide
#
dropItem
boolean dropItem​(boolean dropAll)
Make the entity drop the item in their hand.
This will force the entity to drop the item they are holding with an option to drop the entire ItemStack or just 1 of the items.

Parameters:
    dropAll - True to drop entire stack, false to drop 1 of the stack
Returns:
    True if item was dropped successfully

icy beacon
quaint mantle
#

aaaaa

#

u tryna delete the block without dropping in 1.8 ?

icy beacon
#

uhh

#

no

wraith rapids
#

settype(air)

young knoll
#

I’m still curious about this 1.16 supporting custom enchantments natively

quaint mantle
#

yes

icy beacon
#

who are you talking to

quaint mantle
#

set the block type to air

wraith rapids
#

well, "support"

quaint mantle
#

u

wraith rapids
#

the api doesn't

eternal oxide
# quaint mantle aaaaa

You have been found guilty of using 1.8 and as such your sentence is to help other 1.8 offenders.

icy beacon
#

um

wraith rapids
#

because the api doesn't support custom anything

icy beacon
#

i didn't even type anything about removing the blocks

quaint mantle
#

could u don’t please ping me next time pls

#

i help when i have the time

icy beacon
#

this is my problem and obviously no one else gives a fuck about 1.8

wraith rapids
#

but, you can pretty trivially register your custom enchantments in the nms enchant registry now

#

and they will be treated by enchanting ables and anvils and whatnot as they were vanilla enchantments

quaint mantle
#

yeah nobody gives a fuck that’s true

wraith rapids
#

the only issue is that since they don't have translation keys in the client's locale, you don't see them in the lore

quaint mantle
#

but rn i cannot help

#

since i’m not on pc

wraith rapids
#

@quaint mantle i will ping you every time

#

you are a 1.8 plebian

#

you should help your fellow 1.8 plebians

quaint mantle
#

who is this guy

wraith rapids
#

you need to unite

quaint mantle
#

this guy has a problem i guess

wraith rapids
#

you need to form a community

young knoll
#

I’m surprised they don’t show a messed up translation instead

drowsy grotto
#

Hello guys, i have a problem. I have 2 classes, and i need take from Commands class in method onCommand variable nameS, and put it in class DB in method getMoney.

DB

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

import org.bukkit.entity.Player;

import java.sql.SQLException;

public class DB {

private Money plugin;
private String host;
private String login;
private String password;
private String sender;

public DB(String host, String login, String password, Money plugin) {
    this.host = host;
    this.login = login;
    this.password = password;
    this.plugin = plugin;
}

public Connection getConnection() throws Exception {
    return DriverManager.getConnection(this.host,this.login,this.password);                
}


public int GetMoney(String sender) throws Exception {
    this.sender = sender;
    String tableName = this.plugin.getConfig().getString("tableName");
    String dbNames = this.plugin.getConfig().getString("columnFirst");
    String dbBalance = this.plugin.getConfig().getString("columnSecond");
    Connection c = this.getConnection();
    Statement s = c.createStatement();
    ResultSet  res = s.executeQuery("SELECT " + dbBalance +" FROM "+ tableName +" WHERE " + dbNames +" = '"+ sender +"'" );
    res.next();
    return res.getInt(dbBalance);
    
         
    
}

Commands

package money.main;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;

public class Commands implements CommandExecutor {

private Money plugin;

public static  String nameS;
private DB database;


public Commands(Money plugin) {
    
    this.plugin = plugin;
    String host = this.plugin.getConfig().getString("host");
    String login = this.plugin.getConfig().getString("login");
    String password = this.plugin.getConfig().getString("password");
    this.database = new DB(host, login, password, plugin);

}


@Override
public  boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
    
        
    String nameS = sender.getName();

    if(args.length == 0 ) {
        
        String showBalance = this.plugin.getConfig().getString("messages.showBalance");    
        
        try {
            showBalance = showBalance.replace("&", "\u00a7").replace("_nm", nameS).replace("_bl", String.valueOf(this.database.GetMoney(nameS)));
            sender.sendMessage(showBalance);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }

How i can do this?

icy beacon
young knoll
#

Or rather, the key as a string

quaint mantle
#

delete

icy beacon
#

that shit isn't possible without e.getOffers

quaint mantle
#

?paste

undone axleBOT
icy beacon
#

and it doesn't exist on 1.8

wraith rapids
#

here comes slow mode

quaint mantle
#

nice

quaint mantle
#

ZBLL if u need help in 30 mins again just dm me

icy beacon
#

don't post such long stuff

quaint mantle
#

i cannot do anything for now

icy beacon
wraith rapids
#

good, good

#

my plan is working

quaint mantle
#

@wraith rapids i have a question

wraith rapids
#

do you

quaint mantle
#

who tf r u

icy beacon
#

no he clearly doesn't

wraith rapids
#

i am the man who will create a 1.8 community

eternal oxide
#

NNYa is cancer, but he's our cancer

quaint mantle
#

aight nice

icy beacon
#

i created it and there's only one member

quaint mantle
#

s

icy beacon
#

me

wraith rapids
#

you may call me jolly christmas hitler

icy beacon
#

i won't call you

quaint mantle
#

so we’ll not have ur shitty answers next time

#

we better have a 1.8 help channel

wraith rapids
#

i agree

#

1.8 needs its own channel and community and help people

icy beacon
#

we better have people stop treating 1.8 like it's the worst thing in the world apart pineapple pizza

#

like

eternal oxide
#

They shoudl add a 1.8 channel. Voice only šŸ˜„

icy beacon
#

legacy versions are good if you are a good person

#

new versions are also good

quaint mantle
#

yeah we need a community with people who can answers and not trash when the donc know

icy beacon
#

if you have a nasa fucking [c

#

pc*

quaint mantle
#

don’t

icy beacon
#

true

wraith rapids
#

it's remarkable in how in over half a decade the 1.8 plebians haven't managed to establish a community or be able to backport anything from the new api

icy beacon
#

why would we separate spigot from spigot

wraith rapids
#

they still linger around scattered in all of the minecraft related guilds asking for help with their 6 year old version

quaint mantle
#

i’ll get out

icy beacon
#

just because one spigot is a little bit older

wraith rapids
#

"a little bit"

quaint mantle
#

good luck ZBLL to argument with this guy

#

he’s stupid

icy beacon
#

i already noticed

quaint mantle
#

or he has no talent to pvp -1.8

icy beacon
#

why give a fuck about legacy when you can trash talk

wraith rapids
#

anyways

#

i will continue pinging you fucks whenever one of your kin needs help

quaint mantle
#

yeah anyways cya

wraith rapids
#

make sure to help them

quaint mantle
#

alright

icy beacon
#

make sure to fuck off whenever you want us to help somebody without even trying it yourself

quaint mantle
#

btw

#

are u an official helper

wraith rapids
#

i won't

#

i'm not

icy beacon
#

thank god

quaint mantle
#

yeah i was like ā€œyo wtf did the spigot team accepted him?ā€

icy beacon
#

if a helper like that would exist i don't think i would still use spigot

wraith rapids
#

the official helpers have mod level permissions

#

which means they wouldn't give me the role

#

because i'd ban all of the 1.8 people

quaint mantle
#

why is ur name white

wraith rapids
#

because i haven't verified

icy beacon
wraith rapids
#

good

#

that means it's working

quaint mantle
#

how old are u

#

nnynddnjanddn

icy beacon
#

probably 5

quaint mantle
#

ig 11

wraith rapids
#

that'd make me younger than the version you campaign

quaint mantle
#

or 12

eternal oxide
#

Stabbed through the heart

icy beacon
#

nice

glossy scroll
#

1.8 is fine just please dont come running here for support

wraith rapids
#

this ^^

quaint mantle
#

alr

glossy scroll
#

We do not help 1.8 people

quaint mantle
#

i agrƩe

icy beacon
#

that's fucking called discrimination

wraith rapids
#

yeah

glossy scroll
#

lmfao ok

wraith rapids
#

i'm fucking discriminating you

quaint mantle
#

but we gotta make a new channel for 1.8

glossy scroll
#

Make a forum post too

minor fox
#

What is the problem helping 1.8 people if you got some spare time and a good heart?

quaint mantle
#

since a lot of people are using it

glossy scroll
#

Cuz u can specify your version

icy beacon
#

i did it 100 years ago

quaint mantle
#

Ferkish the fact is like there’s a lot of fucking new things and the api isn’t the same

glossy scroll
#

My issue is people coming here

wraith rapids
#

the issue is that like two thirds of the active people here use modern versions and don't have any help to give

glossy scroll
#

I give them a solution

#

Then they say ā€œwait im on 1.8ā€

quaint mantle
#

but anyways

wraith rapids
#

and more like 90% of the active people who actually help people

quaint mantle
#

nnyufndjdke is 12

glossy scroll
#

Then im like fuck off i just spent time on you

quaint mantle
#

agreed

icy beacon
#

but in this case i just don't see a good way

minor fox
#

Well there are still people in here who do want to help 1.8 people, so why not let them?

glossy scroll
#

Not really lol

wraith rapids
#

sure, but they should have their own channel

#

we need to concentrate all of the 1.8 people

#

into camps

icy beacon
#

i started a whole ass argument from not knowing how to do a thing

#

wow am i trump

minor fox
#

Yeah, why don't they already have that as there's so many asking for 1.8?

eternal oxide
#

lol

#

camps

glossy scroll
minor fox
#

so why are you complaining

wraith rapids
#

there are quite a few people asking help for 1.8 tbh

icy beacon
wraith rapids
#

just, very few of those same people help their fellow 1.8 people

glossy scroll
#

hmm yea maybe

wraith rapids
#

so most of the questions fo unanswered

glossy scroll
#

Yeayea

wraith rapids
#

it's all take, little in the way of give

glossy scroll
#

Thats more accurate

icy beacon
#

i help people as well

#

but no one wants to help me

#

just because i am on a legacy version

#

what the fuck is that

wraith rapids
#

it's not that we don't want to

#

we can't

minor fox
#

You literally often CAN

wraith rapids
#

we haven't used your version for over half a decade

icy beacon
glossy scroll
#

im not gonna go back 8 fucking years in memory to help out

icy beacon
#

but if you can't

wraith rapids
#

do you think I remember how to do some thing I did like 6 years ago

icy beacon
#

then why don't you just go away and let people, who can, try and hel

#

p

#

instead of complaining like "oh you use that version? bad lmao"

eternal oxide
quaint mantle
#

agreed

wraith rapids
#

i literally fucking pinged several people so that you could get help

#

i am literally the only reason you got any degree of help

quaint mantle
#

ZBLL woke up and choose speaking facts 😈

glossy scroll
quaint mantle
#

nobody wanna get pinged bc u don’t know what to answers

glossy scroll
#

Instead of trying to justify urself

icy beacon
#

you wrote so much

quaint mantle
#

if u don’t know stfu that’s better man

icy beacon
#

for my message of asking for help to drain in your complaints

#

and now no one even knows what i asked for

wraith rapids
#

yeah

#

so

icy beacon
#

but everyone knows i use 1.8

wraith rapids
#

you should update

icy beacon
#

your goal was not to discourage me from using it

#

but you discouraged other people from even attempting to help me

wraith rapids
#

myes

icy beacon
#

because you don't let them see what i want

glossy scroll
#

Well yea

icy beacon
#

you only let them see my fucking minecraft version

quaint mantle
#

ZBLL u speaking munch munch facts

glossy scroll
#

The goal here is to get you to update

wraith rapids
#

indeed

ivory sleet
#

Please stop this nonsense zbll

quaint mantle
#

ye

icy beacon
wraith rapids
#

ban him conclure

quaint mantle
#

alright ZBLL i’m back home what’s the oroblem

icy beacon
#

millions of messages ago i said why i am not updating

#

but you won't even read it

eternal oxide
#

Run boys, the Oranges are here!

icy beacon
#

who cares

quaint mantle
#

ZBLL ok now stop we gotta fix your problem

glossy scroll
#

yea i just joined this convo 5 mins ago

quaint mantle
#

LMAOOOO

icy beacon
#

sure dm me

glossy scroll
#

so idk

ivory sleet
wispy plume
#

Quick question: Can I save configuration file async?

glossy scroll
#

BAN CONCLURE!!!

icy beacon
wraith rapids
#

you can save it async yes

minor fox
#

Can we please change "go somewhere else with ur 1.8 problem" to "either wait until someone who helps with 1.8 is here or look for help somewhere else"

ivory sleet
#

ZBLL no

quaint mantle
#

we need to make a pool

#

to create a help 1.8

#

or help 1.7

wraith rapids
#

i agree

glossy scroll
#

lmfao not 1.7

quaint mantle
wispy plume
icy beacon
#

i think 1.7 is absolutely not used

wraith rapids
#

everybody spam ping md5 about creating a 1.8 channel

icy beacon
#

but yeah

eternal oxide
quaint mantle
#

idk about 1.7 but yeah

icy beacon
#

for somebody maybe

ivory sleet
#

vs because it’s totally irrelevant

icy beacon
#

how is it irrelevant

#

isn't 1.8 spigot still spigot

quaint mantle
#

or if ya dont want Conclure, let these people stop speaking when they dont have anything good to say

wraith rapids
#

saving it as a file is only a read operation from the map

ivory sleet
#

1.8 is over 6 years old

wraith rapids
#

concurrent reads are fine

icy beacon
#

so?

ivory sleet
#

Or smtng like that

icy beacon
#

isn't that still a version?

wraith rapids
#

so long as you don't modify and read at the same time it's fine

ivory sleet
#

We dropped support for 1.8 long time ago

icy beacon
#

if no one wants to help us in a regular channel, why fucking spend time here

#

just make a different channel for individuals

wraith rapids
#

we need a konzentrationslager for 1.8

minor fox
#

I just wanna say you guys gotta stop this extremely toxic behaviour against 1.8 users

ivory sleet
#

Use this channel as a way to get help not complain that people complain about you using a totally outdated version. If someone wants to help you then they will that’s it.

icy beacon
#

that sounds controversial

#

for legal reasons that's a joke

glossy scroll
#

Lmfao do not compare 1.8 to lgbt

#

Its your choice lol

icy beacon
#

they are the same - people don't even participate but trash talk

ivory sleet
#

ZBLL again you don’t have to make this such a biggie

glossy scroll
#

Im not gonna entertain this discussion

icy beacon
#

now me might see someone who geniunely can help

#

what a surprise

wraith rapids
#

basically, this issue exists on all help channels and guilds

glossy scroll
#

We dont know ur issue tho

wraith rapids
#

everybody dislikes the 1.8'ers

#

on paper, it's even worse

#

yet, none of you have made your own guild or discord to help one another

#

it is very curious

ivory sleet
#

I mean there’s a very good reason to dislike it needless to say

glossy scroll
#

LOL

icy beacon
icy beacon
wraith rapids
#

ah, the pink helper arrives

#

your fellow 1.8 plebian is in need of aid

#

you should help him

crude charm
#

m8 i'm literally using 1.16 right now

icy beacon
crude charm
#

for a survival mixed with rpg project

icy beacon
#

it's "i use arch" but spigot alternative

eternal oxide
#

Yay a convert

wraith rapids
#

you talked about 1.8 the other day

#

you talked about 1.8 the other day

glossy scroll
#

Its really not jsut 1.8 tho

#

Its the fact it was 6 years ago or whateber

wraith rapids
#

you talked about 1.8 the other day

#

about how it's super good and performant and shit

crude charm
#

I still do use it for kitpvp, practice, hcf and uhc stuff like that

minor fox
#

Sure, 1.8 is full of bugs and glitches, but it doesn't justify the toxic response

glossy scroll
#

Idt im being toxic, z is just overly defensive imo

wraith rapids
#

good, that makes you a half blooded 1.8 plebian

#

you're still capable of helping your pure blooded 1.8'er

icy beacon
#

1.8:

  • pvp
  • quite a big user community
  • a main version of the biggest fucking server out there

1.14:

#
  • doesn't even start up on my strongest pc
minor fox
#

+1

ivory sleet
#

?kick @icy beacon inappropriate

glossy scroll
#

We dont support 1.14 either

undone axleBOT
#

Done. That felt good.

young knoll
#

How old is your strongest pc

wraith rapids
#

my 600mhz laptop that can barely run discord can start up a 1.14 server

#

checkmate, atheists

minor fox
#

why did he get kicked

glossy scroll
#

LOL

crude charm
#

WTF am I watching (autoplay in the backround) https://www.youtube.com/watch?v=jFk-L7Wcg0g

Arnold Schwarzenegger shows us the contents of his fridge as well as explaining what his workout looks like in 2019. The star of Terminator: Dark Fate shares his approach to eating, working out and the reason why "he'll be back".

Arnold Schwarzenegger Shows His Gym & Fridge | Gym & Fridge | Men's Health

Men's Health Official Site: https://www...

ā–¶ Play video
#

LMFAO

#

HAHAHAHA

glossy scroll
#

Now hes gonna come back and be like ā€œi was ostracized blah blah blahā€

ivory sleet
#

Hopefully not

quaint mantle
#

oh i saw u kicked him

glossy scroll
#

ā€œyoure discriminating against me ā€œ

quaint mantle
#

poor guy

ivory sleet
#

I did warn him twice

quaint mantle
#

he had reason tho

glossy scroll
#

Its ok if he asks who kicked ill say it was me

#

I can take the heat

wraith rapids
#

discrimination is only bad when the reason you're being discriminated for is beyond your ability to control

#

for example, one can argue that discriminating based on skin color is bad because you can't change your skin color

#

however, changing a version is simple

#

i can and i fucking will discriminate you on your bad life choices

glossy scroll
#

I thought his ā€œreasonā€ was legit like

#

He depends on other 1.8 plugins

#

And he would update if he could

#

But no

wraith rapids
#

a robber is discriminated by being placed in jail or fined because of his choices

glossy scroll
#

It was just a pre-conceived idea of performance and such

#

1.14 is probably the worst performing version as of late

#

1.17 probably performs the best

wraith rapids
#

a person without education is discriminated because he doesn't qualify for certain jobs

#

a person on a 6 year old version is discriminated because he has the option of getting the full, updated product that would usually solve his problem out of the box, but refuses to

quaint mantle
#

bro

#

i think u didnt understand

minor fox
#

well the majority of the players on the server the 1.8 dev is creating will be gone if he changes to 1.17

#

so

quaint mantle
#

hes not gonna change version

#

and nobody like him or me will do it

#

open your brain lmfao

wraith rapids
#

yep, just like a career criminal rarely stops being a criminal

minor fox
#

name a server that's popular for pvp and minigames that's running the latest version

wraith rapids
#

the best we can do is round you all up and try to help you cope with your deficiency

quaint mantle
#

theres no pvp server for more than 1.8

glossy scroll
#

1.8 players are in the minority tho

#

I wished i saved the pie chart

minor fox
#

no?

glossy scroll
#

And its by a lot

ivory sleet
#

There’s like 0 reason to use 1.8 imo

quaint mantle
#

thats not the problem, we were saying that if u dont know about anyone questions becaure its 1.8, just say nothing

glossy scroll
#

Most people play on the latest version

quaint mantle
#

u dont have anything to say

wraith rapids
#

i do

#

your version is bad and you should feel bad

glossy scroll
#

yah we do tho

quaint mantle
#

ok bro

#

ill get out

glossy scroll
#

ok bye

dusk flicker
#

the only reason I run 1.8 is performance but once I improve performance on a later ver ill be switching

quaint mantle
#

the only fucking reason if the pvp

#

is

minor fox
glossy scroll
#

I would not be suprised if 1.17 out performs 1.8

young knoll
dusk flicker
glossy scroll
#

Yay

minor fox
#

plus the overall quality on 1.9+ servers are worse, for example in terms of anti cheats

glossy scroll
#

Pie chart

#

Data is beautiful

ivory sleet
#

Ferskfisk you can install plugins which adjust the pvp to 1.8

dusk flicker
#

Even if its not 100% there but close, I can get it mostly there with a custom fork

wraith rapids
#

i'll add fersk to the 1.8 ping list

glossy scroll
#

Same amount of people on 1.16.4 as 1.8 lol

minor fox
#

please do that

wraith rapids
#

since he's so hell bent on helping them

minor fox
#

im adding you to the list ill ping when someone wants help from toxic people

wraith rapids
#

what is your area of expertise specifically

minor fox
#

what

wraith rapids
#

have you dealed with the protocol?

glossy scroll
#

If hypixel decided to update to latest version they would not lose that many players

wraith rapids
#

do you do nms?

glossy scroll
#

They’d probably benefit in the long term

minor fox
#

i do a little bit of everything yeah

glossy scroll
#

With all the features

wraith rapids
#

i suppose rack is going on the list too

dusk flicker
#

damn

#

xD

glossy scroll
#

LOL

quaint mantle
ivory sleet
#

I mean once mojang decides to release the new combat system hopefully they will add a way to remove the pvp cooldowns

#

Natively

glossy scroll
#

I can go on the discriminators list

minor fox
young knoll
#

I mean they technically have a native way

#

Via the attack speed attribute

glossy scroll
#

The biggest thing is nkt the attack speed

wraith rapids
#

the attack speed isn't even what they complain about

glossy scroll
#

Its the movement

wraith rapids
#

apparently the knockback is somehow wrong

glossy scroll
#

And knockback

eternal oxide
quaint mantle
#

Ok, thankks

young knoll
#

Just give all items knock back 100

ivory sleet
young knoll
#

Then it will be fixed

glossy scroll
#

The best solution is to just develop a pvp system taht your server has

wraith rapids
#

ban anyone who gets hit

young knoll
#

I like the new new combat system so far

glossy scroll
#

And one that updates dont change

wraith rapids
#

chat based combat

#

/attack other_player

glossy scroll
#

So pvp may feel different on my server than normal

#

But its always the same

eternal oxide
#

I hate the new combat. I panic in combat and hit all the keys.

minor fox
#

are they improving server performance or are we just doomed

young knoll
#

lol

wraith rapids
#

they probably aren't

#

well, there may be negligible improvements here and there

#

but we're not going back to 1.12 levels ever

#

not to mention 1.8

noble pollen
#

A free NPC Plugin

glossy scroll
#

For the client id say 1.17 better

quaint mantle
#

citizens

noble pollen
#

Its for 1.12.2

glossy scroll
#

For the server its probably negligible

wraith rapids
#

in fact I'm kind of worried about the sound block shit in 1.17

noble pollen
#

A free NPC plugin for 1.16.5

wraith rapids
#

it sounds very expensive performance wise

quaint mantle
#

citizens.

glossy scroll
#

Game events?

#

Could be

quaint mantle
#

it’s for 1.16.5 too

wraith rapids
#

since wool blocks sounds, each sound that happens needs to raytrace to each of the sound receivers and check if there are obstructing blocks in the way

noble pollen
wraith rapids
#

and entities make sound while moving and shit

quaint mantle
#

u can download it for free

young knoll
#

Doesn’t wool only block sounds for the sensors

noble pollen
#

Hwere

#

Where

wraith rapids
#

i have no idea how they've tackled that in practice but it sounds like it's going to be horrible

glossy scroll
#

I think raytracing algo is very optimized

quaint mantle
#

but it will not help developers

glossy scroll
#

Cuz its used for tons of things

#

AI being the biggrst one

wraith rapids
#

yeeah but more is still more

glossy scroll
#

True

wraith rapids
#

making every entity do a raytrace in every direction every time it moves is still going to make a pretty big impact

glossy scroll
#

But thats why they also cant happen repeatedly with 1 sensor

young knoll
#

I don’t think that happens

#

But I could be wrong

wraith rapids
#

i certainly hope not

glossy scroll
#

Cooldown helps

cloud berry
eternal oxide
#

Pretty sure entities only perform raytraces when specific AI conditions are met.

wraith rapids
#

looking for targets and such, yeah

lean gull
#

anyone knows why this isn't working? i printed it and it said true so it should work
if (WooToo.chatColorHashMap.containsKey(uuid.toString())) {

eternal oxide
#

looks fine

wraith rapids
#

fine is an exaggeration

#

but it looks like it should work

lean gull
#

why is it an exaggeration

eternal oxide
#

He's a beginner so I'm not commenting on naming or static abuse šŸ˜‰

dire marsh
lean gull
#

no please, tell me how to do better

dire marsh
#

any decent IDE will auto import it for you

#

the nms packages changed in 1.17

young knoll
#

Yeah my ide found it

cloud berry
#

._.

#

eclipse fuckin didnt...

dire marsh
#

$50 pls

#

jkjk

cloud berry
young knoll
#

I use eclipse

#

It worked

cloud berry
#

send me a bitcon addy ill send u somethin lol @dire marsh u rly did help a lot

eternal oxide
maiden briar
#

I just get a config without comments

dire marsh
#

nah it's fine that only took me 30 seconds anyway

young knoll
#

What on earth is that formatting

cloud berry
dusty herald
#

ill take the bitcoin

cloud berry
#

if u use the -remmapped jar

#

which im not 🤣

lean gull
dire marsh
#

now i need to work out how to use mojang mappings :thonk:

dusty herald
#

no

cloud berry
dusty herald
#

that's not an error, more of a tip Floofsy

lean gull
#

what does it mean

dire marsh
#

i just opened up a project in intellij with 1.17 nms as a dependency

#

typed the names, ctrl + clicked on them

young knoll
#

You can also decompile the jar in your local maven repo

dire marsh
#

eclipse should be working fine with this too though

cloud berry
#

so now i got 2 forks one per ide

lean gull
#

btw this is in the main class

    public static HashMap<String, String> chatColorHashMap;
    public static void init() {
        chatColorHashMap = new HashMap<String, String>();
    }```
dire marsh
#

but yeah all field names are gone now so i need to work out adding mojang mappings

#

saw ito n the thread so

#

no gradle example 😢

young knoll
#

Also doesn’t work with reflection strings

#

Sadly

lean gull
#

can someone please help? i have no clue why this isn't working >.<

eternal oxide
cloud berry
#

@eternal oxide
This means that you must only use the remapped-mojang jar for development and must remap your plugin prior to distribution. For those not using Maven you can download SpecialSource to help you do this here, and we encourage the creation of instructions/tools for other build systems.

wat .___.

gaunt hatch
#

Anyone skilled in docker containers?

cloud berry
#

wats wrong if i use regular jar doe?

lean gull
#
package com.floofsy.wootoo;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import java.util.UUID;

public class ChatColorFunction implements CommandExecutor {

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

        if (!(sender instanceof Player)) {
            System.out.println(ChatColor.translateAlternateColorCodes('&', "&c&lERROR &8Ā» &7Only players can execute this command."));
            return true;
        }
        Player player = (Player) sender;

        if (cmd.getName().equalsIgnoreCase("chatcolor")) {
            UUID uuid = player.getUniqueId();
            WooToo.init();
            if (WooToo.chatColorHashMap.containsKey(uuid.toString())) {
                WooToo.chatColorHashMap.remove(uuid.toString());
                player.sendMessage(ChatColor.translateAlternateColorCodes('&', "&a&lSUCCESS &8Ā» &7Chat color &cdisabled&7!"));
                System.out.println(WooToo.chatColorHashMap);
            } else {
                WooToo.chatColorHashMap.put(uuid.toString(), "&c");
                player.sendMessage(ChatColor.translateAlternateColorCodes('&', "&a&lSUCCESS &8Ā» &7Chat color &aenabled&7!"));
                System.out.println(WooToo.chatColorHashMap);
            }
        }

        return true;
    }
}
```this is the code
cloud berry
#

?paste

undone axleBOT
dusty herald
#

yes please use paste

lean gull
#

ok sorry

wraith rapids
#

you can remove the if (cmd.getName().equalsIgnoreCase("chatcolor")) {

young knoll
#

Because you can’t distribute your plugin with Mojang mappings

wraith rapids
#

since this is the sole command for this executor

wraith rapids
#

meaning only this command will use this executor

#

meaning this will always be true

cloud berry
marble geyser
#

I am having issues with my BuildTools.jar, it only creates the log folder and nothing else

#

I am using gitbash

eternal oxide
young knoll
#

Then you don’t need to do any remapping

#

Because it’s all unmapped

oblique ibex
#

I did use the mojang mappings and that works but when I remap them to be obfuscated classes, it won't run on the server. Clasnotfoundexceptions on the obfuscated classes.
Anyone having a similar problem?

cloud berry
#

instead of old nms

#

net.minecraft.network.* etc.

young knoll
#

The repackaging isn’t part of mapping

lean gull
#

i'm confused, wootoo.init is before the if statements

#

i didn't know it wipes it though

eternal oxide
#

your init wipes teh map so it can;t have anything in it at that point

#

you set it to a new Map in the init?

eternal oxide
main tangle
main tangle
#

i already did

#

for version 1.17

#

with java 16

lean gull
#

ok so i removed the wootoo.init in the command class, does it mean that if i give it to someone who didn't have it the plugin before i removed it won't be able to use the plugin?

eternal oxide
#

Your Map should be intialized when you declare it it

lean gull
#

what's declare

wraith rapids
#

i think tutorials should start with a description and introduction of OOP before actually showing a single line of code

eternal oxide
#

public static HashMap<String, String> chatColorHashMap = new HashMap<>();

wraith rapids
#

the biggest issue new developers face is that they know how to write code, by typing text

#

but they don't know how the language works

lean gull
#

but that means it will wipe it every server start...

#

or on server stop

wraith rapids
#

oop fundamentals are severely lacking in all of the java tutorials i've seen

quaint mantle
#

if you want to save it, use yaml files

#

or a database

main tangle
eternal oxide
lean gull
#

btw i removed the wootoo.init thing and the cmd.getname so now it gives internal error when i execute the command

main tangle
#

Oof

gaunt hatch
#

does anyone know if openjdk works on deb:jessie? Or is it not cause its older

main tangle
#

spigot is against me today

eternal oxide
lean gull
#

but u just said it will be intiliaized

young knoll
#

Nothing in memory will persist over restarts

lean gull
#

when i declare it

eternal oxide
#

I gave you the correct line of code to initialize it

lean gull
#

oh i thought that was one of the line of code i have

#

where do i put that and what does it do

eternal oxide
#

look at it and see if you can figure that out

lean gull
#

kk brb

oblique ibex
#

jeez, ok anyway. I'll bump my question. Anyone got the mojang mappings working?

lean gull
#

wait, isn't that my code but shorter?

eternal oxide
#

thats initializing yoru Map when its declared, instead of using an init method

lean gull
#

so i put that instead of

    public static HashMap<String, String> chatColorHashMap;
    public static void init() {
        chatColorHashMap = new HashMap<String, String>();```?
quaint mantle
#

yes

gaunt hatch
#

why declare it in a init?

lean gull
#

idk

gaunt hatch
#

Its static that is not the best place to put it

eternal oxide
#

He's a beginner

quaint mantle
#

^

gaunt hatch
#

ahh

#

nvm

lean gull
#

cool it works now

gaunt hatch
#

But wait shouldn't we show him the right way to do it

eternal oxide
#

not yet. Not until he gets it working

#

it will only confuse him

gaunt hatch
#

Ok, lol sorry i saw it as was like hm....

lean gull
#

it doesn't save after restart

quaint mantle
#

save it to a file or database

wraith rapids
#

you people are too lax with beginners

eternal oxide
#

it won;t untill you write teh saving and loading

lean gull
#

how do i do that

gaunt hatch
#

I didn't know. And my teaching someone is a bit diffrent.

#

Everyone is diffrent.

wraith rapids
#

when a beginner makes a mistake you make them get down and give you 20

eternal oxide
#

You have to decide how you want to save it

lean gull
#

what are my options

eternal oxide
#

file or database

lean gull
#

i don't know what that means

eternal oxide
#

go for file then šŸ™‚

lean gull
#

could u explain what it means tho

eternal oxide
#

Does your plugin have a config yet?

lean gull
#

i have a plugin.yml file

eternal oxide
#

nope, a config.yml

lean gull
#

then no i do not

eternal oxide
zenith dagger
#

Guys, I'm trying to make a helicopter fly with armor stands, I managed to make it fly and but when I teleport the armorstands to the new location they have a little delay to go and they get messed up http://prntscr.com/155t8t4

I want to know if is possible to fix it
http://prntscr.com/155tb1l

eternal oxide
#

ask questions on anything you don;t understand

lean gull
#

ok it says it's stored in the storage disk

#

where is that

wraith rapids
#

do you know what a computer is

lean gull
#

like i don't have to save other people's variables on my computer, right?

lean gull
wraith rapids
#

a computer has in principle two ways of remembering things

eternal oxide
wraith rapids
#

firstly, there is primary memory

lean gull
#

i know what a file is but not what memory or hard disc is

wraith rapids
#

primary memory is fast

#

but disappears when power is disconnected; it is not persistent

lean gull
#

so virtual memory

#

like it says in this article

wraith rapids
#

public Map map = new HashMap is generally stored in primary memory, as is everything you do with your code

#

they are rapidly accessible, but they will disappear once the program terminates or the system shuts down

#

in order to persist this information, to remember it, you need to write it to secondary memory; the hard drive

#

the hard drive is significantly slower than primary memory, but does not forget anything unless that something is deleted

lean gull
#

what do you mean by speed

wraith rapids
#

it is a physical component of the computer, and basically every computer has one

eternal oxide
lean gull
#

like he says "the hard drive is significantly slower than primary memory"

eternal oxide
#

ok

lean gull
#

does it mean it stores data slowly?

wraith rapids
#

it reads and writes data slowly

eternal oxide
#

yes, slower than in memory

gaunt hatch
#

That is based on the type of drive also

wraith rapids
#

which is why you generally do not want to do any file IO synchronous to the main thread

gaunt hatch
#

a HDD is slower where a SDD or m.2 is faster

lean gull
wraith rapids
#

well, i'm off

lean gull
#

ok

#

have a good day

oblique ibex
#

ok I'm out, losing braincells I can't afford to lose reading this

wraith rapids
#

google "hard drive"

#

come back when you know literally anything about anything

lean gull
#

why you gotta be mean tho

eternal oxide
#

Imagine your desk is memory and a filing cabinet is your hard disc. When you turn off your computer everything on your desk gets trashed, but things saved in the filing cabinet are still safe.

wraith rapids
#

because the amount of effort for me to somehow get you to understand these things with the nonexistent base information you have far exceeds what you should expect of anyone here

eternal oxide
#

You can access things on your desk quickly, but to fetch things from the filing cabinet are slow and take time.

lean gull
#

this article says i need to use my main class' instance to do stuff in config, does that mean i have to make all the config functions in the main class and then call them from other classes?

#

cause idk what instance means

eternal oxide
#

to start with its usually simplest

quaint mantle
#

i would recommend doing it in the main class if you're just starting

lean gull
#

i have no idea how to do it tho

eternal oxide
#

How to do what?

lean gull
#

lemme just finish this article first so i atleast know how to store stuff in the config

quaint mantle
#

thats what the article is for...

lean gull
eternal oxide
#

You don;t have to yet

#

you just have to learn how to create/save/load a config

#

Then you get onto Dependency Injection (passing instances to other classes) and we get to fix your static errors.

lean gull
eternal oxide
#

You will soon

lean gull
#

also in the article it talks about labels, paths and subpaths

#

idk what those are

#

oh and btw thank you for helping me

quaint mantle
#

paths are like the route you take through folders on your computer to get to a file

eternal oxide
#

In the examples config file player-name is a path

lean gull
#

so a path is how i get to 3 in
1:
2:
3:

quaint mantle
#

oh config paths

lean gull
#

(numbers are folders)

eternal oxide
#

yes, the path woudl be "1.2.3"

lean gull
#

ok, so what's a sub-path and a label

eternal oxide
#

1,2 and 3 are labels

#

2 is a sub path of 1

#

3 is a sub path of 1 and 2

lean gull
#

so labels are folders, path is how you get to a folder and sub-path are folders inside folders?

eternal oxide
#

no

lean gull
#

oh, then what?

eternal oxide
#

they are not folders

#

they are simply labels

lean gull
#

well what's the difference between labels and folders

quaint mantle
#

if you have key: value

#

key is the label

eternal oxide
#

labels are indices within your config. folders are locations on your hard disc

#

they are two seperate things

lean gull
#

what's an index

eternal oxide
#

a label šŸ™‚

lean gull
#

i don't understand how they're not the same thing

eternal oxide
#

In this example ```yaml
player-name: Steve

player:
time:
join: 6:00pm```

#

everything in brown is a label

lean gull
#

aren't time & join sub-paths tho?

eternal oxide
#

yes

lean gull
#

so they can be two things?

quaint mantle
#

not exactly

#

time and join are under player

#

player is not a subpath

eternal oxide
#

labels are used to access the values in a config. You use the labels to point to where teh value is stored.

opal juniper
#

player.time.join

lean gull
#

so they are literally folders

quaint mantle
#

no

eternal oxide
#

to get the value "Steve" the path consists of one label "player-name"

#

to get the value "6.00pm" the path consists of 3 labels "player.time.join"

lean gull
#

but join has a value, wouldn't it make it something else?

eternal oxide
#

time and join are sub elements of player. They can only be accessed by going through player

#

no, its still a label

#

every label can have a value or another label

lean gull
#

ok

#

i still don't understand why they're not folders but nvm

gritty lake
#

Do it exist a bungeecord event that can change the player ip before connection to a another server? Want to ip spoof the ip on certain servers that players are able to make

Well simply disable ip forwarding on certain servers

eternal oxide
#

its nested like folders, but they are not called folders

lean gull
#

ok so this sets variable "time" to the value of join?
String time = plugin.getConfig().getString("player.time.join");

eternal oxide
#

yes

lean gull
#

and this sets the value of join to time?
plugin.getConfig().set("player.time.join", time);

eternal oxide
#

yes

lean gull
#

ok

dusty herald
#

wow partydragon, quick question

#

when are you going to merge my PR, it's only been 16 days šŸ‘€

lean gull
#

is partydragon the owner of cubehost?

dusty herald
#

no

#

idk

gritty lake
#

depends on the project, i normaly merge when i work on the project

dusty herald
#

nameless-forms

gritty lake
#

ah i see well it missing language support
anyways i merge next time i work on that project

dusty herald
#

oh no not missing language support šŸ˜‚ but thank u

lean gull
#

oh sorry i meant cubedcraft not cubedhost

gritty lake
#

ye

lean gull
#

so u are the owner of cubedcraft?

gritty lake
#

yes

ivory sleet
#

😮

lean gull
#

oh cool, i got false banned from there for a month šŸ˜†

gritty lake
#

173 days ago

smoky lance
#

is there a changelog somewhere with the methods that were added/removed/altered/deprecated?

lean gull
#

what does this do?

    private File customConfigFile;
    private FileConfiguration customConfig;```
eternal oxide
#

You should already know about Field/variable definitions.

lean gull
#

i do not

eternal oxide
#

The map you created is a Field

#

Variables at the class level are called Fields

lean gull
#

wdym by class level

eternal oxide
#

Within a Class, outside of a Method

lean gull
#

what's a method

eternal oxide
#

your init() was a method

lean gull
#

so a function?

eternal oxide
#

yes

quiet ice
#

No

#

A function is something else

#

Very similar, but different

eternal oxide
#

as far as he's concerned

#

if he knows of a Function he has at least used some other language

lean gull
#

i know skript

eternal oxide
#

close enough

quiet ice
#

Though the difference between function and method is often irrelevant I guess

lofty junco
#

This is the error

#

this is the code

#

im trying to call this method in another plugin but i get an error can someone help me

quiet ice
#

Did you shade in something?

#

Yea, looking at the code you accidentally shaded in something

lofty junco
#

okay but how can i fix my problem

quiet ice
#

Fix your buildscript

lean gull
#

so this sets a private variable (a variable that can't be accessed from other classes) to the config file, right?
private File customConfigFile;

quiet ice
#

Can't really talk in the specifics without looking at the buildscript

lean gull
#

what's a field

eternal oxide
#

a variable at the class level, outside of any method.

lean gull
#

ok and what does this do? private FileConfiguration customConfig;

lofty junco
#

this is the buildscript

eternal oxide
#

That later is going to hold your config

quiet ice
#

declares a field and sets it to it's implicit value (null)

#

Set all compile scopes to provided scopes whenever it does not apply

lean gull
eternal oxide
lean gull
#

i'm confused

eternal oxide
#

point to

#

you remember your Map, how you declared it..

lean gull
#

it's in class level

#

(did i get that right?)

eternal oxide
#

at first it was not initialized so it was null, until you called yoru init() method.

#

yes

#

when you called your init() you assigned it an object, new HashMap<>()

lean gull
#

ok i'm confused again

quaint mantle
#
Could not pass event PlayerJoinEvent to ZAAPI v1.0-SNAPSHOT
org.bukkit.event.EventException: null
at net.zaapi.npc.nms.PacketInjector.addPlayer(PacketInjector.java:16) ~[?:?]
((CraftPlayer) player).getHandle().b.a.k.pipeline().addBefore("packet_handler", "PacketInjector", h);
lean gull
#

wdym assigned

quaint mantle
#

what is problem?

eternal oxide
#

= is used to assign something

lean gull
#

yeah no that doesn't help

lofty junco
#

how can i create an instance and use it in a another plugin

eternal oxide
#

so int value = 5; assigns 5 to the variable value.

lean gull
#

oh ok

quaint mantle
lofty junco
#

yea but does it work in bungeecord