#help-development

1 messages Β· Page 1431 of 1

sleek pond
#

you don't unload the main world

#

simple as that

gaunt eagle
#

look here

eternal oxide
#

There is nothing you can do. The main world can not be unloaded

exotic garnet
#

Use a InventoryOpenEvent?

gaunt eagle
neat wyvern
eternal oxide
#

yes

neat wyvern
#

Can it be a random seed?

sleek pond
#

yes

eternal oxide
#

lookup createWorld in teh javadocs

neat wyvern
eternal oxide
#

player.teleport

gaunt eagle
#

player.teleport()

kind coral
#

what should i put in my gamemanger?

#

i tought also about a playermanager but idk how that would work

neat wyvern
#

Do i use bukkit.server.createWorld
bukkit.WorldCreator.createWorld
or bukkit.Bukkit.createWorld

exotic garnet
#

How would I go about adding a furnace cook time to an item that doesn't have one

grave sparrow
#

(Bed breaking logic not the actual event listener)

neat wyvern
#

Would this work?

#

File dir = new File("world");
dir.delete();

eternal oxide
#

No

neat wyvern
#

why?

sleek pond
#

world files are locked by the server

eternal oxide
#

Your level of knowledge seems far too low to be dealing with world generation, file locks and unloading

neat wyvern
#

Even if i put it onDisable?

sleek pond
#

yes

neat wyvern
#

damn

#

So there is no way to delete world files when you restart the server other than manually?

sleek pond
#

jesus christ

#

you cannot delete the main world file

#

how many times do we have to tell you

#

it's impossible

eternal oxide
#

You would need to understand Threads, Futures and a whole lot more to handle dynamic world generation and replacement

sleek pond
#

or that

neat wyvern
#

So what do you suggest i learn while im still new to spigot and java?

eternal oxide
#

I'd learn how to make basic plugins

#

literally get a working plugin that loads and runs one command is quite a job for any beginner

fiery inlet
vast plinth
#

using multiverese plugin. how can i make it so that the invitory they have is only for that world and they have a seprat chat only rto that aworld

gaunt eagle
#

i have error for minigame arena teleporting part, but i cant see any misstake. Can anybody help me?

#

Config:

eternal oxide
#

You need multiverse inventories, and your question should be in #help-server

gaunt eagle
#

coords are correct btw

vestal dome
#

wait

#

I'mma wait.

vestal dome
gaunt eagle
fiery inlet
#

is it lowercase teleport

#

isnt it uppercase

gaunt eagle
vestal dome
#

hm

gaunt eagle
#

i really cant see any misstake

#

but the problem is teleporting

#

xD

fiery inlet
#

men

#

i just said

#

uppercase

#

T

#

camelcase

gaunt eagle
#

no of course

#

it has to be lowercase

fiery inlet
#

since when is an id a location

gaunt eagle
#

wut

#

i cant understand you'r meaning

vestal dome
#

the world is null.

#

if you're using multiverse.

#

that explains

gaunt eagle
#

I just changed the coordinates and worlds of the arena and lobby worlds and this problem occurred

vestal dome
#

do you have multiverse?

gaunt eagle
#

I didn't even touch the codes there, I just changed places from config

gaunt eagle
vestal dome
gaunt eagle
#

arena world = lobi
lobby world = lobby

vestal dome
#

then you want to use Bukkit.getWorlds() and look thru them to find the world.

#

since for some reason, multiverse conflicts with bukkit

gaunt eagle
eternal oxide
#

worlds have to be loaded before you can access them

fiery inlet
#

Anyone know how to set a "variable" for a player, like if they press the green team button they're assigned to green team?

gaunt eagle
vestal dome
#

like

#

uhhh

#

1s

#

like this:

#

you can make it what way you want.

#

you just have to well... include the "for" loop to find the world etc etc.

quaint mantle
#

didn't even know you could do it like that.

vestal dome
#

too big brain for u

#

ok I'm a forhead, that's complete false.

quaint mantle
#

epic and awesome

vestal dome
#

I have this, doesn't work... anyone have ideas ?

#

oh and don't say the player is not connected.. pretty sure he is..

#

even the docs say it

fiery inlet
#

Anyone know how to set a "variable" for a player, like if they press the green team button they're assigned to green team?

vestal dome
#

InventoryClickEvent btw

fiery inlet
#

i know that

glossy scroll
#

Hashmap, Scoreboard teams, PDC

#

Many ways

#

Depends on your needs

fiery inlet
#

Hashmap best?

vestal dome
#

Scoreboard Teams is a hard one

#

every time you change scoreboard it will stop working correctly and you will have to redefine it

#

unless you use packets..

fiery inlet
#

Let's say im kinda new, which one would be good to learn

vestal dome
#

HashMap is the easiest..

hallow kettle
eternal night
#

I think my man meant scoreboard tags

#

not teams xD

#

well

fiery inlet
#

what no

eternal night
#

if not, it would be a valid way

fiery inlet
#

generally just a personal "variable"

glossy scroll
#

No i meant teams

eternal night
#

ah

#

well tags would work too

fiery inlet
#

nbttags yeah but seems boring

glossy scroll
#

PDC or Hashmap depends what you want

fiery inlet
#

what is pdc

glossy scroll
#

Persistent Data Container

vestal dome
fiery inlet
glossy scroll
#

no

lofty mulch
#

"NBT version Bukkit"

fiery inlet
#

its usable for 1.8.8 spigot?

lofty mulch
#

nope

fiery inlet
#

ok well rip

lofty mulch
#

use 1.16.5

fiery inlet
#

hashmap it is

vestal dome
lofty mulch
#

?

gaunt eagle
#

@vestal dome i fixed the error

fiery inlet
#

congratulations Furkann

vestal dome
gaunt eagle
#

I did a little research on the location.world error and came to the conclusion xD

glossy scroll
fiery inlet
#

ima go get some buns

lofty mulch
#

use 1.16.5

#

shiet

fiery inlet
#

well i cant use it if its only 1.16.5

glossy scroll
#

Ok well you should say 1.8

lofty mulch
#

1.8.8 is old enough

glossy scroll
#

Because then ill know that i shouldnt help you

vestal dome
glossy scroll
#

Im not talking to you

fiery inlet
#

men i cant go 1.16

vestal dome
fiery inlet
#

im tired of explaining why

vestal dome
#

and postivies.

vestal dome
lofty mulch
#

1.8.8 is the worst

fiery inlet
vestal dome
#

nah

lofty mulch
#

whatever you said

fiery inlet
#

ty

lofty mulch
#

cant change the truth that 1.8 is the worst

vestal dome
#

Some servers still use 1.8.8, don't blame them because I'm still there aswell

fiery inlet
#

1.8.8 pvp

lofty mulch
#

u meant 8.7%?

glossy scroll
#

IDC why you use the version

hallow kettle
#

only 8.7% really?

glossy scroll
#

Im just saying

lofty mulch
#

yes

vestal dome
#

that's paper bud

lofty mulch
#

that's bukkit

hallow kettle
#

could've expected like 40%

glossy scroll
#

I wont support yiu

lofty mulch
#

paper is less than that

glossy scroll
#

If you ise 1.8

fiery inlet
#

im just tired of the diva coders who cant stop saying "outdated" every time i say it

lofty mulch
#

ye

fiery inlet
#

who you are becoming martoph

vestal dome
lofty mulch
#

i wont support 1.8 too

vestal dome
#

and you shouldn't argue

lofty mulch
#

or anything under 1.13

vestal dome
#

boomers

glossy scroll
#

You dont seem to understand

fiery inlet
#

fair, done deal

lofty mulch
#

nobody gonna use the old api

gaunt eagle
#

Finally, I have only 1 error left, actually bug idk.
I added the code to join the arena with the NPC, the code below works fine, but after joining the arena, clicking the npc again opens the villager trade screen. I want to prevent this

line 11 and 15. else's
https://paste.turingarch.com/paste.php?id=94

vestal dome
#

I still don't blame it, and done ez

lofty mulch
#

hypixel?

glossy scroll
#

I dont waste my time thinking about what api existed 6 years ago

#

So please

lofty mulch
#

*8

glossy scroll
#

Tell me you use 1.8 whne you want help

lofty mulch
#

8 years

#

not 6

glossy scroll
#

LOL

#

Even better

lofty mulch
#

it's reallyl old

#

1.12 is fucking 4 years

#

and people still use it

vestal dome
#

yes

#

because it is optimized πŸ™‚

glossy scroll
#

Im fine with using 1.8

lofty mulch
#

"best performance version"?

vestal dome
#

πŸ™‚ πŸ™‚ πŸ™‚ πŸ™‚

hallow kettle
glossy scroll
#

I just dont support 1.8

lofty mulch
#

hilarious

vestal dome
gaunt eagle
vestal dome
#

if you don't, get out

#

simple right?

hallow kettle
glossy scroll
#

Great! So dont expect help from me lmfao

wraith rapids
#

it is not optimized

hallow kettle
#

5 years

lofty mulch
#

wait

wraith rapids
#

it simply isn't bloated

#

those are two different things

lofty mulch
#

i thought it was 8

vestal dome
#

disagreed but wtf ever.

lofty mulch
#

sorry guys

#

but its still old

vestal dome
#

hypixel is 8 years old

#

πŸ™‚

lofty mulch
#

they use custom spigot

wraith rapids
#

again, who gives a shit about hypixel

glossy scroll
#

The guy that refused help optomizing his 100s of hashmap lookups is schooling me on minecraft performance

lofty mulch
#

do not use Hypixel as an example

wraith rapids
#

it's some shitty minigame server that nobody cares about

vestal dome
lofty mulch
#

?

#

did you read their dev blogs?

vestal dome
#

even if they use

#

they still ask for spigot api uhhh... knelewdge

lofty mulch
#

"even"?

vestal dome
#

(can't type)

eternal oxide
#

99% of the people who help here only support the current build but some will go the extra mile back as far as 1.14

lofty mulch
#

api is api

#

performance belongs to server part

#

not api

wraith rapids
#

literally every single time the 1.8 discussion is brought up some tard will start screeching but moh hypicle muh hypickle

#

what the fuck made hypixel the golden standard of minecraft servers

#

why is everything being compared to a minigame server

lofty mulch
#

hYpIxEl

glass sparrow
#

basically people r stoopid

lofty mulch
#

did copy microsoft make you success?

#

no?

wraith rapids
#

ask skype

glossy scroll
#

Yea they pay their devs like 6 figs

lofty mulch
#

stop using big server as an example

#

that's stupid

glossy scroll
#

They literally probably have very little code remaining that actually was part of bukkit lmfao

wraith rapids
#

at least use a server of the same category as an example

glossy scroll
#

Heck they use their own world formats

radiant aspen
#

1.8 sucks

lofty mulch
#

ye .slime

radiant aspen
#

1.6 is the best version end of

lofty mulch
#

alpha

glossy scroll
#

Hypixel isnt comparable idk why ppl keep bringing it up

eternal oxide
#

Also copying a server will not be successful. They are successful because they innovate.

vestal dome
#

huh

#

cool

eternal oxide
#

New ideas all the time

vestal dome
glass sparrow
lofty mulch
#

we're not the customer support

wraith rapids
#

is that a reply

#

i can't see replies

vestal dome
#

please explain me that

wraith rapids
#

can't see shit

vestal dome
#

what?

glass sparrow
wraith rapids
#

it's probably some dumb question anyway

glossy scroll
#

You should say the problem you have

vestal dome
#

thx

glossy scroll
#

Before you ask for help

vestal dome
#

the message is not received by the spigot server simple as that.

glossy scroll
#

β€œIt doesnt work” doesnt cut it

eternal oxide
# glass sparrow please*

You can NOT send data to a server with no online players. I already told you this. A player IN the Join event is not online

vestal dome
#

he blind

wraith rapids
#

imagine reading

vestal dome
#

he doesn't see code.

#

he didn't even read the docs.

eternal oxide
#

You post crappy little screenshots I'm not going to waste time blowing up constantly

vestal dome
#

clearly says it.

#

sent it right next to the code.

eternal oxide
#

damn bot

wraith rapids
#

bad elgar

eternal oxide
#

Yes, IF there is a player already on teh server

#

a server with NO players will NOT receive messages

wraith rapids
#

throw some sockets at it

vestal dome
#

want me to paste the docs here?

eternal oxide
#

doc all you like, I'm stating facts

vestal dome
#

I still don't get you... the guy is online k?

eternal oxide
#

NO he's not

vestal dome
#

Change my mind

eternal oxide
#

Have you checked the BukkitgetOnlinePlayers()?

wraith rapids
#

if you knew what was wrong you wouldn't be here asking for help

#

we don't need to change your mind

eternal oxide
#

I don;t need to change your mind. You are the one asking for help. I'm telling you the answer

glossy scroll
#

Lmfao its the second time hes done this

wraith rapids
#

typical 1.8 retard

lofty mulch
#

typical legacy version retard

vestal dome
#

I would look at myself if I was retarded

glass sparrow
#

'Change my mind' wtf why is it a debate

vestal dome
#

& attention

glass sparrow
#

lmao

#

grow up

vestal dome
#

don't feel like doing it

wraith rapids
#

then go away

lofty mulch
#

if you know everything

#

you can do everything

#

go do it yourself

#

dont ask us

wraith rapids
#

you're somehow managing to lower the average iq of this channel

eternal oxide
wraith rapids
#

which is already shockingly fucking low to begin with

wraith rapids
#

and just like last time, you were blatantly wrong but refused to believe it

#

keep in mind that you are the guy who doesn't know the things, and that is why you have to come to this cancerous shitfest of a help channel to be pointed in the right direction

vestal dome
#

πŸ™‚

#

doesn't work yet.

wraith rapids
#

coming here and telling that everyone else is wrong when it's your project that is shitting bricks is retarded

lofty mulch
#

?xy

queen dragonBOT
vestal dome
#

are you even suprised?

wraith rapids
#

i'm not surprised, no, because you are a 1.8 player

#

which is a very poor breed of player

#

often with mental and attitude defects

#

you are a prime exemplar

vestal dome
#

ooo nice

sharp bough
#

no wait i was enjoying the fight

#

agh

#

anyways

eternal oxide
#

log a player in fully, then send a message. If it doesn't work come back.

vestal dome
#

well I delayed the sendData by 15 seconds

sharp bough
#

this would run like a 1 line if right?

vestal dome
#

uhh positive....... uhh

wraith rapids
#

probably want to use equalsIgnoreCase

vestal dome
#

πŸ˜„

sharp bough
#

oh nice

eternal oxide
vestal dome
sharp bough
vestal dome
#

do you mean like on the ServerConnectedEvent?

wraith rapids
#

the compiler doesn't care about lines

#

you can write your entire class in one line if you want

eternal oxide
wraith rapids
#

if you don't use brackets, only the immediately following statement will be controlled by the if condition

#

that immediately following statement may be another if clause

#

if (x) if (y) if (z) { // stuff }
is functionally equivalent to
if (x && y && z) { // stuff }

small sparrow
#

Does anyone here know about Items Adder? If so, please read this then ping me.

||I recently bought ItemsAdder, and I loaded it into my server. Most of the textures were switched around, like a bat was a Waterskin and a dagger was the AK-47. Its angering because I bought this for 20$. And its not working correctly. Is there any assistance to help me fix this?||

wraith rapids
#

not in this channel

#

unless you have the source and are trying to rewrite it

small sparrow
#

i didnt see a discored For It-

#

gah - sorry haha

vestal dome
#

even me

glass sparrow
small sparrow
#

Can anyone give me the discord for it?

sharp bough
#

hahah im joking

vestal dome
#

I love getting ignored for 5 minutes straight

sharp bough
#

well if you text a new question every 2 minutes, its hard for people to keep up with the other questions

#

haha im jokingg

eternal oxide
#

sysout in your messaging code so you can see it is actually attempting to send and when.

vestal dome
#

spigot has no souts... on console so..

eternal oxide
#

yes it does

glossy scroll
#

sout definitely prints stuff to console

eternal oxide
#

and thats receiving not sending

vestal dome
#

exactly?

wild steeple
#

It does

vestal dome
#

uhhh

wild steeple
#

But you'd be better off just using the thing in bukkit

vestal dome
glossy scroll
#

Great so youve identified your problem

wild steeple
#

use getLogger();

glossy scroll
eternal oxide
#

that code will only run IF the channel is registered for receiving AND you did actually send a message to it, AND a player is online

wild steeple
#

yeah ik

#

but you still would be better off if you used it.

glossy scroll
#

No

vestal dome
glossy scroll
#

Its gonna be deleted

vestal dome
eternal oxide
#

sysout in your Sending to see that it is sending and when

vestal dome
#

in the bungeecord I registered the channel...

glossy scroll
#

So let me understand this

vestal dome
#

same in spigot.

glossy scroll
#

Nothing is printing?

vestal dome
#

nop

eternal oxide
#

sysout In your sending to show it is actually being sent

neat wyvern
#

tf 'spawnEntity(org.bukkit.Location, org.bukkit.entity.EntityType)' in 'org.bukkit.World' cannot be applied to '(int, int, int, org.bukkit.entity.EntityType)'

#

` public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if(sender instanceof Player){
Player player = (Player) sender;
player.sendMessage(ChatColor.LIGHT_PURPLE + "Hey sexy....");

        int x = player.getLocation().getBlockX();
        int z = player.getLocation().getBlockZ();
        int y = player.getLocation().getBlockY();

        World w = Bukkit.getWorld("world");
        w.spawnEntity(x, y, z, EntityType.VILLAGER);`
vestal dome
#

you have to provide a "location" Object.

#

oh and uh..

wraith rapids
#

spawnEntity(org.bukkit.Location, org.bukkit.entity.EntityType)' in 'org.bukkit.World' cannot be applied to '(int, int, int, org.bukkit.entity.EntityType)'

#

the declared method is spawnEntity(Location, EntityType)

#

this means that you must give it 2 parameters

#

a Location object, and an EntityType object

#

however you are giving it this (int, int, int, org.bukkit.entity.EntityType)

#

you are giving it 4 parameters; 3 ints and an EntityType object

neat wyvern
wraith rapids
#

a Player is not a Location

vestal dome
#

"player.getLocation()"

#

simple as that

wraith rapids
#

it wants a Location

#

you can retrieve the player's current Location by calling getLocation() on the player

#

or you can create a new Location by calling one of its constructors

neat wyvern
#

w.spawnEntity(player.getLocation(), EntityType.VILLAGER);

#

Ye

#

?

vestal dome
#

ye....

neat wyvern
#

that outputs no error

#

s

vestal dome
eternal oxide
vestal dome
#

yes

eternal oxide
#

in that case does any of your receiving code do anything? not even the sysout 1?

vestal dome
#

nop

eternal oxide
#

then thats impossible

wraith rapids
#

plugin messaging channels are gay

#

just use sockets

eternal oxide
#

so long as a player IS logged in

#

You do actually have a player online and in a world when this message is sent?

vestal dome
#

it apparently IS POSSIBLE.

wraith rapids
#

answer the question instead of arguing

vestal dome
#

it's "e.getPlayer()"

#

should the player that logged in 15 seconds ago... be the one to send it?

eternal oxide
#

doesn;t matter

#

is the player in the world when your proxy sends the message?

vestal dome
#

yes

wraith rapids
#

you towny people are awful at spelling the

eternal oxide
#

then it shoudl work.

#

I have used PMC and it works just fine

wraith rapids
#

llamadeal does it too

eternal oxide
paper viper
vast plinth
#
[16:04:15 INFO]: [VentureChat] - Initializing...
[16:04:15 INFO]: [VentureChat] - Config found! Loading file.
[16:04:15 INFO]: [VentureChat] - Checking for Vault...
[16:04:15 INFO]: [VentureChat] - Could not find Vault dependency, disabling.
[16:04:15 INFO]: [VentureChat] Disabling VentureChat v2.22.8
[16:04:15 INFO]: [VentureChat] - Disabling...
[16:04:15 INFO]: [VentureChat] - Disabled Successfully
[16:04:15 INFO]: [VentureChat] - Loading player data

i can turn on venture chat... this is what im supposed to use with discordsrv

paper viper
#

it uses your pinky?

#

I thought it's supposed to make your arm stronger

eternal oxide
vestal dome
paper viper
#

LMFAO

eternal oxide
vestal dome
#

look by yourself..

paper viper
#

if you actually sent a paste man...

eternal oxide
#

too small, can;t read

paper viper
#

use a pasting site

neat wyvern
#

How do i reopen the maven tab it auto closes

wraith rapids
#

by clicking the button that opens it

vestal dome
wraith rapids
#

it probably reads "maven" on top of the button

neat wyvern
wraith rapids
#

do you use intellij

vestal dome
#

me?

neat wyvern
#

yes

wraith rapids
#

that isn't a maven project

eternal oxide
queen dragonBOT
neat wyvern
#

Yes it is...

wraith rapids
#

no pom.xml

#

no maven

neat wyvern
#

pom.xml is under target for some reason.

vestal dome
eternal oxide
#

bungee

neat wyvern
vestal dome
wraith rapids
#

make it not be under target

#

that project has not been imported as a maven project

#

take it from target and move it to the root

neat wyvern
#

ok

wraith rapids
#

then rightclick the pom file

neat wyvern
#

epic works

wraith rapids
#

and there should be an option somewhere that reads import as maven project

eternal oxide
vestal dome
eternal oxide
#

IncomingMessageListener

vestal dome
eternal oxide
#

ok, there is no reason your plugin shoudl not be receiving the message

vestal dome
#

I just don't.......

eternal oxide
#

unless somehow yoru onEnable is bombing, but that would stop all your events being registered

vestal dome
#

the thing is that it works when I use <ServerInfo>.sendData();

#

but that's bad.

eternal oxide
#

what command are you using right now?

vestal dome
#

command?

#

wdym

#

like to send data?

eternal oxide
#

yes

vestal dome
#

e.getPlayer()

eternal oxide
#

no from teh proxy

vestal dome
#

this: e.getPlayer().sendData("bungeecord:main", output.toByteArray()); ?

eternal oxide
#

e.getPlayer().getInfo().sendData

vestal dome
#

alright

#

not a thing?

eternal oxide
#

sorry e.getPlayer().getServer().getInfo().sendData

vestal dome
#

wait.....

#

I was looking at Bungeecord's source..

#

and it overwrites the tags.

#

o_o

eternal oxide
#

sending from ServerInfo is correct as its queue backed

eternal oxide
vestal dome
#

well but one of my tags is that one.

eternal oxide
#

use your own

#

bungee:msg

#

you can use any channel you want

vestal dome
#

alright... I'll see.

echo basalt
#

I was going to suggest using reflections to trick the check

#

But I'd be hated for it

neat wyvern
#

How do i do a wait?

#

try {
wait(0x1);
} catch (InterruptedException e) {
e.printStackTrace();
}

wraith rapids
#

you don't wait

#

you schedule something to happen later

#

waiting stops the thread you call wait on

#

which usually is the server main thread

#

and stopping that freezes the server

neat wyvern
#

What is the alternitive?

wraith rapids
#

you schedule something to happen later

#

using the bukkit scheduler

#

which will execute the task you pass it at a time of your choosing

neat wyvern
#

Ok

#

How do i loop somehting?

wraith rapids
#

define loop

eternal oxide
#

for, while, if

neat wyvern
#

Like make something happen over and over again.

wraith rapids
#

every x seconds?

#

or all at once

neat wyvern
#

every like 30 milisecconds

wraith rapids
#

you use the scheduler

#

and tell it to run your task once every x ticks

neat wyvern
#

And that loops?

#

How would i do that?

wraith rapids
#

if you tell it to run your task once every x ticks, it will run it every x ticks

opal juniper
wraith rapids
#

look up a guide on the bukkit scheduler

opal juniper
#

Cause i never see that u are typing

neat wyvern
#

The downloaded one?

opal juniper
#

Yeah

#

That’s what I meant

neat wyvern
#

yea i have it as the desktop app

#

client

opal juniper
#

I was talking to @wraith rapids hence I replied to him

wraith rapids
#

i can't see replies

opal juniper
#

Oh, yeah, what client do you use?

wraith rapids
#

ripcord

opal juniper
#

Why lmao

wraith rapids
#

it's lightweight

opal juniper
#

I mean, I guess but discord isn’t exactly heavy

wraith rapids
#

it is

#

it is very heavy

opal juniper
#

I mean, you do you

wraith rapids
#

it's based on electron so it basically has the same resource footprint as opening and running another browser

#

even on idle it sporadically uses 40-50% of my available cpu time

#

it is slow, it is laggy, and it takes enermous amounts of resources of a text chat application

#

i literally can not use an IDE and discord at the same time

opal juniper
#

hmm, thats weird

wraith rapids
#

it's not weird

#

it's a browser in a box

#

it's a chromium bundled with a set of webpages in it

#

it can be expected to be heavy

opal juniper
#

yeah, ok

wraith rapids
#

ripcord uses only 1/50 the cpu time on idle and less than 1/10 in active use

#

the memory footprint is only around 1/6 as well, at 50MB private working set in comparison to around 300

#

it only takes 10 seconds to start up for me in comparison to discord's 4+ minutes

#

i can run several instances of it concurrently

#

i can switch between alts with just two clicks

neat wyvern
#

how can i make where i fireball lands exploded?

wraith rapids
#

i don't need to fill in captchas or verify my email or click links in my email inbox every time I log in from another IP

sharp bough
#

i cant find the answer in google, but is it possible to have childrens inside childrens?

wraith rapids
#

it is everything I want

sharp bough
#

like in example 1

wraith rapids
#

discord, on the other hand, is everything I do not want

sharp bough
#

or i must add the command like in 2

#

and add the children

wooden warren
#

Hwe to make compass point to portal if tracked player is in nether

wraith rapids
#

pretty difficult

neat wyvern
#

Is there some kind of on player crouch

wraith rapids
#

there is the toggle sneak event or whatever it's called

opal juniper
#

yeah

#

PlayerToggleSneakEvent

#

then you can check if the player is sneaking to check if it is the way down or up

wraith rapids
#

either way, ripcord is the only client I've found that does what I want

#

find me a better one and i'll gladly switch because ripcord is fucking trash

glossy scroll
#

Discord

wraith rapids
#

heavy, laggy, doesn't have good alt support, can't run multiple instances of it, requires shitty captchas to log in and requires you to check your email inbox to verify a login from each new device

glossy scroll
#

That’s interesting because i have none of those issues

#

Except for alts

wraith rapids
#

that's because you have a better machine and don't use tons of alts

glossy scroll
#

Thats a fair point

wraith rapids
#

i've lost access to like 5 accounts because my IP changed or something and it wants me to click some link in my email inbox to verify that it's me

#

i've contacted their support about it and they say it can't be turned off

#

i just recently installed ripcord and discord in parallel on my other machine

#

the other machine has only 3gb of ram and a slow HDD

#

switching back to discord after using another application for a while has me waiting for around 2 minutes before it unfreezes because of the higher memory footprint

#

ripcord responds instantaneously

neat wyvern
#

PotionEffect​(PotionEffectType type, int duration, int amplifier)

Can somebody give me an example of how this would work?

wraith rapids
#

PotionEffectType is an enum

#

int is an int

#

new PotionEffect(PotionEffectType.THE_TYPE_GOES_HERE, 4, 10)

neat wyvern
#

Awesome! thanks

lilac dagger
#

you can use mini opera or firefox to improve it

wraith rapids
#

modern firefox is very resource hungry as well, so I can't run it on this machine either

#

i'm using a low overhead single threaded browser and since it's single threaded, having discord sitting in one of the tabs would slow it down quite a bit

#

it'd be overall better than running the electron shitshow, but I still need a workable browser

neat wyvern
#

How do you apply the potion effect to an entity

lilac dagger
#

or use eclipse as the ide πŸ‘€

wraith rapids
#

entity.addPotionEffect or something, idr

#

like, i guess that is an option

#

but intellij has more stuff

lilac dagger
#

eclipse is pretty good as well imo

#

sure you don't have as good of a completion coverage

#

but it does work well

wraith rapids
#

i suppose

#

though that won't completely negate the resource footprint of using an ide

#

and won't help with the other issues I have with discord

lilac dagger
#

intellij right now uses 1.8 gb of ram

wraith rapids
#

around 900mb for me

#

discord uses 300ish

lilac dagger
#

and eclipse 450 mb

wraith rapids
#

firefox uses about 1.2gb

lilac dagger
#

with a lot more projects in the work place

wraith rapids
#

low overhead browser uses around 200mb

lilac dagger
#

firefox with 5 threads 650 tho

buoyant cargo
#

Hi ! I've a question ? What is the easiest way to set secific "mining level" on block ? For exemple I want allow player to destroy block x only with iron pickaxe or better, how I can simply do that ? Feel free to mention me if you have question/anwser ^^

wraith rapids
#

that's not usually the memory you want to be looking at

#

you'll want to look at the working set, the private working set in particular

violet depot
#

@EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerQuit(CreatureSpawnEvent e){
LivingEntity entity = e.getEntity();
AttributeInstance attribute = Entity.getAttribute(Attribute.GENERIC_MOVEMENT_SPEED);
double baseValue = attribute.getBaseValue();
if(baseValue != 0.7)
{ //If basevalue is not 0.7 default, set it back
attribute.setBaseValue(14);
}
}

wraith rapids
#

i'm not sure what the windows task manager displays by default

lilac dagger
#

where do i look that up?

wraith rapids
#

get processhacker

#

which is basically task manager on steroids

eternal oxide
#

Eclipse running with a bunch of projects, CodeTogether and a skin plugin 574mb

wraith rapids
#

and add it to the shown columns

violet depot
wraith rapids
#

looks like the old gen task manager does have a column for it

#

not sure about the win8+ task manager

violet depot
lilac dagger
#

πŸ€”

wraith rapids
#

processhacker doesn't add up the numbers for collapsed subprocesses for some reason

#

you need to expand it and add them up in your brain

#

not sure why that is

lilac dagger
#

so yea

wraith rapids
#

are you sure that's the right column

lilac dagger
#

looks like discord uses a bit more than that

wraith rapids
#

the memory usage for discord looks a bit high

neat wyvern
#

Is there a way to make a command enable or disable events

lilac dagger
#

it is the root

wraith rapids
#

that said I am in only like 2 guilds on my discord installation

lilac dagger
#

along with process hacker

#

the IDE are shown in the explorer

lilac dagger
#

yes

#

save the event reference

lilac dagger
#

and then register or

wraith rapids
#

this is my discord installation on idle

lilac dagger
#

HandlerList.unregister(event);

wraith rapids
#

it's part of 2 guilds

#

it's using like 7% of my cpu on idle

lilac dagger
#

the one i'm showing you is

#

private bytes

#

is that what you wanted?

wraith rapids
#

yeah that's not the one

lilac dagger
#

or something else

wraith rapids
#

private WS

#

the left hand memory column is the private working set, right hand column is total memory

#

private bytes includes memory that is not in active use and just lying around in the pagefile and shit, it's pretty irrelevant

lilac dagger
#

private ws?

wraith rapids
#

yeah

fiery inlet
#
package me.barry.Scoreboard;

import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {
    @Override
    public void onEnable() {
        getLogger().info("LOGGER HASH: p2ca");
        getServer().getPluginManager().registerEvents(new OnJoin(), this);
    }
}

It ain't logging anything, i checked logs, no errors on load.

fiery inlet
#

Nevermind i found out im an idiot

lilac dagger
#

you sure it goes by total memory?

#

the second one

neat wyvern
#

for command executer do you make a inner class or class?

lilac dagger
#

i have only total cpu

wraith rapids
#

the right hand one is private bytes

fiery inlet
#
package me.barry.Scoreboard;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.scoreboard.*;

public class OnJoin implements Listener {

    @EventHandler
    public void join(PlayerJoinEvent event) {
        Player player = event.getPlayer();

        ScoreboardManager m = Bukkit.getScoreboardManager();
        Scoreboard b = m.getNewScoreboard();

        Objective o = b.registerNewObjective("gold", "");
        o.setDisplaySlot(DisplaySlot.SIDEBAR);
        o.setDisplayName(ChatColor.DARK_AQUA + "Tutorial Server");

        Score gold = o.getScore(ChatColor.WHITE + "GOLD: " + ChatColor.GOLD + "10.000");
        gold.setScore(1);

        player.setScoreboard(b);


    }
}

Nothing happens on join ):

wraith rapids
#

register the event listener and make sure it's not throwing an exception on join

lilac dagger
#

this is it

wraith rapids
#

yeah that looks more accurate

lilac dagger
#

right is private ws

wraith rapids
#

protip: if you're running out of physical memory, suspend a memory hungry process and force it to reduce its working set

#

the application will be slow for a while when you unsuspend it and try using it next, because it has to load all of its memory back into physical memory from the disk

lilac dagger
#

wouldn't that make it cpu heavier?

#

ohh

wraith rapids
#

suspending it halts it until you resume it

lilac dagger
#

i got you

#

you're page pooling the app

#

basically

wraith rapids
#

pretty much

#

that's what I do with intellij when I need the extra memory

#

it responds to it surprisingly well

#

doesn't even really lag or jitter when I resume it later

#

thing is I can't fucking do that with discord, since I'm almost always using it

lilac dagger
#

the whole stack is copied on the disc i assume

quiet hearth
#

Can someone check to see what is wrong with my code... It is trying to give a player a potion effect based on the food they eat. In this section it is a poisonous potato if (event.getItem().equals(poisonousPotato)) { Player player = event.getPlayer(); PotionEffect absorptionEffect = new PotionEffect(PotionEffectType.ABSORPTION, 120 ,4); PotionEffect regenerationEffect = new PotionEffect(PotionEffectType.REGENERATION, 30, 2); PotionEffect fireResistEffect = new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 300, 1); PotionEffect resistanceEffect = new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 300, 1); player.addPotionEffect(regenerationEffect); player.addPotionEffect(absorptionEffect); player.addPotionEffect(fireResistEffect); player.addPotionEffect(resistanceEffect);

wraith rapids
#

the threads get suspended, meaning they retain their state in memory but are no longer getting executed

#

you can also suspend individual threads

lilac dagger
#

so the stack remains in ram

wraith rapids
#

in memory

lilac dagger
#

or nvm

digital plaza
wraith rapids
#

the memory may be on the disk or in physical memory

#

i have to suspend one thread from explorer.exe on startup every time because it fucks with the sound system and lags like hell

quiet hearth
lilac dagger
#

i s'pose discord can't do that is that it works with an interpreted language that expires and such

wraith rapids
#

you can suspend it

#

but the thing is that you can't use it while it's suspended

#

cause it isn't running

#

that's what I used to do when I had to compile something; I suspended discord

#

because otherwise compiling would take like 5x as long

#

now with ripcord i don't need to give a shit

#

in comparison to the discord screenshot I sent, here is ripcord

#

in contrast to discord which was idle, ripcord is currently in active use and in like 30 different guilds

lilac dagger
#

they've already made discord forks?

wraith rapids
#

issue with most discord forks is that just like discord, they run on electron

#

so it's the same shit with a different skin and more features

lilac dagger
#

i know someone who used vlc and some other software to watch twitch streams

wraith rapids
#

ripcord is a from-scratch implementation in like C or something

lilac dagger
#

wow

wraith rapids
#

the developer is a fucking kike so it's closed source and lacks features

lilac dagger
#

must've taken a while

wraith rapids
#

but at least it's lightweight

#

it can't play video, animate gifs, or enlarge images

lilac dagger
#

well, considering with the kids nowdays breaking gifs and videos to crash your discord server you can't complain

wraith rapids
#

myeah

#

it's rough around the edges and has its issues but in comparison to vanilla discord it's total bliss

wraith rapids
#

because it like responds instantly when I tell it to do something and not 2 minutes later

wraith rapids
#

.

lilac dagger
#

but usually it should be exposed

#

so it's easier to manage for changes

fiery inlet
#
package me.barry.Scoreboard;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scoreboard.*;

public class OnJoin extends JavaPlugin implements Listener {

    @EventHandler
    public void join(PlayerJoinEvent event) {
        Player player = event.getPlayer();
        getLogger().info(player.toString() + "has joined!");
        player.sendMessage("Hi mate");

        ScoreboardManager m = Bukkit.getScoreboardManager();
        Scoreboard b = m.getNewScoreboard();
            
        b.registerNewObjective("gold", "dummy");
        b.registerNewObjective("gold", "dummy").setDisplaySlot(DisplaySlot.SIDEBAR);
        b.registerNewObjective("gold", "dummy").setDisplayName(ChatColor.DARK_AQUA + "Tutorial Server") ;

        Score gold = b.registerNewObjective("gold", "dummy").getScore(ChatColor.WHITE + "GOLD: " + ChatColor.GOLD + "10.000");
        gold.setScore(10);
        getLogger().info("Hash log 222222");
        player.setScoreboard(b);


    }
}

Well when i join, it logs the first one, but it doesnt log the last one and no scoreboard pops up /:

wraith rapids
#

sounds like it's throwing an exception

#

look into your console and see if it prints anything

fiery inlet
#

well im in console and it doesnt

#

just says
playername left the game

wraith rapids
#

that's the join event

fiery inlet
#

playername logged in with entity id ....

wraith rapids
#

well i mean it can't just stop executing the method arbitrarily

#

it either returns or explodes

#

and you don't have a return in there

#

so it either explodes or reaches the end

fiery inlet
#

Anything wrong here?

package me.barry.Scoreboard;

import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin {
    @Override
    public void onEnable() {
        getLogger().info("LOGGER HASH: p2ca");
        getServer().getPluginManager().registerEvents(new OnJoin(), this);
    }
}
wraith rapids
#

looks fine

fiery inlet
#

hold up

#

it doesnt even log that LOGGER Hash thing now

#

dafuq

#

plugin.yml:

main: me.barry.Scoreboard.Main
name: scoreboardFeatures
version: 1.0
description: Testing phase
author: barry
acoustic token
#

how do you send a message thorough chat

fiery inlet
#
Bukkit.broadcastMessage("");
```?
acoustic token
fiery inlet
#

well it aint even saying it didnt load

#

oh it does

#

ahh finally found the errors 2sec

#
java.lang.IllegalArgumentException: Plugin already initialized!
    at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:123) ~[patched.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66) ~[patched.jar:git-PaperSpigot-"4c7641d"]
    at me.barry.Scoreboard.OnJoin.<init>(OnJoin.java:12) ~[?:?]
    at me.barry.Scoreboard.Main.onEnable(Main.java:9) ~[?:?]
wraith rapids
#

could also be an issue with using reload

#

having 2 jars would give a message about "ambiguous plugin name x" at least on modern versions

#

isk how it works in this shit ancient version

fiery inlet
#

fakin hell i think ur right

#

forgot to change name output

#

kinda

neat wyvern
#

How do I turn on and off a event with a command?

wraith rapids
#

you don't

fiery inlet
#

same error

#

dafuq

#

i restarted server

wraith rapids
#

are you reloading

fiery inlet
#

nop

neat wyvern
fiery inlet
#

full restart

#

which is weirdd

#

why is my pom xml writing another project name

acoustic token
#

main: main.java
name: Minebot
version: 1.0
description: Beta
author: dragonblade316

does this look right

fiery inlet
#

Main.java?

wraith rapids
#

how about no

fiery inlet
#

Main is always uppercase

#

And it's the way to get to it from ur source folder

#

not just the name

wraith rapids
#
  1. put your classes in a package that is unique to your plugin
  2. name your class names in uppercase
  3. don't call your main class main
#

my.domain.myplugin.MyPlugin

#

and drop the .java

quiet hearth
#

when comparing itemMeta should u use .equals or ==

wraith rapids
#

if you want to see if the item meta objects are equal, that is, they represent the same thing, use equals

#

if you want to see that the item meta objects are the same object, use ==

quiet hearth
#

o,

#

ok

wraith rapids
#

99% of the time, you want to use equals

quiet hearth
#

ty

wraith rapids
#

because every getItemMeta call returns a new itemmeta object

#

so it will never be == to anything other than itself

fiery inlet
#

Hmmmm, new error

org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml

&&

Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml

IntelliJ

But my plugin.yml is in the ressources folder?

main: me.barry.Scoreboard.Main
name: scoreboardFeatures
version: 1.0
description: Testing phase
author: barry
quiet hearth
#

Method invocation 'equals' may produce 'NullPointerException' It said this when i use .equals

wraith rapids
#

myes

#

the variable you're calling .equals on may be null

#

that is, have no value

quaint mantle
#

Is it possible to make a player inventory and Overwrite a players inventory with that inventory?

quiet hearth
#

ok

wraith rapids
#

points at no object

#

a null-pointer

#

make sure it isn't null

#

or use Objects.equals(a, b) instead of a.equals(b)

fiery inlet
#

hey, do you know why it would return Jar does not contain plugin.yml even if its in the ressources folder /:

wraith rapids
#

are you using maven and building your project with maven

fiery inlet
#

Well i couldnt find the files when i packaged it

#

So no im using artifacts

wraith rapids
#

well that would be why

#

the files go in target

#

take them from there

#

if you use maven, you should use maven

silver robin
#

Creating a custom crafting GUI, how should I check the recipe that has been entered?
I find this in an repeating task very ineffective and i think there is a better way, isn't it?player.getOpenInventory().getTitle().contains("Custom Crafting GUI")

wraith rapids
#

haram

#

don't compare title names

#

compare the inventory instance

#

if a player renames and places down a chest, they can change the title of an inventory to whatever they want

#

``if (player.getOpenInventory() == myCustomGui)**

fiery inlet
#

dont u love my errors xd

wraith rapids
#

construct the gui and store it in a field or a map, and use the instance itself to compare

#

right that's an inventory view

#

you'll want to get the topmost inventory from the view and do the == on that

neat wyvern
#

Why isnt this working?

@EventHandler
public void onPlayerMove(PlayerBucketFillEvent event) {
Player player = event.getPlayer();
player.sendMessage(ChatColor.DARK_RED + "Your bucket is full.");
player.setHealth(0);
}

fiery inlet
#

Errors i get now

#

Now notice it recognized plugin.yml this time xd

wraith rapids
#

you're instantiating your main class in your OnJoin class

#

there may only ever be one instance of your main class and it must be instantiated by bukkit

#

you can not use the constructor of your main class

upper vale
#

If you hold right click, what is the number of milliseconds between each time PlayerInteractEvent is fired?

fiery inlet
wraith rapids
#

absolutely not

#

only the main class should extend JavaPlugin

#

extending JavaPlugin means that this is a plugin

fiery inlet
#

then how would i log xd

#

cuz getLogger goes red then

wraith rapids
#

by passing your plugin instance to the class

quaint mantle
#

get instance of the main class

fiery inlet
#

mhh i completely understand xd

wraith rapids
#

either retrieve it with a static getter method, or pass it through dependency injection

#

create a constructor for OnJoin that takes a parameter of type Main

#

create a field in OnJoin of type Main

#

in the constructor, assign the given parameter into this field

#

then call myPlugin.getLogger(), or whatever you call the field

silver robin
wraith rapids
#

yeah, listen to inventory clicks and inventory drags

#

if the target inventory is a physical container you might need to listen for hoppers' inventory move events as well

silver robin
#

its like
on right click if the right clicked block is a crafting table it cancels the event and opens a custom inventory to the player

wraith rapids
#

yeah that's not a physical container then

fiery inlet
silver robin
#

so i should only listen to inventory clicks and drags?

fiery inlet
#

I know its not right, but whatever else i put in doesnt work

wraith rapids
#

do what i said

#

create a constructor for the OnJoin class

#

do you know how to create a constructor

fiery inlet
#

like this ?

public ExampleA(MainC c) {
        this.c = c;
    }
wraith rapids
#

myes

fiery inlet
#

if not i dont no

wraith rapids
#

public OnJoin(Main main) {
this.main = main;
}

#

then when you need to log, call main.getLogger()

silver robin
#

if i instantiate a custom inventory and then show it to player and the player modifies some stuff inside it, will calling equals on those two inventories return True?

wraith rapids
#

if you only instantiate one custom inventory, then there is only one inventory

#

the inventory the player is looking at is the custom inventory

#

so == will return true

neat wyvern
wraith rapids
#

two references, one object

neat wyvern
wraith rapids
#
Inventory myInventory = Bukkit.constructInventory(...);

Inventory playerInventory = myInventory;

if (myInventory == playerInventory) { ... }
#

when you call player.openInventory(myInventory), that inventory object you pass to the method is recorded on the player somewhere

#

when you get the player's inventory later with player.getOpenInventory or whatever, that same inventory object is returned

silver robin
#

should i instantiate one every event or just keep one in memory all the time?

neat wyvern
fiery inlet
#
java: constructor OnJoin in class me.barry.Scoreboard.OnJoin cannot be applied to given types;
  required: me.barry.Scoreboard.Main
  found: no arguments
  reason: actual and formal argument lists differ in length
neat wyvern
plain quest
#

is this the correct use of PacketPlayOutRespawn? ```java
Packet<?> respawn =
new PacketPlayOutRespawn
(nmsWorld.getDimensionManager(), //dimanager
nmsWorld.getDimensionKey(), //dikey
BiomeManager //biomeData
.a(nmsWorld.getSeed()), //seed
player.getHandle().playerInteractManager.getGameMode(), //gm
player.getHandle().playerInteractManager.c(), //previous gm
nmsWorld.isDebugWorld(), //debugornot?
nmsWorld.isFlatWorld(), //flatornot?
true); //copyMetaData?

chrome beacon
neat wyvern
chrome beacon
#

Make it not throw an error onEnable

fiery inlet
#

It will say why

neat wyvern
chrome beacon
#

Bruh you sent the same thing again

ivory garnet
#

hi, how can i modify a nbt at an entity ?

lilac dagger
#

nms, but why?

ivory garnet
lilac dagger
#

nbt is only accessible from net minecraft server aka n m s

ivory garnet
#

so modify nbt of an entity its impossible ? @lilac dagger

fiery inlet
#

Main

package me.barry.Scoreboard;

import org.bukkit.plugin.java.JavaPlugin;

public class Register extends JavaPlugin {
    @Override
    public void onEnable() {
        getLogger().info("LOGGER HASH: p2ca");
        getServer().getPluginManager().registerEvents(new OnJoin(this), this);
    }
}

Listener

package me.barry.Scoreboard;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.scoreboard.*;

public class OnJoin implements Listener {

    private final Register main;

    public OnJoin(Register main) {
        this.main = main;
    }

    @EventHandler
    public void join(PlayerJoinEvent event) {

        Player player = event.getPlayer();
        main.getLogger().info(player.toString() + "has joined!");
        player.sendMessage("Hi mate");

        ScoreboardManager m = Bukkit.getScoreboardManager();
        Scoreboard b = m.getNewScoreboard();

        b.registerNewObjective("gold", "dummy");
        b.registerNewObjective("gold", "dummy").setDisplaySlot(DisplaySlot.SIDEBAR);
        b.registerNewObjective("gold", "dummy").setDisplayName(ChatColor.DARK_AQUA + "Tutorial Server") ;

        Score gold = b.registerNewObjective("gold", "dummy").getScore(ChatColor.WHITE + "GOLD: " + ChatColor.GOLD + "10.000");
        gold.setScore(10);
        main.getLogger().info("lol");
        main.getLogger().info("Hash log 222222");
        player.setScoreboard(b);
        return;

    }
}

Well it logs the onEnable stuff, but not anything in the listener

minor fox
#

I run the method clear(), but the code stops executing after the first call to print(). Any ideas why?```private void clear() {
System.out.println("clear");
print("1");
System.out.println("test 4");
print("2");
}

private void print(String a) {
    System.out.println("--------- PRINT ----------" + a);
    for(Command command : simpleCommandMap.getCommands()) System.out.println("1 " + command.getName() + " " + command.getLabel() + " " + command.getAliases());
    commandMap.forEach((key, value) -> System.out.println("2 " + value.getName() + " " + value.getLabel() + " " + value.getAliases()));
    System.out.println("test 1");
}```
#

"test 4" never shows up

summer scroll
#

Is it allowed to post a public plugins that has same idea and concept like other premium plugin?

lilac dagger
#

yes

#

you can copy feature by feature

#

and post it as free

#

as long as no code was used from the aforementioned plugin, you're free to do as you please

summer scroll
#

alright, good to hear.

#

thank you so much

lilac dagger
#

πŸ‘

minor fox
opal juniper
lilac dagger
#

println?

minor fox
#

there are no errors in console

lilac dagger
#

it prins a line in the console

minor fox
#

it basically just stops executing for some reason

fiery inlet
#

Could not pass event PlayerLoginEvent to scoreboardFeatures v1.0
Caused by: java.lang.IllegalArgumentException: An objective of name 'gold' already exists
at me.barry.Scoreboard.OnJoin.onJoin(OnJoin.java:31) ~[?:?]

tacit crystal
#

anyone know how to log everything the chat says?

opal juniper
#

Like a file?

tacit crystal
#

yeh just to get the messages as strings

opal juniper
#

then save it to a file or whatever

tacit crystal
#

oh wait sry im just stupid

#

didnt register the listener .-.

opal juniper
#

πŸ™ƒ

#

happens to all of us

tacit crystal
#

but thank you

worn sierra
#

I want to save my objects on redis, but should I store it as byte array or hashsets

#

I will update some fields tho

minor fox
#

what kind of object is this

worn sierra
#

just a simple wrapper class for players

neat wyvern
#

yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet

minor fox
#

you would probably store it as hashsets if you plan on updating fields

worn sierra
sage swift
#

is there a method to find the first similar item in an inventory? first(ItemStack) finds equal amounts, and first(Material) obviously only matches material, so i'm not sure if i'd have to clone each item, set amount to 1, and compare? or is there a better solution?

worn sierra
#

but then show can I store maps?

#

or lists

#

and update these lists/maps

minor fox
#

you might want to look into GSON to use it with redis

worn sierra
#

i know gson

minor fox
#

you can parse your maps with that

worn sierra
#

so to update the map, I get the string from redis deserialize it to a map add/remove fields and serialize it back then set to database?

minor fox
#

yes that's an option

worn sierra
#

i don't think this is a good option if the map is big

minor fox
#

what exactly does this wrapper contain that makes it big?

worn sierra
#

I am actually trying to learn more and more

#

like trying to better

#

I don't even have a server tbh

minor fox
#

You might already know this, but redis stores everything in memory, meaning that you should look for options if your data is huge

worn sierra
#

yes I know that

#

trying to code a cache system already

#

that's why I use redis

minor fox
#

a cache for online players or similar?

worn sierra
#

yep

#

exactly

hybrid spoke
#

why do you want to store it on redis?

minor fox
#

bungee for example

#

easy scaling

#

but have you normalized/optimized the wrapper? is the data you're storing really needed there?

worn sierra
muted idol
#

hey does anybody know how to always spawn on the spawnpoint when you join the server?
since when i rejoin it spawns me at my last location

hybrid spoke
#

yeah but to STORE DATA shouldnt you use a database?

muted idol
worn sierra
lilac dagger
#

nope

muted idol
#

aight, send it

lilac dagger
minor fox
muted idol
#

thx

lilac dagger
#

/setspawn

sage swift
worn sierra