#help-archived

1 messages ยท Page 50 of 1

keen compass
#

@subtle blade

heady shadow
#

Okรฉ, sorry

#

๐Ÿ˜‚

inland meteor
#

bruhh

#

you're asking, in a discord server of premium plugin creators, about cracked plugins

#

that's dangerous lmao

leaden dawn
#

plus if someone has operative systems knowledge can he write me dm?

naive goblet
#

Iโ€™d not to use those ones as they can be malicious

keen compass
#

operative systems knowledge?

leaden dawn
#

Yup

keen compass
#

Like what for example?

#

I mean I have OS knowledge but I mean, depends what exactly you need to know lol

leaden dawn
#

Process execution, memory management, process management

hallow urchin
#

Anyone know a plugin to give colored name for voters after a certain number of votes? Mainly looking for best voting plugin

frigid ember
#

If anyone knows how to run at system level like that new valorant anti cheat, dm me (this is a joke, for the record)

vale slate
#

which OS

trail dust
#

Anyone familiar with the Factions UUID API and can give me a hand?

bitter kernel
#

@trail dust learn java

leaden dawn
#

I had the question about what would happen if I try to access an invalid memory position, and no exception is thrown (the process execution keeps live).

keen compass
#

the OS does matter in this case, since you need to know those things. But most of that is taken care of by the kernel though

#

An exception is always thrown for that

leaden dawn
#

would this os explode?

keen compass
#

no

trail dust
#

@bitter kernel you're not very nice are you

dusty topaz
#

Is it possible to add glowing effects to a player skull?

leaden dawn
#

Imagine that it is not. I'm talking about a totally native os, built without that exception. (but it is handled and the access denied)

dusty topaz
#

Looking into it I don't think you can

keen compass
#

In windows, depending which memory position it was, it gets logged. If it was a protected area it will throw a security exception and the OS will kill your application or contain it.

frigid ember
#

@trail dust pretty sure there's github documentation

trail dust
#

Aye but I get an error when compiling the code

#

error in opening zip file C:\Users.m2\repository\com\mojang\brigadier\1.0.14\brigadier-1.0.14.jar

keen compass
#

because that isn't a zip file

#

it is a jar file, so use winrar

vale slate
#

it is a zip file

trail dust
#

I have winrar

keen compass
#

yes, but not a zip file that windows recognizes

leaden dawn
#

@keen compass interesting, that's for that.

trail dust
#

But I never changed anything to do with the brigadier.jar

vale slate
#

the java unzipper should recognize the file

frigid ember
#

@keen compass I'd presume that his Java IDE would be capable of opening Jars

trail dust
#

I never touched it

hoary parcel
#

You can tell windows that it's a zip

trail dust
#

Never had the error before trying to implement the Factions UUID API

frigid ember
#

@trail dust is it giving any description?

#

Or just saying there's an error?

trail dust
#

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.1.0:shade (default) on project Quarry: Error creating shaded jar: error in opening zip file C:\Users\.m2\repository\com\mojang\brigadier\1.0.14\brigadier-1.0.14.jar

#

Thats the whole error

#

From trying to run through Maven

hoary parcel
#

Delete the file and try again

#

It's most likely corrupted

keen compass
#

^

frigid ember
#

Yeah, looks like a corrupted file or a permissions error, you running as admin?

trail dust
#

Okay I'll give it a go

#

Yeah running as admin

frigid ember
#

Always gotta check

hoary parcel
#

Shouldn't run build scripts as admin....

#

That's how you create perm issues

#

Not solve them

frigid ember
#

@hoary parcel yeah, but it'd bypass a perms issue in the given location, telling us if it's perms or if it's corruption

trail dust
#

Still getting the same issue

frigid ember
#

Please forgive the disturbance, but I would like to inquire which deobfuscation mappings you are using.

hoary parcel
#

Well, deleting will solve the problem no matter what ^^

#

You will get the same answer as on paper @frigid ember

#

The worst mappings there are, spigot mappings

trail dust
#

Plugin works perfectly fine in game so cant be anything todo with the jar?

frigid ember
#

Well, but are Spigotโ€™s deobfuscation mappings publicly available?

hoary parcel
#

Yes, they are all rights reserved tho

frigid ember
#

@trail dust looks like you're gonna have to reinstall the repo

hoary parcel
#

@frigid ember ^

trail dust
#

@frigid ember do I just get rid of the repo, compile, then reimplement it?

frigid ember
#

That should work

#

Thank you very much, @hoary parcel!

trail dust
#

Aight, I'll try it

#

ty

#

works perfectly fine without the repo, reinstalling it now

frigid ember
#

Done some digging and only found 2 known causes, one of which is to do with HTML files with 301 codes in the repo, the other is corrupted data and idk about you but I doubt it's html lmao

hoary parcel
#

301 are fine

trail dust
#

yeah we will see

frigid ember
#

MVN doesn't handle the as expected all the time @hoary parcel

trail dust
#

Still throws back the same error lmao

hoary parcel
#

My repo uses 301ers

frigid ember
#

hm

keen compass
#

if on windows, running as admin will bypass the majority of permission problems lol

trail dust
#

Have you ever used the Factions UUID API or is it just as unknown to you as me?

frigid ember
#

Never used it tbh

#

The only real reasons I can see that error occurring like that are corrupted data or permissions and if you're running as admin it's probably not permissions, where did you get the repo?

trail dust
#

from the docs

frigid ember
#

So the error only occurs with the FactionsUUID repo present? Take it away and it's fine? What java version are you using?

trail dust
#

Java 1.8

#

Take it away its perfectly fine

frigid ember
#

have you checked that C:\Users.m2\repository\com\mojang\brigadier\1.0.14\brigadier-1.0.14.jar actually exists?

trail dust
#

Ill go check now

frigid ember
trail dust
#

Cannot find that jar I aint gonna lie

frigid ember
#

Looks like you need to include that repo

trail dust
#

It's a corrupt file :/

frigid ember
#

What? When you compile Brigadier?

#

you want version 1.0.14

trail dust
#

Nah I got rid of the Brigadier error

frigid ember
#

ah

trail dust
#

I just installed a new version of the 1.0.14

#

Now i got a new error lmao

frigid ember
#

screenshot?

trail dust
#

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources) on project Quarry: Cannot create resource output directory: C:\Users\Manic\IdeaProjects\Quarry\target\classes

frigid ember
#

Supposedly resolved by adding maven-filtering 1.3

#

or disabling filtering

trail dust
#

I aint got a clue what any of that is

frigid ember
trail dust
#

banging ty give me a second

uncut whale
#

Hello, I'm having a problem. Tab complete is not working for anyone on my server until after they have died at least once after logging on, with the only exception being OPs. I have made sure the tab complete in spigot.yml is set properly. What else could be causing the problem?

frigid ember
#

@uncut whale you've not been loading plugins while the server's up have you?

uncut whale
#

... i dont think so.

#

but i may have loaded 1 at some point

keen compass
#

if ops are not affected it sounds like maybe a permissions problem o.O

#

or what @frigid ember said

frigid ember
#

Yeah

#

Not using bungee are you?

uncut whale
#

no

frigid ember
#

Can you screen shot a plugin list? See if we can pinpoint where the issue is coming from?

uncut whale
#

sure, will do

#

it alright if i just paste it?

frigid ember
#

Yeah

frigid ember
#

It's GM causing the issue

#

I'm pretty confident

uncut whale
#

any idea what i can do to fix it?

frigid ember
#

Swap to LuckPerms

#

Does exactly the same, has a really nice editor

trail dust
#

@frigid ember This Factions UUID API is corrupting literally every jar file, that last error was fixed but another error followed ffs

frigid ember
#

What's this one? RIP

trail dust
#

Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.1.0:shade (default) on project Quarry: Error creating shaded jar: error in opening zip file C:\Users\Manic.m2\repository\org\spongepowered\configurate-hocon\3.6.1\configurate-hocon-3.6.1.jar

frigid ember
#

I'd get in contact with the dev to be honest

trail dust
#

I aint even sure its worth all this effort

uncut whale
#

ok, ill have a look at luck perms, thanks

frigid ember
#

You're probably not developing for sponge right?

#

Cause that'll be why that repo is missing

trail dust
#

Nah not for sponge

#

Just tryna implement APIs to prevent people griefing with my plugin

#

But its being nothing but a pain

frigid ember
#

I'd get in contact with @jagged wolf (hope he doesn't mind me tagging him)

trail dust
#

Alright I'll give it a try

#

We allowed to try and dm on here? Cause I'll try dming him? Or wait?

frigid ember
#

Hopefully he'll be able to clear it up for you

#

Lemme check his profile 1 sec

keen compass
#

what plugin you have that allows griefing o.O

trail dust
#

It aint out yet but its a quarry plugin and Im tryna stop griefing in protected areas

#

The fundamentals of the quarry are done, just tryna stop griefing

keen compass
#

generally hooking into worldguard is plenty good enough

#

factions uses worldguard

trail dust
#

I've hooked into worldguard already so Imma just spend my time working with that

frigid ember
#

There's nothing on his profile saying he does or doesn't mind ๐Ÿคทโ€โ™€๏ธ I'd see if there's a factionsUUID discord first though

#

may be better to ask through that

keen compass
#

no need to implement factions api for what is trying to be accomplished

trail dust
#

Thanks for trying to help tho @frigid ember ๐Ÿ™‚ It was a good try

#

@keen compass what do you recommend?

keen compass
#

hook into worldguard, factions uses it

trail dust
#

Just hooking into worldguard and using that

frigid ember
#

If you do want to contact him still, there's a discord linked on the plugin website @trail dust

trail dust
#

@frigid ember Shoot, I'll go look into that and join, cheers man]

#

@keen compass is it worth hooking into the townyAPI while I'm at it, or does that use WorldGuard too?

keen compass
#

Towny does its own thing

trail dust
#

Aight, I'll use its API then

civic mica
#

i need help with the website

trail dust
#

Thanks for all the help guys

granite cedar
#

in what order should these appear in my gui
friends, party, clan, recent players

civic mica
#

its telling me that i need to either try again or contact an administrator, it tells me no matter what i put in any of the boxes that its wrong

keen compass
#

ah the millionaire is back with more questions

granite cedar
#

you act like millions is a lot of money its really not

keen compass
#

I know its not

granite cedar
#

anyways please suggest the order

keen compass
#

However though, millions is a lot depending on who you ask though ๐Ÿ˜‰

granite cedar
#

my mentor is a multi billionaire

keen compass
#

if you live a frivolous life style then sure its not a lot

granite cedar
#

hence why i say millions is nothing

keen compass
#

well billions is 100 times more then millions where as if you compare thousands to millions it isn't as great of a leap XD

frigid ember
#

Depends on the currency you're talking, if we're talking Iranian Rial, I earn 2616527031.34 / year lmao

granite cedar
#

jef bezoz has like 120 billion lol

civic mica
#

um can i please get help

keen compass
#

not in cash

#

most likely 120billion in assets

granite cedar
#

to jef bezoz the money i have is poverty

#

even though i have millionslol

frigid ember
#

@civic mica none of us are forum staff, you'd have to tag one most likely

#

Most people with money have it all tied up in shares lmao

keen compass
#

more correctly termed assets

#

because you can have it tied to other things like real estate or other such things

civic mica
#

um @atomic rapids could i get help? i cant create an account on the website and its telling me to contact an administrator

keen compass
#

not necessarily stocks

granite cedar
#

when you make your first million everything is just a breeze

keen compass
#

not hard to make a million

#

even those in poverty can make a million

frigid ember
#

Most people don't care enough to want to make a million lmao

granite cedar
#

yeah members of the society im a member are many who come from poor backgrounds

#

henry ford even grew up poor

keen compass
#

easiest way is leveraging savings accounts

prisma basin
granite cedar
#

but anyways give me suggestions please

prisma basin
#

if i execute sql in sql manager this is work

keen compass
#

most people don't realize they make enough to make a million just using a savings account in just 2-5 years

frigid ember
#

@prisma basin SQL syntax is wrong

#

simple as that

civic mica
#

um please help?

granite cedar
#

im 25,000 in the queue...

prisma basin
#

@frigid ember if i execute sql in sql manager it's work

granite cedar
#

stop nagging @civic mica

keen compass
#

queue?

granite cedar
#

on hypixel

keen compass
#

ah

granite cedar
#

to join lol

civic mica
#

i just want to be able to make an account???

#

and it told me to come here so

frigid ember
#

@prisma basin looks like you've not given it a name for the table

granite cedar
#

well spamming wont get help

civic mica
#

im not spamming

uncut whale
#

got another question for you guys now that im doing the migration from groupmanager to luckperms. as part of the process, it says to double check that the old setup is working properly first. anyway, gm seems to be working fine and players still have their perms, however the chat prefixes have disapeared. should i be worried about this or can i go along with the migration?

prisma basin
#

@frigid ember table name is table_name

frigid ember
#

@prisma basin what SQL server you using?

prisma basin
#

mysql

frigid ember
#

Linux?

prisma basin
#

yes

frigid ember
#

Using root?

prisma basin
#

not

frigid ember
#

You've given the account permission to create tables on that DB?

prisma basin
#

yes this is can create tabele

keen compass
#

should probably note, the account being referred to isn't the same user that the application is running under

#

mysql has its own user stuff

frigid ember
#

Yeah

#

MYSQL server version?

prisma basin
#

latest

frigid ember
#

You've also not selected the DB by the looks of it

prisma basin
#

ok

frigid ember
#

Though you may not need to, haven't used the driver tbh

prisma basin
#

new sql ```"SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";USE chat;CREATE TABLE IF NOT EXISTS table_name (id int(4) UNSIGNED NOT NULL AUTO_INCREMENT,player_namevarchar(255) NOT NULL, player_displayname varchar(255) NOT NULL, player_chatprefixvarchar(255) NOT NULL, player_chatsay varchar(255) NOT NULL, PRIMARY KEY (id) ) ENGINE = InnoDB DEFAULT CHARSET =latin1;"

frigid ember
#

It'd be SELECT chat;

keen compass
#

your query is correct, however because you running the query from java, you have to do it differently. You need to have your query as a string

#

currently as it is, it isn't recognized as a string, the whole thing needs to be encapsulated within quotes

prisma basin
#

all was encapsulated within quotes

frigid ember
#

Does the query also need quotes, even though the statement is a string?

prisma basin
#

i don't now

keen compass
#

;USE chat;
remove that

#

you should be using the correct DB given your connection URL

prisma basin
#

ok

keen compass
#

SQL_MODE should be set using the driver options

#

shouldn't need to send that in a query o.O

#

anyways, other then the USE chat part, it should run fine, unless your string is being escaped somewhere

prisma basin
#

but remove SQL_MODE?

uncut whale
#

@frigid ember luck perms wants me to specify flags before it does the migration... migrate as global> -> if world permissions should be ignored, and just migrated as global

#

i want to migrate everything, but im not sure what to add

prisma basin
#

i removed sqlmode and work thx

flint palm
#

can someone help me create the workspace for plugins? i already installed eclipse, jdk, but im having trouble with buildtools
i used git bash to create the files, but i dont have the same as in this tutorial (i saw it on the bukkit wiki)
https://youtu.be/-LPBsw5qM-I

frigid ember
#

@uncut whale it deals with that on a per plugin bases, can you share exactly what it says in chat?

uncut whale
#

im doing it to try and migrate from GroupManager to luckperms, hold on ill copy exactly what it says

prisma basin
#

whats is this?

frigid ember
#

basically you don't have an SSL cert

#

is all it's crying about

uncut whale
#

@frigid ember 28.04 20:15:18 [Server] pool-12-thread-1/INFO Command Usage - groupmanager
28.04 20:15:18 [Server] pool-12-thread-1/INFO > Migration command
28.04 20:15:18 [Server] pool-12-thread-1/INFO Arguments:
28.04 20:15:18 [Server] pool-12-thread-1/INFO - <migrate as global> -> if world permissions should be ignored, and just migrated as global

prisma basin
#

how to use ssl cret?

uncut whale
#

this is after i enter lp migration GroupManager into the console

frigid ember
#

Ah, 1 second

vale slate
#

depends on the OS the mysql server is running

#

on

hallow urchin
#

Is there a rankup plugin based on time? for 1.15.2?

#

thats simple

keen compass
#

you would need to create an SSL cert and then tell MySQL to use that to get that error to go away @prisma basin

frigid ember
#

@uncut whale it probably wants you to use "lp migration GroupManage true"

keen compass
#

just use letsencrypt

frigid ember
#

Not ever migrated from it myself

keen compass
#

they have documentation on creating certs

uncut whale
#

ok, ill try that

keen compass
#

@hallow urchin there is quite a few of those if you look between bukkit and spigot resource pages

prisma basin
#

ok

frigid ember
#

@flint palm so, you've got build tools sorted? Just not got a workspace set up for eclipse?

hallow urchin
#

ive tried one but no luck on updated ones

uncut whale
#

@frigid ember ok its going

frigid ember
#

Excellent

#

Don't forget to remove group manager after (keep the config, just remove the jar)

keen compass
#

or just add .disable after it

#

as long as it isn't named .jar it won't load

frigid ember
#

^

keen compass
#

I don't always remove plugins, sometimes I like to keep them just in case

#

XD

frigid ember
#

yeah, I do that too, a lot of the time it's just easier to tell end users to delete them though lmao

keen compass
#

lol

#

especially if on windows

#

since you know, that doesn't work unless you have special options enabled

#

on my windows, I keep extensions visible

#

instead of hidden

flint palm
#

@frigid ember in the tutorial the guy adds a bukkit and spigot server jar to referenced libraries, i only have a spigot jar, also he has a buildtools exe, idk where to get that

keen compass
#

?bt

worldly heathBOT
keen compass
#

you only need the SpigotAPI reference

#

don't need both

#

oh wait, what are you doing?

uncut whale
#

@frigid ember worked perfectly, everything moved, and now the commands are tab completing. Thanks for the help.

frigid ember
#

Yeah, you shouldn't need both

#

@uncut whale No worries, any time

keen compass
#

Ok well that saved me from scrolling

frigid ember
#

Well, at least we now know that Groupmanager breaks tab complete

#

rip gm

flint palm
#

ok, but the exe? im blind or that guide only explain the git bash part

keen compass
#

there is no buildtools.exe

#

there is only buildtools.jar

frigid ember
#

Was gonna say?

#

Unless he's made a custom one

keen compass
#

the link above for buildtools will guide you on how to use it

frigid ember
#

or is using a third party one

keen compass
#

probably using a third party one which I don't recommend since it isn't official

#

never know what it might contain

frigid ember
#

Yeah, better off creating a .bat

karmic pulsar
#

is anybody well versed in 1.12.2 GUI creation willing to help me?

hollow thorn
#

me

#

partialy

flint palm
#

buildtoolsgui, thats not necessary then?

frigid ember
#

"java -jar BuildTools.jar --rev latest" is the command to get the latest spigot

karmic pulsar
#

I literally just cant get it to work at all

keen compass
#

@karmic pulsar can you show some code?
?paste

#

?paste

worldly heathBOT
hollow thorn
#

or you could just post it here

vale slate
#

^please not

keen compass
#

yeah, but it isn't as nice to look at

frigid ember
#

Pasting in chat isn't ideal, kinda blocks it up especially when there's multiple people being helped

keen compass
#

just use the paste site, place link here after saving it

#

much better that way please ๐Ÿ™‚

#

I wonder if at some point I could get like a helper tag eventually >>

frigid ember
#

@flint palm BuildToolsGui is third party, I'd advise against it

keen compass
#

or maybe spend another couple years helping people in spigot XD

frigid ember
#

Is that an actual tag? lmao

keen compass
#

Yeah, there is IRC staff, then there is Discord Staff which I assume are the same ones on IRC

#

There is Resource staff who are the primary ones for reviewing resource related stuff

#

then the Forum staff etc

hollow thorn
#

there are also loads of tutorials

karmic pulsar
#

I have used alot of tutorials and when they dont work I just delete the code from them and move on to the next one

frigid ember
#

Fair enough, haven't been too active in the community for a while, but I'm back now lmao

keen compass
#

lol

hollow thorn
#

so what isnt working

karmic pulsar
keen compass
#

your name does seem familiar @frigid ember

#

just can't pin it at the moment

#

not that I have bothered looking

frigid ember
#

God knows, use to work with a lot of youtubers

#

had a few of my plugins duplicated

#

lmao

keen compass
#

same

frigid ember
#

that was back in 2016-2017 though

karmic pulsar
#

Let me see how far I can undo so I can get to the closest to working version

keen compass
#

you mean as far back as 2015

karmic pulsar
#

I got one and it just returned one error that was along the lines of owner cannot equal null for the title

frigid ember
#

I joined bukkit in like 2014

keen compass
#

looks like you have an announce plugin you abandoned >>

frigid ember
#

yeah

#

My public stuff was all awful

hollow thorn
#

so you have used bukkit.createInvenotry()

frigid ember
#

and was like olddddddd

#

lmao

keen compass
#

lol

#

well that project was created in 2015

karmic pulsar
#

yeah, give me one second to get to where I was and then I will share the code

keen compass
#

at least according to bukkit

frigid ember
#

I sorted dropped the public stuff when I got into doing private stuff

#

I was still in school in 2015 so

keen compass
#

Yeah so did I, it paid more ๐Ÿ˜›

frigid ember
#

Got curse premium or whatever it was free though ๐Ÿ˜‚

keen compass
#

Yep had that for a long time

frigid ember
#

think it was 10k downloads and you get it provided your projects stay active lmao

keen compass
#

all because of like 2 plugins

#

HoloAPI and ServerTutorial

#

it was every 100 downloads

frigid ember
#

Never paid too much attention tbh

keen compass
#

They could have changed it since then though

#

But I didn't care since I didn't use curse anyways

karmic pulsar
keen compass
#

still don't XD

karmic pulsar
#

I think that should be it

keen compass
#

shouldn't use statics

#

bad habit/practice

#

and bad things tend to happen when used improperly

hollow thorn
#

so whats the error

frigid ember
#

@karmic pulsar what's the error?

karmic pulsar
#

Owner cannot equal null

keen compass
#

my recommendation would be to create your inventory and hold a reference to it so that you are not creating a bunch of inventories

#

And owner can be null

#

Owner in this case should be null so that everyone can see it

karmic pulsar
#

Thats what the error is though

#

"Owner cannot equal null"

frigid ember
#

What is it an IDE error?

#

Can you screenshot?

hollow thorn
#

the number needs to be a duplicate of 9 last time i checked

karmic pulsar
#

I have to recreate some things really quickly so I can grab that for you

hollow thorn
#

and wheres the code where it is implemented

frigid ember
#

InventoryHolder is nullable

keen compass
#

that is what I said o.O

frigid ember
#

Yeah

#

I just checked docs

#

gotta make sure ๐Ÿ˜‰

keen compass
#

You set it to null if you want everyone to be able to see the inventory

#

otherwise set some kind of name for it

hollow thorn
#

you could try swapping

#

the null

#

for player

keen compass
#

don't set it to a player, that isn't going to work

#

at least not in the way you think

karmic pulsar
#

So its supposed to be a GUI that you pick your race on, then after you pick your race it starts a conversation so you can set your characters name, age, gender, etc

#

The conversation works without the gui atm

keen compass
#

that is fine, just telling you the more optimal way to do the gui thing. That is create your inventory separate from your method that requires the player. Hold a reference to that inventory in your main class. This prevents having to create objects for the inventory every single time.

#

Inventory isn't changing, just there so players can select stuff

hollow thorn
#

try changing the 7 to a 9

frigid ember
#

Nah, you can have a 7 slot inv

hollow thorn
#

oh

frigid ember
#

or at least you use to be able to

keen compass
#

Also don't abuse the statics either

hollow thorn
#

il be back

keen compass
#

only use them if you know what they are for

#

otherwise you end up using them improperly and just hurt the overall performance or end up with confusing errors

static pecan
#

Hi, is this the place to ask dumb questions about Spigot/BungeeCord ? I don't see anyone in here asking dumb questions...

frigid ember
#

Fire away

keen compass
#

yes ask any dumb question you like ๐Ÿ™‚

static pecan
#

cool

keen compass
#

It appears this is going to be an essay question o.o

frigid ember
#

Redoing my GCSE computer science here

keen compass
#

I don't do college lol

devout sierra
#

@keen compass
OI u want dumb questions? I sure can deliver those

keen compass
#

I am pretty sure you can

vale slate
#

We all could

keen compass
#

Here is a random question, what kind of motor should I buy for my Semi?

hollow thorn
#

did you use openMain() or openMain(Player)

vale slate
#

a steam powered

frigid ember
#

Depends on what you mean by semi @keen compass

hollow thorn
#

where player is the player var

frigid ember
#

I hope you're talking about a truck ๐Ÿ˜‚

keen compass
#

it is a type of truck, I take it you are not from the US?

frigid ember
#

Nah I know it is

#

But there's also another kind of semi

devout sierra
#

GTA 5 has servers, but in reality most of the stuff is hostet by the players themselves and the server just gives feedback on your actions as far as I know.

Is something like this asynchronous server setup possible with spiggot

frigid ember
#

though it'd be hard to use a motor on that one

keen compass
#

lol

frigid ember
#

@devout sierra even if it were, never do it

devout sierra
#

Pretty sure the answer is no but I'm curious anyways

vale slate
#

No

frigid ember
#

short answer no

keen compass
#

@devout sierra complicated answer is yes though

devout sierra
#

@frigid ember
Probably the worst that could happen is that players find a way to trick servers so they can cheat

frigid ember
#

you'd have to rework the client too

vale slate
#

^

frigid ember
#

@devout sierra exactly, which is why GTA is such a mess

hollow thorn
#

@karmic pulsar did you use openMain()

#

did you use openMain()

keen compass
#

well GTA uses P2P which is easily manipulated

#

which is why cheating is so prevalent for it

frigid ember
#

You can't offload the work load to clients without risking manipulation, it's an awful way to make a game server

devout sierra
#

I know but the server I'm running shouldn't have anything you could mess up in-game

keen compass
#

you would be surprised

frigid ember
#

Where there's a will, there's a way

keen compass
#

for instance, if you are in creative the server stops checking certain things. For instance in creative you can spawn infinite items with just a few packets which the server would normally check or restrict

devout sierra
#

There's no such thing such as OPs, we don't have them ourselves and there are no plugins installed that can be used with commands

#

Oh yeah creative might be a problem

vale slate
#

well, if you combine a client and a server the client hosting has control over the server so they can manipulate basically everything

frigid ember
#

Yeah, but he wants to use a server as a handler

#

but no more than a handler

#

so you could offload to multiple clients in theory

keen compass
#

probably be better off modifying the proxy for that though

frigid ember
#

A lot of Arma 3 mods do it

#

they off load AIs etc to clients

static pecan
#

I'm an IT guy by trade, but I've never really been into the minecraft gaming thing. I just got a new home lab set up.. sortof. My roommate convinced me to set up a Minecraft server for him and his siblings to play. So I set up a VM in Hyper-V on Server 2019. I gave it a 8cores, a 250GB vhd, and 32GB of Ram. I keep getting this error "[13:41:32] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2071ms or 41 ticks behind" a google search sent me to Spigot, and then to Bungee Cord.

devout sierra
#

But the thing is, this should theoretically give them an option to play without laags and maybe higher render distance

#

And I'm digging that

keen compass
#

you need to optimize the JVM flags @static pecan

frigid ember
#

@static pecan ^

keen compass
#

also not recommended to give the server more then 10GB of ram

#

its counter intuitive to the GC

frigid ember
#

Hello guys, when i zoom out on my dynmap the map dont load, can anyone test it for tell me if it work so i know if the problem come from me ? Thx http://116.202.225.157:26442

vale slate
#

you could use parallelGC as you won't loose frames on a server

frigid ember
#

@frigid ember only just installed?

vale slate
#

@keen compass

keen compass
static pecan
#

It's currently using 8.6G of ram with no users logged in @keen compass and I have no idea what a JVM flag is.

frigid ember
#

@frigid ember WUT ?

devout sierra
frigid ember
#

@frigid ember did you only just install dynmap

#

?

keen compass
#

Even with parallelGC there is always the stop the world GC if it hits a certain limit @vale slate

#

the goal is to prevent it from hitting that limit very often

#

but if you set a large ram allocation to the MC server without tuning the GC

#

then the GC is going to have problems keeping up once GC needs to be done

frigid ember
#

@frigid ember eu i have a lot of plugin if its your question.

keen compass
#

it is possible to go above 10GB just requires a lot more in tuning is all

vale slate
#

yeah, the GC system of Mc is very discouraged

static pecan
#

brb

keen compass
#

I posted a link for you for flags to use in your startup @static pecan those should be sufficient for your needs

sacred wave
#

Is this behaviour normal? I know I shouldn't set damage above max durability, but shouldn't at least exception be thrown?

static pecan
#

I saw it, just went there.... I'll be back when I get an understanding of those flag....

keen compass
#

most of those is tuning the GC

#

the others tune the JVM

vale slate
#

Is this behaviour normal? I know I shouldn't set damage above max durability, but shouldn't at least exception be thrown?
@sacred wave no the tool will get this fancy red line

#

indicating the "negative" durability

keen compass
#

in other words yes it is normal

static pecan
#

acronyms!! ๐Ÿ‘€ LOL

keen compass
#

GC = Garbage Collection JVM = Java Virtual Machine

static pecan
#

ok, going to research before I ask more ignorant questions.

keen compass
#

Java takes care of the garbage collecting instead of the programmer having to code in that stuff, however because of that it leaves it to the end users to tune the GC though for the application they are running

prisma basin
#

INSERT INTO chat (player_name,player_displayname,player_chatprefix,player_chatsay) VALUES (`cc2`,`cc2`,`&agracz`,`&a`) why this is don't create new record in tabele

sacred wave
#

@vale slate , @keen compass ok ๐Ÿ˜„ I was hoping when the durability is set to max or above max it will be destroyed... ๐Ÿ˜„

#

thank you

keen compass
#

if you want it to be destroyed set it to 0

#

or just use the break method

#

think there is one for item tools

vale slate
#

yes

ocean mortar
#

Someone german?

sacred wave
#

@keen compass and where is the break method? it is not under ItemMeta or Stack... :/

ocean mortar
#

I Want to make a grappling hook with script

keen compass
#

ok maybe there might not be one

vale slate
#

I wish you fun, use a fishing rod

keen compass
#

guess it would be a nice PR for someone if someone wants to implement that ๐Ÿ˜›

frigid ember
#

@sacred wave don't think there is one, just replace it with nothing?

keen compass
#

or I guess just set the durability to 0 or remove it yourself

ocean mortar
#

Can someone help me with the Script or can send me a script

keen compass
#

skript I believe has its own support areas if I am not mistaken

vale slate
#

^

sacred wave
#

@frigid ember i guess it will be the only solution...

#

@keen compass Well the item did not break when the damage was equal to the MaxDurability...

rugged void
#

what is the one eyed fish like thing that shoots beams and destroys my wooden fences?

sacred wave
#

so I will have to do that manually.

rugged void
#

mucking around skyblock and it keeps spawning them

frigid ember
#

@rugged void elder guardian?

keen compass
#

^

rugged void
#

ah yeh how the heck do i kill the damn thing

frigid ember
#

There's also just the Guardian

rugged void
#

even a diamond sword didn't kill it

keen compass
#

Guardians don't shoot beams though

#

they ram you or whatever

vale slate
#

they do

frigid ember
#

True

#

do they?

vale slate
#

yep, pretty sure

sacred wave
#

Thank you all anyway! ๐Ÿ™‚

keen compass
#

I thought it was only the Elder Guardians that shoot beams o.O

naive goblet
#

Both does

frigid ember
#

Yeah they do, looking at the wiki

rugged void
#

they both do

keen compass
#

guess I need to play MC more often then

#

XD

naive goblet
#

The EG is more powerful but still not categorized as a boss I think

rugged void
#

except that last one i ran into

#

removed all my fences

#

i almost fell off the edge

keen compass
#

interesting you are having it spawn out of the water

rugged void
#

it's skyblock

#

the single block

keen compass
#

Not sure what skyblock has to do with them spawning out of the water o.O

rugged void
#

the single block spawn stuff

keen compass
#

the block is shooting beams? o.O

rugged void
#

nono the game starts off with only the one block u stand on

#

unlimited block

keen compass
#

ah right, but still though. Spawning a guardian in skyblock XD

rugged void
#

on rotation it spawns mobs too

frigid ember
#

Seems like a bit of a random mob lmao

rugged void
#

think it goes up in stages

soft pecan
#

i need help

frigid ember
#

Fire away @soft pecan

keen compass
#

Everyone needs help

rugged void
#

i can't seem to kill the damn thing though

keen compass
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

soft pecan
#

please anyone can help me please

naive goblet
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

rugged void
#

but then again they kept jumping around shooting beams almost killing me then they fall off the edge

keen compass
#

I guess just create shield areas

soft pecan
#

i hosting the server mc and know i cant fix permission

keen compass
#

and wait till they suicide

naive goblet
#

brumen what host?

soft pecan
#

now*

#

localhost

rugged void
#

vanilla?

soft pecan
#

spigot

frigid ember
#

They give you mining fatigue too right? @rugged void

naive goblet
#

Use LuckPerms

#

?

frigid ember
#

^

rugged void
#

um no clue about the fatigue

soft pecan
#

i use luckperms but i dont know fix that thing i got problems with that

naive goblet
#

What problem

#

Specify

frigid ember
#

Right, well what's the issue?

soft pecan
#

i dont know i create luck perms permission but doesnt work

naive goblet
#

You have vault?

frigid ember
#

You using the editor?

soft pecan
#

if you change to player you cant use shop money and everything you cant use it

#

i have vault

naive goblet
#

And be sure to not have any other permission plugin. It might mess it up

soft pecan
#

yes i use notepad++

frigid ember
#

noooo

#

use lp editor

#

command

naive goblet
#

Uh

frigid ember
#

less syntax issues

naive goblet
#

Youโ€™re probably dealing with syntax error

#

^^

narrow crypt
#

So i have this weird bug, i hope anyone can help me
I am saving chestscontents to my chestloot.yml
using:

chestloot.set("loot." + args[0].toString(), chestinv);

where chestinv is chestinventory.getContents()
But when i load it i got some errors, after changing the load line to:

ItemStack[] contents = (ItemStack[])(chestloot.get("loot." + args[0].toString() ));
``` it worked
But when i restart the server and load the same chest it gives a null 
I found out that this line worked too
```java
ItemStack[] contents = chestloot.getList("loot."  + args[0].toString()).toArray(new ItemStack[0]);

so the problem is that the first loadline works without restarting and the second one with restarting, currently im just doing: try method1 catch exception and do method 2 but i prefer 1 method
Anyone an idea

soft pecan
#

i use lp editor

naive goblet
#

Good

frigid ember
#

@narrow crypt what's the issue if it only works on restart?

soft pecan
#

and then i get link

frigid ember
#

Reloading isn't advised anyway

narrow crypt
#

what do you mean sableplugins?

keen compass
#

you are not saving the file @narrow crypt

soft pecan
#

and save and put link on game and its load but still dont work

keen compass
#

need to call the save method before stopping the server

#

otherwise all your changes you did to the file are just in memory

soft pecan
#

i do de save method

keen compass
#

that wasn't for you brumen

narrow crypt
#
blic void saveChestloot() {
        try {
            getChestloot().save(chestlootFile);
        } catch (IOException e) {
        
            e.printStackTrace();
#

im calling this onDisable()

keen compass
#

then its not saving if you are getting a null when it tries to load it

narrow crypt
frigid ember
#

@soft pecan run the save as console

naive goblet
#

When writing in a file you should always save it afterwards

narrow crypt
#

im also calling it when a user saves a chest

keen compass
#

are you creating the file at all ?

narrow crypt
#

yea im doing that conclure

#

yes

#

the file is there, it also adds the itemstacks

#

and the loading does work

naive goblet
#

It doesnโ€™t load the array correctly?

narrow crypt
#

but only on 1 of the 2 methods depending on when it was saved

#

let me give you the error

frigid ember
#

Error codes are key

naive goblet
#

Yeah give us the stacktrace

soft pecan
#

conclure can you come on private please

keen compass
#

oh no

narrow crypt
#

that error gives it if i use ItemStack[] contents = (ItemStack[])(chestloot.get("loot." + args[0].toString() ));

keen compass
#

ArrayList can't be cast to ItemStack

frigid ember
#

java.util.ArrayList cannot be cast to [Lorg.bukkit.inventory.ItemStack;
at me.rik.Airdrop.Main.onCommand(Main.java:264)

keen compass
#

if you want to save inventories serialize them first

#

then save it

#

then when loading deserialize it

narrow crypt
#

264 is the itemstack[] contents = blablbalba

frigid ember
#

Yeah, you can't just straight save an itemstack

narrow crypt
#

i just put under the error

#

but using ItemStack[] contents = chestloot.getList("loot." + args[0].toString()).toArray(new ItemStack[0]); does work

naive goblet
#

if you make a list of ItemStack how is it saved?

keen compass
#

because the first one you are trying to cast a list to ItemStack

naive goblet
#

W/o serialize

narrow crypt
keen compass
#

Anyways, the best way to do this is to serialize the inventory contents

#

and then save it. There is API methods for it

#

when you load it, you deserialize it

narrow crypt
#

is everyone using that to save inventories @keen compass

naive goblet
#

Ah yeah serialize it. You could use per config section item

rugged void
frigid ember
#

Serialization is the best method to do it regardless

naive goblet
#

Mhm

frigid ember
#

Some people have their own ways they like to do it

#

but if you don't have a set way, serialize it

keen compass
#

Serializing allows you to save the entire object as it is

#

and then get said object back

naive goblet
#

Idk if FileConfiguration(path, value) allows array. It has to be Iteratable right?

keen compass
#

List is allowed

naive goblet
#

I mean Object[]

keen compass
#

that is a type of List.

naive goblet
#

And a List is Iteratable?

keen compass
#

Well, List on its own isn't but ArrayList is

#

ArrayList is fine, since yaml supports string lists or arrays

narrow crypt
#

any good links to Serialize itemstacks/inventories?

#

where i can learn that

naive goblet
#

List supers Collection and Iterable

keen compass
#
inventory:
    - Item1
    - Item2
    - Item3

That is an array in Yaml

naive goblet
#

I was asking if FileConfiguration#set was capable of taking normal arrays

keen compass
#

yes

#

just toss the array object into it

#

but the array needs to be strings though

naive goblet
#

Not talking about strings or wrapper classes

#

I mean like Player[] or ItemStack[] it seems to be handled badly

frigid ember
#

IllegalArgumentExcepetion: Unkown meta type 111 @ net.md_5.bungee.entitymap.entitymap:281

keen compass
#

Well that is why you need to serialize for those things

frigid ember
#

anyone know how to fix that?

naive goblet
#

Or make lots and lots of trees

frigid ember
#

@frigid ember what's the plugin that's causing it?

#

Im not quite sure ;P

flint palm
#

i have a weird bug with fonts in some java programs, i see the file names like this in eclipse, it also happened in "chunky" launcher, for mc renders, does anyone know why this could happen?
https://i.ibb.co/TBQfrfQ/eclipse.png

keen compass
#

lol that is the slow way of doing it but sure @naive goblet

naive goblet
#

Yeah I hate yaml for the reason that you canโ€™t make it compact

frigid ember
#

@frigid ember can you post the full error on paste?

#

?paste

worldly heathBOT
frigid ember
#

hm

#

seems like its fixed

#

may be a world

#

I deleted all of the worlds

#

and it worked

keen compass
#

@naive goblet if spigot ever implements the recent yaml spec it can be

naive goblet
#

Have they done it?

keen compass
#

recent yaml spec allows for saving JSON objects natively ๐Ÿ˜›

naive goblet
#

Doesnโ€™t seem like it

#

Yeah we wish

narrow crypt
#

i feel quite ignored lol

#

haha

#

any good links ? ๐Ÿ˜„

naive goblet
#

Spigot got some

frigid ember
#

@flint palm which eclipse version you using?

keen compass
#

Me and MD already looked into it. SnakeYaml has an updated version for the recent yaml spec, but it would require completely changing how everything is done with yaml files currently that it would literally break every single plugin in existence

naive goblet
#

Literally google Spigot Serialize or something

narrow crypt
#

cause i tried 3 different methods over the last week and everytime i get told to do "..." and again

naive goblet
#

Ah yeah Frostalf thatโ€™s a rip

#

Just like BukkitRunnable

#

Exists for no reason other than people use it

keen compass
#

probably good bukkitrunnable exists

#

instead of having people who are new trying to do bad things with threads

frigid ember
#

@flint palm looks like it's probably a memory error though, check task manager, see what it's using

keen compass
#

At the very least BukkitRunnable curbs some of that lol

tough axle
#

Conclude could u just fucking reply to Rik?

narrow crypt
#

guys? ๐Ÿฅบ

#

please

tough axle
#

Just don't be a dick

keen compass
#

if you want to know how to serialize lookup Playervaults on github

narrow crypt
#

<3 chinese cat guy

keen compass
#

they do a very good job at serialize inventory contents

rugged void
#

so cool spider web works great on guardian

naive goblet
#

Well, I mean there exists better choices than BukkitRunnable in my opinion but yeah I guess it kinda have itโ€™s own usage

keen compass
#

@narrow crypt posted link for you

narrow crypt
#

yea thanks

#

ill check it out

#

thanks

flint palm
#

@frigid ember Version: 2020-03 (4.15.0), Build id: 20200313-1211

frigid ember
#

@flint palm graphics drivers up to date?

keen compass
#

Also the nice thing about BukkitRunnable @naive goblet is if you want to time your code to the same tick as the server

tough axle
#

@naive goblet actually annoying Jesus Christ.

keen compass
#

and not by execution

naive goblet
#

@tough axle What have I done lol

frigid ember
#

There's a few potential causes for the issue, so we'll work through them slowly and find it ๐Ÿ™‚ @flint palm

naive goblet
#

Also the nice thing about BukkitRunnable @naive goblet is if you want to time your code to the same tick as the server
True

#

@tough axle Can you come with something serious and more factual other than you think Iโ€™m a dick?

frigid ember
#

@tough axle For the record, we're all just members of the community and are not obliged to respond to anyone, so please, don't act like we have to help everyone that comes here, we do it out of generosity

keen compass
#

@flint palm make sure your region settings are correct on the system.

rugged void
frigid ember
#

@keen compass doesn't look like a region issue, I'm thinking more graphics driver or memory

naive goblet
#

Drowned?

frigid ember
#

isn't that a drowned?

keen compass
#

I think its an OS setting

#

lets bet to see who is correct

frigid ember
#

Maybe

keen compass
#

๐Ÿ˜›

frigid ember
#

idk, had it on an application before

#

Updating my Nvidia drivers resolved it

keen compass
#

@rugged void that looks like a Drowned entity

#

I suppose I should start working on a documentation site for the plugins I support >>

iron nebula
#

No

#

Thats actually zombie Notch

keen compass
#

interesting

frigid ember
#

coming back to taunt us with all the money he made by selling

keen compass
#

lmao

#

well you could potentially do the same @frigid ember ๐Ÿ˜‰

iron nebula
#

But Frost, don't do document page, nobody reads that shit

keen compass
#

I keep getting asked for one though o.o

iron nebula
#

Fucking useless when all the kids come to ur Discord to ask help that is covered in the docs already

#

I even put the Discord invite link to THE BOTTOM OF THE FUCKING PAGE

#

GIVE ME A BREAK

keen compass
#

I don't have a discord for that stuff XD

#

surprised no one has asked me to create one either

frigid ember
#

The amount of people asking here about server issues says a lot

iron nebula
#

If I didn't have Discord they would probs ask on the forums

#

ffs

keen compass
#

lol

iron nebula
#

I hate it over here

#

Lmao

frigid ember
#

half the time we're providing support for other people's plugins that people have failed at configuring lmao

flint palm
#

@flint palm graphics drivers up to date?
@frigid ember yes

keen compass
#

I suppose I could just create a discord for it XD

frigid ember
#

Although, I didn't know that GM broke tab complete until that guy came in earlier

#

that's a bit mad

iron nebula
#

Actually I just realized the forum page is full of people asking for help

#

But I have my notifactions turned off

#

LMAO

keen compass
#

mmm, didn't catch that message

frigid ember
#

@iron nebula 10/10 support ๐Ÿ˜‚

#

Doesn't like something in that message

flint palm
#

well, the bot keeps deleting it

iron nebula
#

Well its all over the same question thats covered in the page...

flint palm
#

specifically where?

frigid ember
#

Windows region settings, make sure it's set to your location

flint palm
#

yeah, it seems to be all right

#

maybe i have to specify the region in java? i never used java

#

so idk

frigid ember
#

Shouldn't do

#

I use an older version of eclipse tbh

#

How much memory is it using while running? @flint palm

keen compass
#

there is also another option to hide fonts by language as well if I recall

gritty mulch
frigid ember
#

@gritty mulch set a fallback server

#

then reload

gritty mulch
#

but people are still gonna get kicked

frigid ember
#

it's fallingback to a server it can't reach

gritty mulch
#

when they shouldn't

#

the server is fine, It's just kicking random people under this for no reason

frigid ember
#

the error is a scoreboard

#

"Team uHKlfBuwD9wfYMNZ already exists in this scoreboard"

gritty mulch
#

yea ik, but no info is given

flint palm
#

eclipse is using 500mb, i have tried chunky alone, chunky with minecraft and a server running, memory was always ok i think

frigid ember
#

hmmm

gritty mulch
#

Is there anyway to see what plugins are using the scoreboard?

frigid ember
#

Did you restart post installation? @flint palm (I know it's not really required, but never hurts)

keen compass
#

could always try a different IDE @flint palm netbeans and IntelliJ are decent alternatives

gritty mulch
#

๐Ÿ˜ฆ

flint palm
#

i dont reboot too much, but since installing java and chunky i restarted several times, reinstall java, chunky, everything, and it keeps happening

#

but i dont think its a ide problem

frigid ember
#

only other thing I can think is change the theme

#

it could be a windows issue

naive goblet
#

Letโ€™s be real whitescale themed eclipse is superior

flint palm
#

because it also happened to me in chunky, a totally different program

frigid ember
#

Ah

#

Probably a windows or memory issue then

keen compass
#

Then it sounds more like a driver, memory or setting problem

frigid ember
#

I'd "SFC /SCANNOW" from a elevated command prompt first

#

if that's no luck, re-install graphics drivers

#

I had it happen in my web browser before, it was graphics drivers that time

flint palm
#

the drivers are updated, all of them, 32gb ram, its probably some setting, but which one, thats the question

#

sure its a simple thing

frigid ember
#

Can always try resetting the default font via control panel

#

worth a go

flint palm
#

still the same

#

well, it doesnt matter, its not a big deal, ill fix it later

keen compass
#

I would probably do the sfc scan

#

if nothing else fixed it

#

sfc scan will fix things that are wrong with the system sometimes

#

who knows, it could just be a stupid registry entry missing

#

XD

flint palm
#

ok, ill try that later, thanks for the help

#

im trying to make a plugin that removes a specific item from any inventory, chest, whatever, i tried to use InventoryOpenEvent event, but idk what to do next, this is literally the first thing i do in java

frigid ember
#

Well

#

Take it you're watching a guide?

flint palm
#

mmm well, something like that, a youtube video, but i guess im overestimating myself just for having made plugins for other games

#

but never in java

frigid ember
#

It's not too bad, if you've got experience with any C derived languages you'll catch on pretty quick

flint palm
#

yeah, but the thruth is that i dont understand very well the bukkit wiki, it doesnt explain much

frigid ember
#

If you need to know how to do anything just give us a shout, in quarantine with very little to do lmao

keen compass
#

?jd

worldly heathBOT
keen compass
#

hmmm, I wonder if cafebabe is invitable to other discord servers o.O

frigid ember
#

Yeah

#

it's in 587k servers

#

@keen compass

keen compass
#

cool

frigid ember
#

YAGPDB.xyz is the site

keen compass
#

just have to figure out how to invite it

frigid ember
#

It's linked, top left of the website

flint palm
#

im not very familiar with oop, and afaik java is all classes, so i definitely have to see a guide or something about java, but for now the truth is that i want this very simple plugin to fix a problem in my server, the ill learn correctly in the near future

#

i dont understand what getInventory() returns

frigid ember
#

It returns an Inventory type

keen compass
#

what website?

#

oh nvm

flint palm
#

so, for example, Inventory inv = e.getInventory();?

frigid ember
#

Inventory inv = e.getInventory();
would allow you to do things like inv.Contains(ItemStack), inv.RemoveItem(ItemStack)

#

Yeah

#

If you then type "inv." on a new line it'll give you all available operations

keen compass
#

if you worked in other languages, then you might like some of the things in NIO package of java. Like memory mapped files or one that isn't used a lot or known, you can do bitshifting too ๐Ÿ˜‰

flint palm
#

mmm interesting

keen compass
#

also there is JNI as well

#

so you can call things from outside of Java that are part of other programs etc

#

so you could call C code in Java, although its an expensive operation

#

usually more handy in pushing things off to have something else process the input and then read the output later in java

#

but because of JNI that means you can push stuff to the GPU too

fiery jasper
flint palm
#

thats really interesting, but i guess thats more useful in mods, not much in serverside plugins, right?

keen compass
#

depends, sometimes the GPU is better in calculating stuff ๐Ÿ˜›

sage flame
#

That's most likely lag chuyangel

frigid ember
#

@fiery jasper should be an option in your spigot.yml

fiery jasper
#

yeah i enabled it

#

the flight

flint palm
#

what is the difference between ItemStack and Material? it must be a string? the literal name as it is in minecraft? like minecraft:iron_block for example, or i think bukkit has its own names, i think it would be IRON_BLOCK or something like that

frigid ember
#

"moved-too-quickly-threshold:"

fiery jasper
#

btw it is a 1.8

frigid ember
#

O

fiery jasper
#

wait wat?

frigid ember
#

Should be there in 1.8

sage flame
#

itemstack includes the entire stack of items and contains the material in it

fiery jasper
#

"moved-too-quickly-threshold:"
@frigid ember in my server.propeties or spigot.yml

frigid ember
#

can't remember when the option was added but pretty sure it was before 1.8

keen compass
#

Material is for blocks, ItemStack is for items in an inventory

frigid ember
#

spigot.yml it should be, unless they've removed it

fiery jasper
#

ok

#

lemme check

#

what value

#

do i set it

#

true or false?

#

found it

frigid ember
#

Aye

flint palm
#

so blocks and items are handled differently in the inventory

frigid ember
#

just increase it

fiery jasper
#

ok

keen compass
#

blocks in an inventory are Items. But when you place them, they will have a material

fiery jasper
#

lemem try it

keen compass
#

Handy to get the material of a block when you want to compare one block to another

#

or do something if a block is of a certain type

frigid ember
#

An ItemStack is anything in an inventory, it tells you the item type, it tells you the amount of items in the stack and item meta

#

to simplify it lmao

fiery jasper
#

got a problem

#

it still doesnt work

frigid ember
#

restarted?

fiery jasper
#

yes

frigid ember
#

Got an anti-cheat installed?

fiery jasper
#

no

frigid ember
#

hmm

fiery jasper
#

i set it to 300

flint palm
#

how would this be done correctly? i know that surely everything is wrong, even the if statement is unnecessary i think, but you understand what i want to do, basically remove all feathers in the server

public class FeatherListeners implements Listener {

    @EventHandler
    public void onOpenInv(InventoryOpenEvent e) {
        Inventory inv = e.getInventory();
        
        if (inv.contains(FEATHER)) {
            inv.remove(FEATHER);
    }
}```
frigid ember
#

@keen compass haven't done inventories in a while, do we still need to update inventories post altering when open?

subtle blade
#

There should be a #remove(Material) method iirc

#

So you're not too far off

frigid ember
#

On my bungeecord server the console ends with ```Listening on /0.0.0.0:25357

subtle blade
#
public class FeatherListeners implements Listener {

    @EventHandler
    public void onOpenInv(InventoryOpenEvent event) {
        event.getInventory().remove(Material.FEATHER);
    }

}```
dusky roost
#

Its important to note that the add / contains / remove methods in Inventory use getStorageContents

fiery jasper
#

and restarted the server

frigid ember
#

hmmmm

fiery jasper
#

so what do you think is the problem

frigid ember
#

actually

#

hold up

keen compass
#

going from 0, to 100 blocks away? o.O

fiery jasper
#

no

#

20

frigid ember
#

Only way you could do it is probably disabling movement checks on a player by player basis lmao

boreal pebble
#

Is there a plugin to change the MOTD without having to edit server.properties and restarting?

fiery jasper
#

wdym?

keen compass
#

what are you doing, using speed potion with insane speed on it?

frigid ember
#

Gotta check something hold on

fiery jasper
#

nvm

#

i got it

#

to wrokm

#

thanks tho

dusky roost
#

modifier on speed potion = 200

fiery jasper
#

thank you so much

flint palm
#

great, i thought i would have to do a for loop and iterate through every slot or something like that, its easier than i expected

#

how can i make a cmd to enable and disable this?

frigid ember
#

You'll need an onCommand first

public class <classname> implements CommandExecutor{
    
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        
    }
#

You doing it all in 1 class or using multiple?

subtle blade
#

๐Ÿ‘ O ๐Ÿ‘ V ๐Ÿ‘ E ๐Ÿ‘ R ๐Ÿ‘ I ๐Ÿ‘ D ๐Ÿ‘ E ๐Ÿ‘

frigid ember
#

I mean

#

fine

subtle blade
#

ty

#

I remember watching a BCBroz video back in the day and he was writing an onCommand() method. Manually.

#

I remember him saying "I know it looks confusing at first, but eventually you'll remember it"

keen compass
#

I just tell my IDE to implement it

subtle blade
#

I'm like... dude, use your IDE

keen compass
#

a lot easier to have the IDE put it in there, especially when you get one of them classes you need to implement

#

and it has like 50 methods

#

XD

boreal pebble
#

Is there a plugin to change the MOTD without having to edit server.properties and restarting?

keen compass
#

yes

flint palm
#

You doing it all in 1 class or using multiple?
@frigid ember i have a class for the event and another for the command

keen compass
#

need to register the listener and command in the main class in the onEnable then

frigid ember
#

yeah ^

flint palm
#

how do i do that?

keen compass
#

make sure your listener methods have @EventHandler above them too

flint palm
#

yes

viral pike
#

Anyone know how to use essentialsx

frigid ember
#
public void onEnable() {
        
        Bukkit.getPluginManager().registerEvents(new PlayerLogin(), this);
        Bukkit.getPluginManager().registerEvents(new BalanceChangeEvent(), this);
        
    }
#

that's events

#

in your main class

subtle blade
#

I also remember being silly back in the day and making everything implement Listener

#

because i thought that's how that worked

#

it had to be a listener to be a part of my plugin

frigid ember
#

I'm basic and call my main classes main so for me it looks like:

public class Main extends JavaPlugin{

    public void onEnable() {
        
        Bukkit.getPluginManager().registerEvents(new PlayerLogin(), this);
        Bukkit.getPluginManager().registerEvents(new BalanceChangeEvent(), this);
        
    }
}
subtle blade
#

Don't do that

hoary parcel
#

no @Override

#

smh

frigid ember
#

Fam

#

I never @Override idek why

flint palm
#

what do i put in "this"?

subtle blade
#

OVERRIDE EVERYTHING

#

lol

frigid ember
#

Haven't got into the habit lmao

bronze marten
#

its not required to override

frigid ember
#

@flint palm your main class, aka, the class you're going to point to using your plugin.yml

#

pretty basic structuring

#

oh and yes I'm doing a class per command because I can ๐Ÿ˜‰

keen compass
#

it isn't required to put Override, however it does help when looking at the code if the method overrides from a super class

flint palm
#

i need to import org.bukkit.event.Listener; and all that in main too?

frigid ember
#

No

subtle blade
#

You should put override so you don't mistype a method signature and wonder why it's not working

#

Override things

#

It was added for a reason

flint palm
#

it tells me to do it

frigid ember
#

It'll tell you what you need to import @flint palm

#

You should only have to import org.bukkit.Bukkit and org.bukkit.plugin.java.JavaPlugin