#help-archived

1 messages ยท Page 177 of 1

tiny pebble
#

though sometimes i may end up putting them into packages afterwards

tough kraken
#

actually i really dont get it

tiny pebble
#

don't quote me on this but i have a feeling it needs double quotes instead of single quotes if it it's a string? yaml configs are really weird to deal with

tough kraken
#

well

#

in yml files?

#

i can try

tiny pebble
#

that's the thing

#

with yml files when i had something automatically add to the yml, it added it in single quotes although it was an object

tough kraken
#

nap, still the same

tiny pebble
#

hmm

#

i remember having this problem i'm just trying to remember what i did

tough kraken
#

seems to be at de:

tiny pebble
#

yeah i see

tough kraken
#

weird

#

what i can try...

#

i have an idea whats the issue

civic ruin
#

Hi! I'm having some troubles Im trying to get an ngrok ip to work, it keeps saying unknown host, I'm on 1.16, I just updated my server

tough kraken
#

never

tiny pebble
#

i believe my issue was formatting.

I had something like:

SectionA:
   SectionB: 'Value'
      SectionC: 'Value'
   SectionBA:
...

It was yelling at me because SectionB had a value yet was also a section. I know this has nothing to do with your problem but it could maybe give you some idea about formatting

tough kraken
#

its because its an custom yaml

tiny pebble
#

really?

tough kraken
#

seems like

#

for my config.yml it works

#

lmao

tiny pebble
#

huh

#

may have to do with your method that creates the config?

tough kraken
#

well nvm

#

wait

#

my dc-integration plugin doesnt likes reloads

#

so much erros ahhhh

#

Hi! I'm having some troubles Im trying to get an ngrok ip to work, it keeps saying unknown host, I'm on 1.16, I just updated my server
@civic ruin idk if im dumb, but what is ngrok ๐Ÿ˜ฎ

tiny pebble
#

nah lol idk either

tough kraken
#

tanku its fixed

#

deleted the folder, now it works

#

weird

tiny pebble
#

was there a folder holding the yaml configs?

tough kraken
#

well the folder named by the plugin

tiny pebble
#

oh i see

tough kraken
#

the default configs folder

tiny pebble
#

im not sure why that is

#

thats weird

civic ruin
#

@civic ruin idk if im dumb, but what is ngrok ๐Ÿ˜ฎ
@tough kraken idk how to port forward, so I use a program called ngrok to share an ip with friends, which I have to change everytime I close the program, meaning Ill give them a diff ip everytime

tough kraken
#

very unsafe imo

#

used hamachi... yeah... i USED it

#

then my pc was broke

#

n

tiny pebble
#

never touched hamachi never will

tough kraken
#

better idea

tiny pebble
#

would recommend looking up a tutorial for port forwarding

tough kraken
#

the problem is i am from germany, i think its different in other countries

civic ruin
#

I did, idk how to unlock my router, the password isnt available and neither is the manual, the recommended password for my router didnt work either :/

tough kraken
#

what would really interest me, you english/american/etc guys,

is it actually important you if for example don't is wrote with or without '?

#

i forget this thing everytime xd

frigid ember
#

eh proper grammar is don't but nobody really cares

tough kraken
#

I did, idk how to unlock my router, the password isnt available and neither is the manual, the recommended password for my router didnt work either :/
@civic ruin well you need your router password etc

#

better for me haha

tiny pebble
#

yeah it doesn't really matter how it's written, we understand either way. just a habit for me tbh

civic ruin
#

I don't understand though, ngrok worked with my friends in 1.15 before I updated, and I can get on my server just fine by localhost

graceful vigil
#

Why not get a server from a host, you can easily get one for $2-4

tough kraken
#

well thats the thing on localhost

civic ruin
#

I'm really cheap lmaoo, plus I'm a teen and I don't have a job :/

tough kraken
#

i have a full vServer, 24gb 6core 20โ‚ฌ, what means about 20$ too

#

i dont think 3 dollars at month would be so hard to get... but idk your situation, i think its different for everyone

subtle blade
#

Nope. A relatively decent server setup can be paid for the whole year with just an 8 hour shift

civic ruin
#

Yeah, my parents don't really like me using money for games, so buying a server even for $3 per month would be a hard pass :/

subtle blade
#

That's fair. My parents were the same way when I was younger and that's honestly probably for the better

tough kraken
#

servers are very cheap for now

civic ruin
#

Plus I barely use mc as much nowadays since I got another game

unborn jewel
#

oh cmon

#

all the work i did

#

and my plugin doesn't work properly

graceful vigil
#

welcome to development lmao

tough kraken
#

well, what was your problem @unborn jewel

graceful vigil
#

trial and error, get used to it

tough kraken
#

welcome to development lmao
@graceful vigil yeah lmao

unborn jewel
#

the bossbar isn't work

tough kraken
#

describe not working

unborn jewel
#

idk if its because bossbar are not supportedf in 1.8.8

#

it's not showing up

tough kraken
#

no errors anywhere?

unborn jewel
#

nope

keen compass
tough kraken
#

enabling/joining/etc

keen compass
#

contains a program called beacon that does the work for you

tiny pebble
#

Albeit off topic, is there a way to have an entity that's extending EntityPlayer be... an EntityCreature as well? Basically I want to be able to use the PathfinderGoalRandomStroll for an entity that well.. has the shape of a player haha

Edit: Or if there's some sort of navigation system EntityPlayer has other than being controlled by the user (maybe something similar to NavigationAbstract, as my goal is to copy PathfinderGoalRandomStroll if I can't use it)

unborn jewel
#

wym vngc

tiny pebble
#

and yes i am referring to nms territory ^

tough kraken
#

if you dont have errors, its hard to know whats the problem

unborn jewel
#

yea ik

#

i do have onjoin

tough kraken
#

without an error i cant help

as well i never used a bossbar

#

always using the actionbar

unborn jewel
#

ah

tough kraken
#

btw, tanku maybe the config problem really was because of the '

#

but never heard to use " in yml's

unborn jewel
#

i give up on this bossbar

#

doesn't even work

tough kraken
#

thats not good

civic ruin
tiny pebble
#

yeah yml's work really weirdly

tough kraken
#

trust me, i am coding since about 6 months, i know it if stuff doesnt work

#

my timer RRRRRRRR

#

could rage again

#

but still keep on, if not, you never would get it

frigid ember
#

yeah yml's work really weirdly
yaml is a bitch when it comes to indentation and quotation

#

json ftw!

unborn jewel
#

it shows 0 errors

#

so its impossible to know why its not working

tiny pebble
#

i do enjoy json but not for user-friendly configurations ๐Ÿ˜›

frigid ember
#

.ini ๐Ÿ˜†

tough kraken
#

then ask at the forums at spigotmc.org
there maybe they can help you, if you send your code.

unborn jewel
#

not worth it

#

they are gonna bully me on my class names

tough kraken
tiny pebble
#

@unborn jewel temporarily rename the class file and only show them that class file? shrug

tough kraken
#

well, before 2 days i got ignore-status at this channel

#

because of such stuff

#

lmao

#

or dont even show the class file? ๐Ÿ‘€

#

just show all after public class ...

#

and you're good

unborn jewel
#

im gonna have to change everything in the code

#

if i rename the class

tiny pebble
#

refactor ๐Ÿ˜›

tough kraken
#

if you would know how often i remove static from my code, just to send it here hahaha

#

uhmm

#

no one heard me ๐Ÿ™‚

tiny pebble
#

i dont know the proper way to use static so i dont use it all too often unless im trying to do nms stuff

unborn jewel
#

don't worry

#

I deleted my project

tough kraken
#

f

tiny pebble
#

that's not always a good solution but i mean

#

you do you

unborn jewel
#

I just suck at coding

tough kraken
#

and how you want to change that? by deleting projects?

#

that will really make you better...

unborn jewel
#

I started java 3 days ago

graceful vigil
#

oh boy

tiny pebble
#

When I started, which wasn't all that long ago, I gave up on projects too.

All it did was make the process of learning more grueling. I tried to find projects that were easy at first, and then build up from there. Working with others is also really helpful, and this Discord is a great community to get help. Just specify that you're new and they won't treat you like garbage ๐Ÿ˜›

unborn jewel
#

I don't even understand 99% what I was doing

tough kraken
#

i was at the exact situation like you

gave up after a week, didnt got anything.

after about a month i tried it again, and stayed on it. now i can code much more than on beginning

graceful vigil
#

You should probably learn the basics of java before starting on plugins

unborn jewel
#

problem is i can't learn by my self

tough kraken
#

i talked with someone here, coding about 10 years, still learning stuff

you're never out of learning-stuff

graceful vigil
#

youtube and google

tough kraken
#

wait a moment

unborn jewel
#

no but...

#

I need to learn 1 on 1

tough kraken
#

then search for someone who helps you

#

maybe here is someone

unborn jewel
#

if I don't then I won't remember anything

tough kraken
#

do it just a few times

#

since you know it in your head

#

till

#

since

#

idk

unborn jewel
#

trust me I tried

tough kraken
#

about 3 days? wow

unborn jewel
#

no

#

Ive tried before

tough kraken
#

you dont learn coding in a week

graceful vigil
#

learning is a process

#

and definitely not a short one

tiny pebble
#

i've been learning for about 3-4 months and i'm still pretty bad at coding

unborn jewel
#

i tried for a week

graceful vigil
#

It takes way more than a week to learn

tough kraken
#

Tanku you have a koala as picture
dont talk shit ๐Ÿ˜›

unborn jewel
#

month*

#

i tried doing it for a month learning online

tiny pebble
#

had a whole class look like:

if() {
  if() {
    if() {
      if() {
          .. and so on
    } else {
  } else {
 } else {
}
unborn jewel
#

and i learned nothing from it

tiny pebble
#

im not talking shit? im talking shit about myself lmfao

tough kraken
#

tanku i could show you i am whacker than you

graceful vigil
#

if if if if

tiny pebble
#

yes it was literally if else statements within each other

tough kraken
#

?paste

worldly heathBOT
tiny pebble
#

man idk if we wanna go down the path of insulting ourselves lmfao

tough kraken
graceful vigil
#

ever heard of switch statements

tough kraken
#

please

#

dont try it

#

yeah i did, but i dont get them...

tiny pebble
#

oh boy

tough kraken
#

thats where i am dumb

unborn jewel
#

Where did yall learn

tiny pebble
#

seems like something i would do tho tbh

graceful vigil
#

google, videos, documentation

#

A lot of people learn by dissecting open source projects

tiny pebble
tough kraken
#

almost everything from youtube lmao

tiny pebble
#

youtube too

tough kraken
#

german tutorials

#

traaaash

#

and i am stuck at them

unborn jewel
#

tbh

#

Idk what to do

tough kraken
#

well tanku lets hope my config works, if not...

#

IT WORKS YAAA

#

10 Hours just changing strings...

unborn jewel
#

nice

#

VNGC how long have you been coding java

tough kraken
#

uhmmm idk

#

about a half year maybe? then i started spigot

#

now i am so good, i coded a plugin that communicates with my discord server

#

and if i can do that, you can too

#

but you need time

#

thats all

tiny pebble
#

thats impressive

keen compass
#

Java is designed to not be complicated

#

really the whole point of Higher abstracted languages

tiny pebble
#

all i've done is code a new permissions system, highly configurable and (hopefully) user-friendly

although now im screwing with nms

quick arch
#

Java is designed to not be complicated
and people are still struggling with it ๐Ÿค”

keen compass
#

you will struggle with anything if you don't bother to learn the basics

#

can't learn advanced stuff without them

quick arch
#

A lot don't bother to read the javadocs ._.

tough kraken
#

all i've done is code a new permissions system, highly configurable and (hopefully) user-friendly

although now im screwing with nms
@tiny pebble NMS...i would really like to make a pvp bot... but i never will touch nms

tiny pebble
#

im trying to make a mini-game involving player entities but holy shit

#

its so whack

marsh hawk
#

can Player#setResourcePack take a local file location or only takes a website link?

tough kraken
#

i feel you

keen compass
#

just make empty player objects ๐Ÿ˜›

#

put random ids for them ๐Ÿ˜‰

tiny pebble
#

i've made it so there is a player entity that can be damaged and just... chills there. exists. thats it. cant get them to move.

tough kraken
#

website link, or i think it can use a server-file

tiny pebble
#

well you see frostalf

keen compass
#

you don't need game profiles if the player isn't real you know ๐Ÿ˜›

marsh hawk
#

oh great how would i reference the server file one though

#

just get the default directory or what?

tiny pebble
#

i want them to basically work just like creatures, I want them to have the ability to use pathfinders

#

but i can't do that since they don't extend EntityCreature

tough kraken
#

well place the pack somewhere, and load it from its placed path i think

#

idk how Server-resourcepacks works

keen compass
#

create a custom Player class that extends that @tiny pebble

tiny pebble
#

hmm

keen compass
#

so implement Player extend Creature ๐Ÿ˜‰

quick arch
#

Couldn't you just... y'know, spawn a Zombie and Disguise them as a Player?

#

That's a Zombie disguised as a Player

#

Shows attack animation and everything

tiny pebble
#

yeah i was thinking about doing something like that as well

#

but how do i disguise them lmfao

quick arch
#

Packets

quartz trench
#

libs disguise api

quick arch
#

or use a disguise api ^

quartz trench
#

if u use an api use libs

tough kraken
#

guys
i have a hashmap with a player, and Concrete as value
every player has another color in the map.

how can i now check, if a player stands on a concrete-line, that is not linked with himself?

keen compass
#

concrete line?

tough kraken
#

wait

#

i want to kill the player, if he stands on a line of another player, or his own line

tiny pebble
#

ima try to do it with packets

keen compass
#

use the playermoveevent to get the block below the coords they are moving to

tough kraken
#

yeah i know thats not the problem

#

then the player cannot stand on ANY concrete anymore

keen compass
#

stuff a hashmap in your hashmap. First one associates concrete to locations, second hashmap associates the players with the hashmap of concrete

tough kraken
#

ehmm

keen compass
#

so the Value of the hashmap for players is UUID of the player for the key or name, Value is HashMap<ConcreteMaterial, Location>

#

think I had that other one backwards lol

quick arch
keen compass
#

should be HashMap<Location, ConcreteMaterial>

quick arch
#

FakePlayer(player).build()

tough kraken
#

well i just disable concrete...is easier

keen compass
#

so the second hasmap has a key of location and associated with it is the concrete block/material

quick arch
#

You'll have to edit it to show it for other people

tough kraken
#

and concrete isnt a block like dirt, where you stands-on so often

tiny pebble
#

oh sweet, thank you so much!

quick arch
#

๐Ÿ‘

keen compass
#

not sure what that has to do with tracking it to know if a player stands on another players line of concrete @tough kraken

tough kraken
#

i think i cant follow you

#

well wait... on start, every player gets linked with an sort of concrete... cant i add them to a simple ArrayList

#

and then just check if the block , the player stands on is in the list

#

would be easier

tiny pebble
#

@quick arch
net.prosavage.yarpg.utils.packets.wrapper
Where does this part exactly come from ๐Ÿค”
I know it isn't directly from ProtocolLib but if it is some sort of wrapper for it I dunno where to look lol

quick arch
#

oh, it's from my plugin

tiny pebble
#

ohhhh i see

quick arch
#

you can change it to the PacketWrapper's imports if you want

tiny pebble
#

Alright haha, sorry didn't realize

quick arch
tiny pebble
#

thanks

quick arch
#

Probably should just shade in the classes one by one (like I did)

#

cause no one's going to fully use the PacketWrapper

quartz trench
#

or you could shade with maven and turn minimizing on

#

in maven-shade-plugin configuration <minimizeJar>true</minimizeJar>

#

if you only use one wrapper it will just shade that one

grim halo
#

Will this recursively search for classes that my used classes depend on?

fleet crane
#

Ye

grim halo
#

Ah nice. I was just searching for something like this.

graceful vigil
#

What's a good introduction to maven using Eclipse? I normally just export, but everyone says maven is better

balmy sentinel
#

SQL question, if I use ResultSet result = statement.executeQuery() followed by if(result.next()) that'll get the first occurrence correct?

grim halo
#

cant you just use SELECT TOP 1 FROM <DATABASE>?

balmy sentinel
#

@grim halo never knew about TOP lol, but from what I just read it should work! thanks

unborn jewel
#

how is this d ```java
char c = '1' + '3';
System.out.println(c);

keen compass
#

@tough kraken yes you can do it that way if you want, just the hashmap method allows for faster comparison/lookup

grim halo
#
49
51
100 as char: d
marsh hawk
#

char indexes dont start at 0 for a

keen compass
#

if you are wanting the numbers for characters you might want to use codePointOf() instead

vapid zodiac
#

ok so i'm making a vanish plugin and the bit that hides the player is a method in the main class. since you can't use static how would i use the method in a class other than my main.

public void showPlayer(Player player){

        //Loops through all online players, unvanishng the player.
        for(Player people : Bukkit.getOnlinePlayers()) {
            people.showPlayer(this, player);
        }
    }
keen compass
#

pass a reference of your plugin to the other class

#

so that the other class can get the methods from the main class

vapid zodiac
#

how do i do that

grim halo
#

@vapid zodiac Dependency injection or Singleton design

vapid zodiac
#

uhh what

#

im new to java

grim halo
#

Pass a reference of your main class instance to your target class that contains showPlayer

#

Oh i see.

vapid zodiac
#

ok

#

but how

keen compass
#
public class Main {

public void onEnable() {
new Something(this);
}
public void doSomething(){}

}

public class Something {
private Main plugin;

public Something(Main plugin) {
this.plugin = plugin;
plugin.doSomething();
}

}
grim halo
#

I think you should at least learn the basics before you get into Spigot programing but ill show you an example.

keen compass
#

I use main as an example, please don't actually use it for your class names

#

is my example not good enough @grim halo ? lol

grim halo
#

Oh didnt see it...

keen compass
#

well now there is two examples

#

that should be plenty ๐Ÿ˜›

grim halo
#

If you have no idea whats all this you need to get the absolute basics first.

vapid zodiac
#

for the

Vanish someInstance = new Vanish(this);

it says it expects 0 arguments in the arguments for new Vanish()

grim halo
#

Then create a constructor that accepts an instance of your core class

vapid zodiac
#

whats that

grim halo
#

Pls... Only the basics of Java. You wont get anything done. Learn the basics and the rest comes naturally.

vapid zodiac
#

ok

grim halo
#

Its not that much. One week and you can switch to spigot and improve there.

vapid zodiac
#

hi

grim halo
#

hi...

vapid zodiac
#

ok

#

that was my friend

grim halo
#

sure...

unborn jewel
#

do you guys know ifits %player-rank%

#

with vault

#

to get he users rank

woeful gorge
#

Anyone knows here if the plugin ClearLagg should clear hoppers or pistons (placed not dropped) because in my server that keeps happening

pale crow
#

yes it does, that's why it's a shitty plugin

#

it also gets rid of tamed npcs lol

#

use a stacker, not a clear lag plugin

woeful gorge
#

Gotcha. Will test that then

#

Any recommendations?

woeful gorge
#

Thank you!

wanton delta
#

%EF%B8%8F

pale crow
#

Ok

wanton delta
#

that apparently formats to the lightning bolt

#

i find that interesting

solid canopy
#

Hi

wanton delta
#

hi

solid canopy
#
    public void onBlockBreak(BlockBreakEvent event) {
        int percent = 99;
        double calcPercent = percent / 100;
        Block b = (Block) event.getBlock();
        Player p = (Player) event.getPlayer();
        Material m = b.getType();
        Location centerOfBlock = b.getLocation().add(0.5, 0.5, 0.5);

        if (m == Material.MOB_SPAWNER) {
            ItemStack itemPickaxe = p.getItemInHand();

            if (itemPickaxe.getType().toString().toLowerCase().contains("pickaxe")) {

                if (itemPickaxe.containsEnchantment(Enchantment.SILK_TOUCH)) {
                    if (Math.random() <= 0.99) {

                        final EntityType type = ((CreatureSpawner) b.getState()).getSpawnedType();
                        b.getWorld().dropItemNaturally(centerOfBlock,
                                (ItemStack) b.getWorld().dropItemNaturally(centerOfBlock,
                                        new ItemStack(Material.MOB_SPAWNER, 1, type.getTypeId())));
                    }
                }
            }
        } else {
            p.sendMessage("Lol chelou");
        }
        return;
    }
```
#

I want to get the spawner that the player break

#

But actually i have everytime a normal pig spawner ๐Ÿ˜ฆ

wanton delta
#

what version is this

solid canopy
#

1.7.10

wanton delta
#

well

solid canopy
#

"Get the fuckout your in 1.7"

#

x) Hahah i joke :p

woeful gorge
#

I hope the plugin does not stack villagers tho

wanton delta
#

well im not too sure but i can help debug this a bit

#

try to give the player new ItemStack(Material.MOB_SPAWNER, 1, EntityType.CREEPER.getTypeId());

#

and see if that gives a creeper spawner

#

actually wait hmm

solid canopy
#

hmm

wanton delta
#

why do you have two nested dropItemNaturally

#

that doesnt make much sense

#
                                (ItemStack) b.getWorld().dropItemNaturally(centerOfBlock,
                                        new ItemStack(Material.MOB_SPAWNER, 1, type.getTypeId())));```
#

instead of b.getWorld().dropItemNaturally(centerOfBlock,new ItemStack(Material.MOB_SPAWNER, 1, type.getTypeId()));

solid canopy
#

yeah true x)

#

But it's actually dropping well

#

But your right

#

haha

wanton delta
#

not even sure why it lets you cast Item to ItemStack

solid canopy
#

Oh wait

#

It actually woerk

#

I'm juste idiot

#

:p

#

x)

wanton delta
#

...ok

solid canopy
#

ITS WORKING

#

YESS โค๏ธ

#

Than,ks a lot bro

#

U da best

unborn jewel
#

does anyone here made a scoreboard and released it online

balmy sentinel
unborn jewel
#

the problem is i don't know what to add to mym ain

#

main*

balmy sentinel
#

I suggest you read the tutorial first. It goes over how to set everything up besides updating it with a scheduler.

graceful vigil
#

How do I build/export a project in IntelliJ (i'm using maven)?

grim halo
graceful vigil
#

yessir

unborn jewel
#

Frog

balmy sentinel
#

File > Project Structure > Artifacts @graceful vigil

unborn jewel
#

how come im getting board cannot be resolved

grim halo
#

Lifecycle -> install is the simplest way.

unborn jewel
#

at Team onlineCounter = board.registerNewTeam("onlineCounter");

grim halo
#

Just doubleclick install. If you want to clean before compiling: clean -> install

graceful vigil
#

wait

balmy sentinel
#

@unborn jewel copy and paste your code into this pastebin

#

?paste

worldly heathBOT
unborn jewel
graceful vigil
#

I don't have the lifecycle option

balmy sentinel
#

@unborn jewel I meant all of your code. If that is truly all you have you never created a scoreboard.

grim halo
unborn jewel
grim halo
graceful vigil
#

I got it

#

Thanks for the help :)

grim halo
#

K

#

You can just use the hammer if you got a default configuration.

balmy sentinel
#

@unborn jewel Please read the tutorial fully... Team onlineCounter needs to be within your setScoreboard method otherwise the plugin has no idea what "board" is. You also never called the setScoreboard method and/or even assigned it to a player.

unborn jewel
#

oh sorry

balmy sentinel
#

My recommendation is add the scoreboard onJoin using PlayerJoinEvent and then learn about schedulers to figure out how to constantly update it every x seconds.

unborn jewel
#

in the thing though

#

doesn't that update it?

balmy sentinel
#

I mean it will update the first time you send the player the scoreboard. Create a new method to update the scoreboard I've seen a lot of tutorials suggest to just call the setScoreboard method over again and, in my opinion, that is terrible practice.

unborn jewel
#

how would i add it on join

#

like this

#
    @EventHandler
    public void onJoin(PlayerJoinEvent event) {
        setScoreboard(event.getPlayer());
    }
```` ?
balmy sentinel
#

It depends what is in your setScoreboard and start events

wet bronze
#

Guys

balmy sentinel
#

you also have to make sure you register that event

wet bronze
#

Is there a command to check a world for a specific block?

unborn jewel
#

Frog wym

balmy sentinel
#

send a paste of your updated setScoreboard method

unborn jewel
balmy sentinel
#

I read over it quickly, but I think it should work your only problem is a) you never registered your event in onEnable and you never called updateScoreboard so therefore your scoreboard will never update.

chrome lark
#

iirc, stuff like that inside of JoinEvent is basically asking for oddball issues

wanton delta
#

playerspawnlocationevent

#

Or run a few ticks later

unborn jewel
#

ok

grim halo
#

@wet bronze What do you mean check a world for a specific block? You mean a location?

unborn jewel
#

so how should i add it to onEnable

#

wait

#

i got an idea

#
    @Override
    public void onEnable() {
        this.getServer().getPluginManager().registerEvents(this, this);
        
        if(Bukkit.getOnlinePlayers().isEmpty())
            for (Player online : Bukkit.getOnlinePlayers()) {
                setScoreboard(online);
            }
    }
#

like that?

balmy sentinel
#

don't set the scoreboard onEnable

grim halo
#

Also you miss a '!'

unborn jewel
#

oh

#

i don't need a !

balmy sentinel
#

yes you do...

grim halo
#

First of all you dont need a condition check there

balmy sentinel
#

@unborn jewel do you know any java?

unborn jewel
#

if I needed a ! i would of put it but i don't

grim halo
#

Then you can delete everything but the first line because its obsolete.

#

Your logic:
If no player is online -> add scoreboard to every player online

unborn jewel
#

yea

#

scoreboard isn't even showing up\

balmy sentinel
#

...

#

it won't show up because your code right now is doing what 7smile7 just said! If no players are online, give all players online a scoreboard

unborn jewel
#

ok so i will remove the code inside onenabke

#

now what>

brave vector
balmy sentinel
unborn jewel
#

im on 1.8

grim halo
#

Did you import craftbukkit and check if the method exists?

brave vector
fleet crane
#

if it was sent when you said its already been looked at

#

what was the subject or email

#

I don't do DMs

#

or the subject line

torn robin
#

uh

fleet crane
#

Im sure you can look at your sent box

#

what was the name

grim halo
#

@brave vector did you make sure to run the server on 1.16.1?

brave vector
#

did 1.16.1 change CraftItemStack class?

fleet crane
#

if youre not comfortable discussing it here then just resend the email

#

because there are no unhandled emails as far back as you suggest you sent it

#

yeah that was replied to

wet bronze
#

@wet bronze What do you mean check a world for a specific block? You mean a location?
@grim halo Yeah I want to check my entire map for chests and their locations.

fleet crane
#

2 July

brave vector
grim halo
#

@wet bronze You cant do that with a command. But you can write code that does it for you.

fleet crane
#

idk

wet bronze
#

Uhh I've never coded before.

fleet crane
#

its email

#

not that complicated

#

I've resent the same reply

grim halo
#

@wet bronze What version are you on?

wet bronze
#

1.16.1

unborn jewel
#

[06:04:47 WARN]: [HubScoreBoard] Task #73 for HubScoreBoard vBETA generated an exception
java.lang.NullPointerException
at me.jtx.hubscoreboard.Main$1.run(Main.java:69) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) ~[patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

balmy sentinel
wet bronze
#

No the point is that I need to find chests throughout every single block on my map.

#

Underground and in the sky

#

And it's a 40,000 x 20,000 map

grim halo
#

Then ill write you a quick command that does it for you.
Ill write the locations in a txt file.
Be aware that depending on your map size this could take a while.

#

Then it will take some days.

wet bronze
#

Christ

torn robin
#

why do you need to know all the chest locations

fleet crane
#

it'll be handled in order with the rest of the emails now

sage summit
balmy sentinel
#

Did you try to stop the server and the start it back up? Thatโ€™s my only guess. Instead of /reload

sage summit
#

thats what breaks it

rotund orbit
#

Using the PlayerInteractEvent, how do I replace what the player has in their hand with another ItemStack?

torn robin
#

Player#getInventory#setItemInMainHand

#

you might be able to alternatively use PlayerInteractEvent#getItem#setType

#

getHand tells you the hand if you want to allow offhand interactions

rotund orbit
#

thank you ๐Ÿ˜„

sage summit
torn robin
#

it's null

#

you're getting a world from a string

#

that world isn't loaded

#

check that the world exists

#

before using it to teleport

sage summit
#

how do i check if it exists?

torn robin
#

learn java

brave vector
#

World world = Bukkit.getWorld(name);

pastel condor
#

if (world != null) {do stuff}

brave vector
#

^

sage summit
#

ill try it now

#

it no longer gives an error but it does not teleport you there, do i need to load the world of something?

#

@brave vector

brave vector
sage summit
#

my new code?

brave vector
#

yes

sage summit
brave vector
#

repalce

                        Location lock = new Location(Bukkit.getWorld(visituuid), 0.5, 95, 0.5);
                        player.teleport(lock);```
#

to

World world = WorldCreator.name(visituuid).createWorld();
Location lock = new Location(world, 0.5, 95, 0.5);
player.teleport(lock);```
sage summit
#

ok ill try that

#

It works now, thanks so much!!!!

brave vector
#

Your welcome

cold wharf
#

Guys, in my server players can't pickup items sometimes. It doesn't work for me too if I am in survival mode

#

It fixes if we open any chest or any other GUI

brave vector
#

List plugins?

cold wharf
#

oki wait a sec

brave vector
#

May be CMI

sage summit
#

Im trying to check if the players uuid is in the config but it keeps saying the uuid is not in the config but when i check it, its in the config
Code inside the command

tring visituuid = Bukkit.getOfflinePlayer(args[0]).getUniqueId().toString();
                if (getConfig().getStringList("Players").contains(visituuid)) {
                    World world = Bukkit.getWorld(visituuid);
                    if (world != null) {
                        player.sendMessage("Teleporting you to " + args[0] + "'s cell!");
                        WorldCreator.name(visituuid).createWorld();
                        Location lock = new Location(Bukkit.getWorld(visituuid), 0.5, 95, 0.5);
                        player.teleport(lock);
                    }
                }
brave vector
#

Did you config contains it?

sage summit
#

its in the config, i checked

brave vector
#

if you add it manually you should reload first

cold wharf
#

May be CMI
@brave vector I had CMI from starting and it didn't affect anything

sage summit
#

its added buy this code

String uuid = player.getUniqueId().toString();
getConfig().createSection("Players." + uuid + ".size");
getConfig().createSection("Players." + uuid + ".perms");
getConfig().set("Players." + uuid + ".size", "1");
saveConfig();
cold wharf
#

Also this problem was after I changed my server version from 1.15.2 to 1.16.1

brave vector
#

It must be configuration section

#

not getStringList()

sage summit
#

ok

brave vector
#

try (getConfig().getConfigurationSection("Players").getKeys(false))

#

Also this problem was after I changed my server version from 1.15.2 to 1.16.1
@cold wharf --forceUpdates?

cold wharf
#

No?

#

I changed the jar

brave vector
#

do you have any backup

sage summit
#

gtg ill try tomorrow

cold wharf
#

Infact I started from scratch

brave vector
#

removed everything?

cold wharf
#

yes

brave vector
#

try to make a clear server and use all plugin above

cold wharf
#

try to make a clear server and use all plugin above
@brave vector This all plugins are from my 1.15.2 server

#

They were not causing any problems there

brave vector
#

did you try to remove all data folders?

cold wharf
#

did you try to remove all data folders?
@brave vector Yes I just shifted the jars and not the data

brave vector
#

may be it doesn't compatible with 1.16.1?

#

Try to upgrade it to the latest version

cold wharf
#

Try to upgrade it to the latest version
@brave vector Did already

#

I thought the same before

#

So I upgraded all of them

#

But it was still not fixed

marsh hawk
#

Redis pubsub is one way right? I can't communicate back and forth?

rotund orbit
#

My attempt to parse a date is failing. Could someone help me understand why?

#

Here is the print statement and code
[15-07-2020 01:38:47] Something went wrong parsing timestamp ?f07/15/2020 08:00:00 with pattern MM/dd/yyyy HH:MM:SS

brave vector
#

But it was still not fixed
Create your server again from scratch

#

May be this is the last choice

#

@rotund orbit try DateTimeFormatter

rotund orbit
#

Does that also require a pattern?

brave vector
#

nah sorry SimpleDateFormat is better

rotund orbit
#

I'll try cutting off the first two characters of timestamp through the return statement of getTimeFormat()

#

IT WORKED!

#

That was the last thing I needed to know my Food Spoilage system would work. Thank you @brave vector!

brave vector
#

np

keen compass
#
try {
    DateTimeFormatter formatter =
                      DateTimeFormatter.ofPattern("MMM d yyyy");
    LocalDate date = LocalDate.parse(input, formatter);
    System.out.printf("%s%n", date);
}
catch (DateTimeParseException exc) {
    System.out.printf("%s is not parsable!%n", input);
    throw exc;      // Rethrow the exception.
}```
#

that is the correct way to do it

#

and if you want time zones

#
ZoneId leavingZone = ...;
ZonedDateTime departure = ...;

try {
    DateTimeFormatter format = DateTimeFormatter.ofPattern("MMM d yyyy  hh:mm a");
    String out = departure.format(format);
    System.out.printf("LEAVING:  %s (%s)%n", out, leavingZone);
}
catch (DateTimeException exc) {
    System.out.printf("%s can't be formatted!%n", departure);
    throw exc;
}```
still raptor
#

Can someone tell me what I've done wrong here? I'm trying to get a Player object from a String

keen compass
#

your offlineplayers loop is unnecessary

#

you can instead just specifically get a specific offline player

still raptor
#

but technically it should still work right?

keen compass
#

technically it should, but that is assuming they are in the list

#

I would recommend maybe not using the static method though

still raptor
#

well it's not and the player I'm trying to get has definitely joined the server

keen compass
#

which could probably be throwing it off

#

try passing a reference to your main class and instead do plugin.getServer().getOfflinePlayers();

still raptor
#

ok I'll try that

next brook
#

And Bukkit.getOfflinePlayer(UUID)

keen compass
#

yeah that is the other thing

#

when getting offline players should use the UUID's instead

#

player data files are saved with the UUID

cold wharf
#

Create your server again from scratch
@brave vector As I said I started from scratch

keen compass
#

but that UUID fetcher class isn't necessary though

next brook
#

True, but it works lol

brave vector
#

@brave vector As I said I started from scratch
ik but i can't do anything else for you, sorry

cold wharf
#

It's okay thank you for trying

still raptor
#

I did plugin.getServer() and it's still not working, apparently my OfflinePlayers[] is empty because it nullpointered

rotund orbit
#

What's the difference between Material.POTATO and Material.POTATOES?

wraith thicket
#

You can parse usercache.json

#

@rotund orbit The former is the item (which you can eat and cook) and the latter is the block (which grows)

rotund orbit
#

ah thank you

#

What is the event for when a player picks up an item?

#

ah PlayerPickupItemEvent should've googled my bad looks like its deprecated

#

Is there another event I can use besides PlayerPickupItemEvent?

frigid ember
#

can i ask for something not related to spigot?

rotund orbit
#

gonna try to use ItemSpawnEvent instead

keen compass
#

EntityPickupItemEvent
@rotund orbit

rotund orbit
#

ahhhh thank you

keen compass
#

if you only want the player just need to do

if(event.getEntity() instanceOf Player)```
#

for your check

rotund orbit
#

I want to get and set the item

#

Not sure I can use EntityPickupItemEvent for that but I believe I can use ItemSpawnEvent

keen compass
#

yes you can

#

event has getItem() ๐Ÿ˜‰

rotund orbit
#

it worked! ๐Ÿ˜„

#

I don't think it had setItem()

#

I appreciate the help though thank you @keen compass

keen compass
#

even if it doesn't have it, you could still do it

rotund orbit
#

oh wait maybe it should be mm:ss that was not it

rotund orbit
#

I managed to remove the '?f' and I believe it is working now ๐Ÿ™‚

rotund orbit
#

How do I get and set an item when it gets smelted in a furnace?

#

I think it is the FurnaceBurnEvent, I was using the FurnaceSmeltEvent

#

It looks like I can only get the fuel, not the item being burned...

inland oxide
#

FurnaceSmeltEvent?

#

There is FurnaceSmeltEvent, FurnaceBurnEvent and FurnaceExtractEvent

keen compass
#

Smelt event gives you the item being smelted, burn event gives you the item being used for fuel and extract event gives you the resulting item

rotund orbit
#

Thank you guys ๐Ÿ™‚

#

The smelt event appeared to only let me get the block, not the item.

#

Are items considered blocks when they're in a furnace?

marsh hawk
#

nope

#

They're ItemStacks

mystic yacht
#

Hey

#

Can anyone help me, i have a error in my server, and i dont know a fix

gloomy dew
#

hi

#

Guys

#

I have an question

#
strings:
  already-banned: '&c%player% is already banned!'
  ban-check-message: '&4%player% is banned!%NL%&cBan issued by: &6%banned-by%%NL%&cBan
    length: &6%ban-length% %NL%&cBan reason: &6%reason%'
  ban-exempt: '&c%player% is not bannable!'
  ban-message: '&4You have been banned!%NL% %NL%&cBan issued by: &6%banned-by%%NL%&cBan
    length: &6%ban-length% %NL%&cBan reason: &6%reason%%NL% %NL%&cYou may appeal on
    our site if your ban is permanent.%NL%&bhttp://mywebsite.com/unbans'
  default-perm: '&6Forever'
  default-reason: '&6None'
  expired-ban: Ban expired!
  no-time: '&6None'
  player-not-found: '&cPlayer %player% not found!'
  player-not-banned: '&c%player% is not banned!'
  perm-banned-notif: '&6%player% &cwas permanently banned by &6%banned-by%&c.%NL%&cReason:
    &6%reason%'
  temp-banned-notif: '&6%player% &cwas temporarily banned by &6%banned-by%&c for &6%ban-length%&c.%NL%&cReason:
    &6%reason%'
  unban-notif: '&6%player% &cwas unbanned by &6%unbanned-by%&c!'```
#

How can i do that so if player is op can't be banned ?

inland oxide
#

well, it's probably in another section of the config.yml file, not a strings section of a config.yml

brave vector
#

player.isOp()?

cold wharf
grim halo
#

Looks like some protocolAPI error.

tacit trellis
cold wharf
#

Looks like some protocolAPI error.
@grim halo
I have ProtocolLib

#

Is it because of that?

grim halo
#

@tacit trellis What exactly are you calling async and what do you want to return/use sync

tacit trellis
#

I want to get the list

grim halo
#

@cold wharf Make sure you have the latest version

#

@tacit trellis So you call this method async?

tacit trellis
#

yes

#

but getNearbyEntites only works sync

#

or i get this Caused by: java.lang.IllegalStateException: Asynchronous getNearbyEntities!

grim halo
#

You need to synchronize with the mainthread. For example with the BukkitScheduler

tacit trellis
#

I tried but I cannot return the list with a scheduler

grim halo
#

You can not call API methods async

lone fog
#

Most API methods*

grim halo
#

Then chain CompletableFuture calls

#

Or write your own Callback

tacit trellis
#

is there not a way to call that method sync?

lone fog
#

Scheduler, as was said

grim halo
#

Show me how you call the method and i might write you an example on how get a usable return value.

tacit trellis
grim halo
#

k?

cold wharf
#

@cold wharf Make sure you have the latest version
@grim halo Latest version of?

silk gulch
#

Hi, when i die i keep getting "You don't have a home bed or a charged respawn anchor, or it was obstructed." but my friends don't get that message when they die, is there a way to fix this?
edit: i dont have a bed or a respawn anchor

formal nimbus
#

....

#

is that a joke lol xD

silk gulch
#

no

#

my minigame involves dying and my chat keeps getting spammed with that message

formal nimbus
#

o

#

ok cause I was wondering how that question was even related to coding lol

silk gulch
#

i think it is a bug because i tried recreating it in a single player world and i couldn't

wooden patrol
#

I have problem with nametagVisibility (its set to Always), the prefixes wont showing up above player heads Im running spigot 1.16.1 connected to bungee anyone know what might cause this?

formal nimbus
#

how tf does this make any sense?

#

o

#

wait I think I just realised the issue -_-

#

yup

#

I'm just a dumb %ยฃWยฃ

frigid ember
opaque swan
#

Hello when i write /hub in chat
say me "You do not have permission to exectue this command!"
Anyone can help me for solve?

visual kiln
#

hi

#

could any1 help me

#

compiling with gradle using eclipse*

bold anchor
#

@frigid ember Just let the server run for a while, it'll clear out and stop appearing.

autumn wigeon
#

can anyone help me download and use bungee cord

frigid ember
#

@frigid ember Just let the server run for a while, it'll clear out and stop appearing.
@bold anchor ohh thanks

autumn wigeon
#

how do i download bungeecord for mc

bold anchor
#

Google it.

autumn wigeon
#

trying

bold anchor
#

Use velocity tho, it's the new thing.

autumn wigeon
#

wth is velocity

#

@bold anchor

bold anchor
autumn wigeon
#

ok

visual kiln
#

hi

#

anyone?

autumn wigeon
#

helo

visual kiln
#

can anyone help me?

autumn wigeon
#

with what

visual kiln
#

im tryna compile a git project

bold anchor
#

Eclipse probably has a gradle plugin.

visual kiln
#

but its not showing the build folder

autumn wigeon
#

im trying to download bungeecord

#

but idk how

bold anchor
#

Did you run ./gradlew build ?

autumn wigeon
bold anchor
#

Yes.

visual kiln
#

jantruck im compiling it through eclipse

autumn wigeon
#

idk where to go from there

#

tho

autumn wigeon
#

ty

visual kiln
#

it downloads bungeecords latest version

autumn wigeon
#

im trying to set a server with the main as paper mc

visual kiln
#

main?

autumn wigeon
#

like

visual kiln
#

you mean you want the main server to run paperspigot?

autumn wigeon
#

the hub

visual kiln
#

you want the hub to run paperspigot or what

autumn wigeon
#

the first server

#

???

#

im confused

#

nvm

visual kiln
#

ye i understand but what do you mean by paper

autumn wigeon
#

paper mc is a server

visual kiln
#

server name?

#

ah alr

opaque swan
#

Hello when i write /hub in chat
say me "You do not have permission to exectue this command!"
Anyone can help me for solve?

autumn wigeon
#

wdym

visual kiln
#

rickylachow

#

plugins?

autumn wigeon
#

ye

visual kiln
#

1 sec aura

autumn wigeon
#

ok

visual kiln
#

@opaque swan go into console and do /op <your ign>

opaque swan
#

BungeePlugins?

visual kiln
#

alright aura

bold anchor
#

Just setup the paper server for bungeecoord just like you would for spigot.

visual kiln
#

no i think

#

they mean

#

they wanna name it paper mc

#

your gonna have to play around with bungee yourself for a bit

autumn wigeon
#

nooo dude

#

noooo

visual kiln
#

then what

opaque swan
#

I'm op but say You do not have permission to execute this command

autumn wigeon
visual kiln
#

@opaque swan what plugin do you use for the /hub command

bold anchor
#

SIMP no, Paper is the name of the fork.

visual kiln
#

ah

opaque swan
#

Nothing Simp

visual kiln
#

sorry

#

then

#

how does it run the command

opaque swan
#

.... What?

visual kiln
#

ok so

#

you are running a /hub command

#

you say theres no plugins

#

so im guessing youre using bungeecord?

opaque swan
#

Yes.

golden perch
#

i need help how i can prot my spawn from the players

visual kiln
#

go into the bungee server

#

and op yourself there

#

or is that not how it works lmao

golden perch
#

who have plugin for that

wheat summit
#

@golden perch You can make the spawn protection higher or make eventss that cancel if they take place in certain locations

winged sparrow
#

W o r l d g u a r d

wheat summit
#

^

visual kiln
#

@golden perch spawn protection is a default value?

#

in the server properties?

winged sparrow
#

Worldguard + Worldedit

opaque swan
#

@visual kiln you don't help me

golden perch
#

man worldguard its hard

opaque swan
#

you say me all useless things

visual kiln
#

@opaque swan i cant help you if youre being so vague about your issue

golden perch
#

and its not work

#

when i want allow pvp

#

and go down

winged sparrow
#

What do you mean it's not work

golden perch
#

the pvp not work

winged sparrow
#

Worldguard will fix that

#

get worldguard

golden perch
#

ok i safe the spawn

wheat summit
#

Just a quick question, how would I ckeck if a player is holding an item in therir incventory and clicking on another item with a item?

golden perch
#

and when i jump

winged sparrow
#

what?

golden perch
#

out the spawn

#

i will show you wait

winged sparrow
#

just use worldguard, define spawn region, and apply flags as you see fit

opaque swan
#

When i'm on my servers when i type /hub say i don't have permission for do it
How i can fix this?
This problem came out when i install BungeePerms but i remove it

frigid ember
#

And set spawnProtection to 0 for the love of god....

visual kiln
#

any1 know how to compile in eclipse?

frigid ember
#

@opaque swan there is a plugin in your bungeecord proxy that takes care of the /hub command, you'll need to add the permission for that command into the default group

#

(if you want everyone to use it, that is)

opaque swan
#

Ok thank you

frigid ember
#

hello there

opaque swan
#

Where i can modify it Fefo?

frigid ember
#

In bungeecord's config.yml

#

there's a part that's something like this:

permissions:
  default:
    - ...
    - ...

In that list, you add the perm node for the plugin that lets you use /hub

opaque swan
#

permissions:
default:

  • bungeecord.command.list
    admin:
  • bungeecord.command.server
  • bungeecord.command.alert
  • bungeecord.command.end
  • bungeecord.command.ip
  • bungeecord.command.reload
#
  • bungeecord.command.hub
#

ok?

frigid ember
#

.. no

#

which plugins you have installed in bungeecord?

opaque swan
#

AntiBot
BungeeMotd
BungeeTAB
AuthBungee
FlameCord
SkinsRestorer

#

these

autumn wigeon
#

ok

frigid ember
#

which plugin did you install to use /hub?

opaque swan
#

Nothing i think

sturdy oar
#

FlameCord is a plugin?

opaque swan
#

Yes

sturdy oar
#

Wasn't it a bungeecord fork

frigid ember
#

If you installed none, then it should say "Unknown command. Type "/help" for help."
Unless you installed a plugin for /hub in the spigot/paper servers

opaque swan
#

Mh..

#

For changing server i'm using ServerSelectorX

frigid ember
#

I wouldn't know about that, I have never used that plugin

opaque swan
#

Its bungeeAuth thank you

frigid ember
#

I don't think BA has a /hub command...

frigid ember
#

there is no /hub in that commands list

#

nvm I'm blind

opaque swan
#

In configuration yes

frigid ember
#

there's /lobby lol

#

permissions:
default:

  • bungeecord.command.list
    admin:
  • bungeecord.command.server
  • bungeecord.command.alert
  • bungeecord.command.end
  • bungeecord.command.ip
  • bungeecord.command.reload
    well, in that list, under the default entry add - auth.lobby
subtle blade
#

sounds like an offline server

frigid ember
#

go into the bungee server
and op yourself there
or is that not how it works lmao
@visual kiln no that's not how it works lol

opaque swan
#

Ok thank you

frigid ember
#

sounds like an offline server
@subtle blade Hypixel is not an offline server and yet staff uses 2fa ๐Ÿคทโ€โ™‚๏ธ

subtle blade
#

Do you expect anybody to be the next Hypixel? Because I most certainly don't

#

99 times out of 100, anybody using an authentication plugin is running an offline server

frigid ember
#

Do you expect anybody to be the next Hypixel?
lol hell no, but there's always that 1 in 100

subtle blade
#

Especially considering that plugin literally has a command to toggle an account between cracked and premium mode

wheat summit
#

Hey! Since when I give an enchanted book a cvustom enchantment, for some reason it doesn't work when you try combining it in an anvil, so I 've decided to use a separate method where I check if the book with the enchantment was clicked on an item in the inventory though for some reason, itemStack and itemStackSlot are the same, does anyone know how I could get the other item? Here's what I have so far: https://hastebin.com/igisehupuc.cs

frigid ember
#

getCurrentItem is the item you're "pointing" at, the one the cursor is hovering over

#

the one the cursor is currently holding is getCursorItem

wheat summit
#

Ohh ok thanks!

frigid ember
#

np ๐Ÿ‘

keen holly
#

Can someone confirm whether or not this is an issue with the server being able to connect to my MariaDB database?

[09:34:07 ERROR] [LiteBans]: Failed to connect to [jdbc:mariadb://localhost:3306/litebans;useSSL=false&serverTimezone=UTC] using mariadb driver.
[09:34:07 ERROR] [LiteBans]: Error: Failed to initialize pool: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
[09:34:07 ERROR] [LiteBans]: Cause: Could not connect to address=(host=localhost)(port=3306)(type=master) : Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
[09:34:07 ERROR] [LiteBans]: Cause: Socket fail to connect to host:localhost, port:3306. Connection refused (Connection refused)
[09:34:07 ERROR] [LiteBans]: Cause: Connection refused (Connection refused)
vale slate
#

It is a connection problem yes

pulsar cairn
#

It's happening to all plugins that have a database to connect to or sockets to connect to. We tried disabling firewall and nothing changed

autumn wigeon
#

hello

vale slate
#

It's happening to all plugins that have a database to connect to or sockets to connect to. We tried disabling firewall and nothing changed
Are you on windows or Linux?

pulsar cairn
#

Linux

vale slate
#

is your MySql Service started?

brave vector
#

use 127.0.0.1

#

dont use localhost

keen holly
#

ok

wheat mirage
#

Anyone know where I can get in touch with protocollib devs? their maven builds are broke

pulsar cairn
#

It's started yeah^^

frigid ember
#

?paste

#

=paste

brave vector
#

!paste

worldly heathBOT
frigid ember
#

ty xd

#

The spigot and worldedit one work but the worldguard one doesn't?

keen holly
#

is your MySql Service started?
Yeah, it is

brave vector
#

just use 127.0.0.1

keen holly
#

We'll try that

brave vector
#

i got the same problem with Skin Restorer

#

and i solved it with 127.0.0.1

#

Because localhost is Unix Socket

frigid ember
#

why use skin restorer? :/

#

you only have to use it when you set up your bungeecord like shit

pulsar cairn
#

It's doing the problem on sockets using specific ips too, not just localhost

frigid ember
#

but you can fix it with setting it up correctly

#

:/

brave vector
#

idk just use 127.0.0.1:3306

#

btw I changed to MongoDB

keen holly
#
[10:07:46 ERROR] [LiteBans]: Failed to connect to [jdbc:mariadb://127.0.0.1:3306/litebans;useSSL=false&serverTimezone=UTC] using mariadb driver.
[10:07:46 ERROR] [LiteBans]: Error: Failed to initialize pool: Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Socket fail to connect to host:127.0.0.1, port:3306. Connection refused (Connection refused)
[10:07:46 ERROR] [LiteBans]: Cause: Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Socket fail to connect to host:127.0.0.1, port:3306. Connection refused (Connection refused)
[10:07:46 ERROR] [LiteBans]: Cause: Socket fail to connect to host:127.0.0.1, port:3306. Connection refused (Connection refused)
[10:07:46 ERROR] [LiteBans]: Cause: Connection refused (Connection refused)```
#

same issue

wooden patrol
#

hey guys Im running 1.16.1 spigot server connected to bungee and I can't see the nametags I tried to "decompile" scoreboard.dat and here is the result https://prnt.sc/tice2l

brave vector
#

this is database issue i suppose

delicate nymph
#

I am waiting like half an hour on that spigot irc chat thing. No-one answers there. Atleast here is someone willing to help with my issue? I got a spigot 1.16 server, with bungeecord enabled. When i click to join the server i get kicked with reason outdated version but bungee's version is the latest. + On console i only see an initial handler has pinged spamming and then the server auto restarts.

brave vector
frigid ember
#

?? :p

#

Is teleporting thread safe?

brave vector
#

use 7.0.4-SNAPSHOT

#

Is teleporting thread safe?
No but there is a library can do this

frigid ember
#

Lets say I am listening to packets and already am in an async context, do I need to switch threads for this?

#

Do I need to schedule it sync

#

Like in an anticheat to lagback

delicate nymph
#

JustMango did u told about the snapshot to me?

brave vector
#

no i told Lazinq

delicate nymph
#

let me try

brave vector
frigid ember
#

7.0.0 won't work either

#

i get kicked with reason outdated version
@delicate nymph maybe try joining the server with the proper client version? unless you're using ViaVersions or ProtocolSupport, you must join with the client version that matches the server

brave vector
#

remove .m2 cache

frigid ember
#

whats .m2 cache?

#

you can change this to 127.0.0.1
@brave vector that would just break it unless the server is hosted locally....

#

N

brave vector
#

may be the connection to the local server got broken?

subtle blade
#

.m2 is your local Maven repository

brave vector
#

i have tried the public ip and the firewall block it :|

subtle blade
#

All dependencies pulled from Maven or files that have been locally installed are thrown into your .m2 directory so Maven doesn't have to fetch them every single time

frigid ember
#

I can send my whole POM.xml

brave vector
#

C:\Users<User>.m2\repository

glacial umbra
#

Greetings. I have a question that's not directly related to plugins- Were the spigot forums created from scratch, or was there any kind of page that helped in the creation of the forums?

brave vector
#

or ~/.m2/repository

delicate nymph
#

I am not using the ViaVersions nor protocol, server on 1.16, client also on 1.16 + as i said on console the only thing i see is this: https://pastebin.com/5h7kUP52 and the initial handler keeps spamming. No worlds are loading, nothing. (When i disable bungeecord i join the server with no probs). I believe its or jar issue or config side.

ripe token
#

what the code for kb

#

to see how many players online

#

%server_online% not work

brave vector
#

placeholderapi

ripe token
#

?

brave vector
#

just read the docs

frigid ember
#

or on featherboard MvDwPlaceholderAPI

brave vector
#

kb

frigid ember
#

oof

brave vector
#

= kiteboard i suppose

delicate nymph
#

JustMango i did change the ip as you said, but i got the fallback server error, and the default fall back server is true as u saw

#

I changed it back to false just in case but same fallback error

brave vector
#

can't find default fallback server?

delicate nymph
#

yes

brave vector
#

u must change the ip in backend server too

delicate nymph
#

but the 127.0.0 isnt my server ip, should i change to that too ?

#

put the 127.0.0 on the fallback

brave vector
#

127.0.0.1 point to the local machine

#

i usually use that to protect my backend server because i disable the online-mode

subtle blade
#

That's your first mistake

brave vector
#

Maybe

#

But it worked and i don't care really about it

delicate nymph
#

again the fallback error

brave vector
#

i can't see the player connect log

#

only pinged

delicate nymph
#

Because i didnt try to connect this time

#

but i get this

#

[KotsosTrela] disconnected with: Could not connect to a default or fallback server, please try again later: io.netty.channel.AbstractChannel$AnnotatedConnectException

frigid ember
#

The spigot server being on 1.16.1 and your client too? ๐Ÿค” that's odd

brave vector
#

try enable ip_forward

delicate nymph
#

Yes version is 1.16. When i disable bungee i can connect normally

spare wolf
#

Plugins are made with JavaScript right?

delicate nymph
#

i try that now mango

frigid ember
#

No, they are made on Java

spare wolf
#

so that I learn the right thing

#

I am doing a JavaScript course

#

what

#

NooO

#

Whats the difference

frigid ember
#

Java and JavaScript are two completely different things

spare wolf
#

ohw

brave vector
#

use SpigotJS

#

if you are wring plugin on js

spare wolf
#

?

#

Where is JavaScript for?

#

and Java

#

what's the diffenece

brave vector
#

Bukkit based on Java

delicate nymph
#

With ipforward i get again the fallback error

brave vector
#

It isn't js

#

is ecmascript

frigid ember
#

@delicate nymph leave ip_forward set to true and change the IP back to 5.whatever

brave vector
#

but everyone like to call it js

spare wolf
#

who knows a good java course

brave vector
#

google?

spare wolf
#

I did

#

but wich one to click

#

There is a 9hour long video

#

and a 14minute video

brave vector
#

everyone asking about course but they have never taken it seriously

spare wolf
#

and a lotta sites

#

I will

#

I want to be a programmer

#

as job

#

I am 13 now

#

I want to learn it

brave vector
#

I'm 14

frigid ember
#

you guys make me feel old .-.

brave vector
#

almost everyone in here are older than 15

spare wolf
#

but wich one is the best

brave vector
#

learn basic then learn advance

mellow wave
spare wolf
#

do you know java well @brave vector ?