#help-archived

1 messages ยท Page 134 of 1

frigid ember
#

wow

#

I had no idea thats how it worked

#

lol

#

I guess I should've thought of that

#

@subtle blade Does that mean it travels 100 blocks?

wanton delta
#

is there a way to get amazon AWS but without compiling it into your jar ๐Ÿฅบ

hoary parcel
#

You wat

#

That doesn't make any sense

#

Do you know what aws is?

subtle blade
#

I don't think the metric is 1:1 for blocks, Legend

whole night
#

how do I change this

subtle blade
#

I don't know the exact metric. Though honestly, more often than not, 1 is perfectly fine for distance

frigid ember
#

@subtle blade Awesome

#

Thanks

#

@wanton delta Why would you need aws...

wanton delta
#

well

#

i meant

#

the aws jdk library thing

hoary parcel
#

That makes so much more sense now

#

Lol

wanton delta
#

lol

#

@wanton delta Why would you need aws...
because i need it silly ๐Ÿ˜›

hoary parcel
#

Aws stands for Amazon web services, so amazon aws doesnt make sense

#

It's like saying Google gcp

wanton delta
#

i mean i understand that

#

just need a way to make it so my jar isnt 180+mb ๐Ÿ˜›

hoary parcel
#

Wait

#

You said jdk

#

Why the fuck would you include a jdk in your plugin.

#

You want the sdk, not the jdk

#

Lol

#

Sdk = software development kit = some lib

#

Jdk = java development kit = java runtime + compiler and shit

wanton delta
#

well sorry

#

i meant that lol

hoary parcel
#

The aws jdk is just a fork of openjdk

wanton delta
#

just

#

whatever this is

#
            <dependency>
                <groupId>com.amazonaws</groupId>
                <artifactId>aws-java-sdk</artifactId>
                <version>1.11.768</version>
                <scope>provided</scope>
            </dependency>``` lol
bold anchor
#

I mean doesn

hoary parcel
#

I highly doubt that the aws sdk is 180mb

bold anchor
#

't newer version of java support including a small jre

hoary parcel
#

No

wanton delta
hoary parcel
#

That's not what multi release jars are Jan

#

Dafuq Amazon

#

Well, maven shade has a minimize option, tried that?

#

Else you can look into pro guard

#

Or just fuck their sdk and use rest to access their API

wanton delta
#

could i just

#

make a seperate plugin perhaps

#

with that stuff in it

#

and make that the dependency as provided

hoary parcel
#

Sure

wanton delta
#

ok might do that then lol

hoary parcel
#

You can also make a lib folder and shit

whole night
#

How do i change the spigot 1.8 in server selector

hoary parcel
#

--classpath

wanton delta
#

mini could you link me to smt or tell me what to google

#

on how to do that lol

#

@hoary parcel how would one use rest

hoary parcel
#

I don't know how the aws API works

wanton delta
#

hm ok

hoary parcel
#

But I would be surprised if the java thing is more than a wrapper for their public http API

wanton delta
#

i mean i only need S3 from it

#

if there was a way to shrink it down to s3 only thatd be fine

timid valley
#

i would expect an aws jdk api is expected to be set to provided not compile, and used on the aws jdk

#

if not, then they dun goofed

frigid ember
#

What version of factions is for 1.12?

twilit orchid
#

hey

#

is there anyway to get rid of the arrows on your name

#

like it says <jason123987654>

bold anchor
#

On?

#

Get some chatplugin

night niche
#

@frigid ember MyCommand

unreal hedge
#

Pretty sure you can just use customtext with Essentials + something like papi

wheat summit
#

Is there an event to check if a player is using an elytra? I want to extend the class and override the canceling event to make it do nothing so I can have a effect where you're always using an elytra and can't stop

wheat summit
#

Sorry thanks

wanton delta
#

@timid valley yea i just got around it by making a dud plugin with the stuff in it

#

i dont feel like jumping through hoops to getting it smaller lol

timid valley
#

set scope to provided

#

no way in hell they are expecting people to shade a 100mb lib

wanton delta
#

....if its provided how is it gonna find the stuffs

#

maybe i dont understand how that works then

rotund basin
#

Hello, is there somebody who knows about networking? I have huge IO write usage. It's about 30% per netty thread for Native.writeAddress

#

I have 250 players, 20 tps

timid valley
#

sounds less like networking and more about native writing

rotund basin
#

i mean epoll

timid valley
#

well, thats ideally what all netty is going to be doing

#

and 250 players only using 30% sounds good

#

whats the actual issue?

rotund basin
#

whole server uses 500% cpu

#

and players looks like jumping

timid valley
#

it's 250 players, thats going to be a lot of data

#

you could increase netty threads to increase the amount of pipelines

#

assuming this is 1.8.8

rotund basin
#

yep

timid valley
#

i think it had a netty thread config

#

in spigot.yml

#

because you surely wouldnt be in here asking about netty threads and 250 players on 1.15 lol

rotund basin
#

I have server behind proxy, so I thought it should use less cpu

timid valley
#

proxy doesnt reduce cpu

bold anchor
#

Proxy is just the gateway

timid valley
#

unless you turn off compression

rotund basin
#

or could it be associated with tcp buffer size?

#

or tcpnodelay flag?

timid valley
#

no, it doesnt sound like a problem really. you got a lot of players, it has a lot of work to do.

#

the method mentioned is it writing the data to a buffer

wheat summit
#

Is there a way to disable the outdated version of Spigot warning?

#

It's starting to annoy me a lot

pastel condor
#

just update

dusky flare
#

hi guys

#

i am looking for a parkour plugin for my server hub

#

can any one help me ?

bold anchor
#

Google certainly can

dusky flare
#

XD

#

do u know any parkour plugin ?

sturdy oar
#

yes

dusky flare
#

or ....

sturdy oar
#

i know a dude developing as parkour plugin

#

@undone narwhal yo

undone narwhal
#

Yes ?

dusky flare
#

give me the plugin name plz ;']

sturdy oar
#

he might be interested in your parkour pluginz

dusky flare
#

@undone narwhal do u have a parkour plugin ?

undone narwhal
#

I'm making one yes

dusky flare
#

so .......

#

did u complete it ?

undone narwhal
#

Not yet

dusky flare
#

ok

#

tell me if its ready

undone narwhal
#

Why ?

dusky flare
#

idk

#

i will test it for u

undone narwhal
#

Oh sorry just look your message

#

Okay, but I'll make a paid one

dusky flare
#

aha ok

#

i dont have money ._.

bold anchor
dusky flare
#

@bold anchor thx bro :}

sturdy oar
#

rip

#

usually paid plugins are nicer

bold anchor
#

Not alwaus true choco makes nice unpaid plugins

sturdy oar
#

yeah but if you want really specific stuff

#

you either get it premium or custom made

subtle blade
#

choco makes nice unpaid plugins
Love Thanks

vocal phoenix
#

hello to all

#

i need help

#

all the sudden my server keeps crashing

#

can any one help

#

?....

lone fog
#

Crash logs?

vocal phoenix
#

i got it

#

it wont let me upload it

bold anchor
#

.paste

#

Fuck

vocal phoenix
#

its to big

bold anchor
vocal phoenix
#

at the bottom

#

what do u think

#

@bold anchor do u think its java

bold anchor
#

Don't really know

vocal phoenix
#

its crazy right

bold anchor
#

I mean ask someone more experience, Choco u know?

vocal phoenix
#

yea

#

@subtle blade can u help

#

please

subtle blade
#

Hm?

marsh hawk
#

So you get no error it just exits out of console?

vocal phoenix
#

yep

#

only console

marsh hawk
#

have a look at your most recent log

#

and send it

vocal phoenix
#

that irs the most recent one

#

i turn off the server

marsh hawk
#

Startup script './start.sh' does not exist! Stopping server.

#

what are you running the server on?

vocal phoenix
#

on windows

#

10

marsh hawk
#

Ah I see you got a Threading error

vocal phoenix
#

but look at the bottom of the log where the err isright before the plugins get diable

marsh hawk
#

probably a plugin thats causing it

vocal phoenix
#

no

#

it not

lone fog
#

It happened right after an envoy, but that may be a coincidence

vocal phoenix
#

i check i dont see not prob with the plugin i had my server up for 2 months with out any probs

marsh hawk
#

bentobox?

vocal phoenix
#

no thats wat i am saying it just started'

marsh hawk
#

I'm seeing errors for
com.xxmicloxx.NoteBlockAPI and world.bentobox.bentobox.database

#

best guess is to disable noteblocks api for now

#

see if it changes your outcome

lone fog
#

BentoBox looks like a library for skyblock and various other plugins

marsh hawk
#

also mentions votifier in the thread dump

#

if you want to try disable that

vocal phoenix
#

yea but after all this time now it crash

#

dont make any sense

marsh hawk
#

you havent updated anything?

vocal phoenix
#

i update spigot

marsh hawk
#

well there you go lmao

#

probably incompatible versions

vocal phoenix
#

no i updtae allmy plugins as well

marsh hawk
#

its probably just a bug in one of the plugins

#

try and narrow it down to one plugin then send a bug report

vocal phoenix
#

ok

#

thanks

sturdy oar
#

You have a huge amount of plugins disabling on startup

#

Or giving errors

marsh hawk
#

^

#

did you check that the plugins were the correct minecraft version when updating?

frigid ember
#

^

lone fog
#

Lot of no API version warnings

vocal phoenix
#

ok i went bak to the older version and no crash so far

whole night
#

d

vocal phoenix
#

it might be the new vers of spigot

#

not sure

frigid ember
#

I have a plugin dev question:

#
[20:21:25 WARN]: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.RuntimeException: Unable to access address of buffer
    at io.netty.channel.epoll.Native.read(Native Method) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.doReadBytes(EpollSocketChannel.java:678) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:714) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe$3.run(EpollSocketChannel.java:755) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]
    at java.base/java.lang.Thread.run(Thread.java:832) [?:?]
#

What does that mean?

whole night
brisk fog
#

I would try Viabackwards plugin

whole night
#

No not the range of versions changing the name

marsh hawk
#

@frigid ember what's the context? Can we see a code snippet?

frigid ember
#

Heres my listener class:

#
class WinepvpListeners : Listener {
    @EventHandler
    fun onPlayerJoin(e: PlayerJoinEvent){
        if (WinepvpTime.playerTimes[e.player] != null){
            setPlayerTime(e.player, WinepvpTime.playerTimes[e.player]!!)
            return
        }
        var timeFromConfig = Time.DAY
        
        val stringTime = WinepvpTime.plugin?.config?.getString("values.${e.player.uniqueId}")
        if (stringTime == null){
            WinepvpTime.plugin!!.config.set("values.${e.player.uniqueId}", Time.DAY)
            return
        }
        
        var time = Time.valueOf(stringTime)
        WinepvpTime.playerTimes[e.player] = timeFromConfig
        setPlayerTime(e.player, timeFromConfig)
    }
}
#

I don't really understand

#

maybe I should try updating spigot?

pastel condor
#

thats not java?

frigid ember
#

It's kotlin

marsh hawk
#

kotlin

pastel condor
#

nooooooo plz use java

frigid ember
#

which is just java, but more modern

pastel condor
#

java > kotlin

frigid ember
#

I disagree

marsh hawk
#

It's up to preference

frigid ember
#

pretty much

bold anchor
#

lol no, kotlin > java

marsh hawk
#

Does the error give you a specific line?

bold anchor
#

So, what's the issue yeah?

frigid ember
#

No

#

it just spams that

#

I've never experinced anything like it before

#

I need to use 1.8, so I can't really update

#

huh

#

it appears to be a problem w/ the server itself

#

let me try something

#

ohhh

#

it's because I'm using java 14

#

lol

bold anchor
#

I mean most minecraft servers are stuck on J8 anyways

whole night
marsh hawk
#

Probably viaversion

bold anchor
#

Yeah

whole night
#

No not that the message

#

not the version the message

vagrant widget
#

So i have a genuine question, How can i start spigot plugin development?

I've downloaded this:

marsh hawk
#

I'd start off with some youtube tuts

granite hedge
#

There are many tutorials on yt?

marsh hawk
#

That's where i started

subtle blade
#

We have some wiki pages to get your started

granite hedge
#

^

vagrant widget
#

May i please get a link?

bold anchor
#

Download the minecraft dev plugin

subtle blade
vagrant widget
#

I've already done that. ^

marsh hawk
#

@whole night Do you mean the "MC" instead of "spigot"

bold anchor
#

Then learn some basic java

marsh hawk
#

because thats most likely viaversion

subtle blade
whole night
#

@marsh hawk Yes and the 1.8-1.15

subtle blade
#

(most notably the guides at the bottom of that wiki)

bold anchor
#

People will very much get annoyed if they have to answer 400+ questions about basic java, so please learn some of that first.

marsh hawk
#

yep again, try via version i think that changes the message otherwise i dont know of any plugins

bold anchor
#

This is a great plugin

marsh hawk
#

WAit jesus

subtle blade
#

I'm upset at Waterfall's icon

marsh hawk
#

intelliJ has ppreloaded projects????

#

Okay screw Eclipse im moving lmao

vagrant widget
#

its a plugin

#

i think?

subtle blade
#

Yes

vagrant widget
#

wait

#

yeah

brisk fog
#

what you don't like eclipse? lol

bold anchor
#

It's a ij plugin

subtle blade
#

I considered spending time to write one for Eclipse, though I have to admit that their API is absolute garbage and extremely difficult to understand

marsh hawk
#

most likely x64

subtle blade
#

Yes, 64 bit

#

Don't touch 32 bit

bold anchor
#

You choose which api, maven or gradle and it'll autogenerate a basic project

subtle blade
#

This is 2020 lol

marsh hawk
#

@brisk fog eclipse is just old and ugly. I'm stuck on it but have been contemplating IntelliJ for like a whole year lol

vagrant widget
#

I really wanna get into plugin development. ๐Ÿ‘Œ

bold anchor
#

I mean not a lot of people like eclipse after getting used to intellij, Choco is a special case

marsh hawk
#

Learn basic java before going into plugins, makes your life alot more easier

subtle blade
#

I also learned Java while learning Bukkit plugins lol

pale willow
#

not sure where to ask this. i have a (paper) spigot server and i keep getting kicked after a few minutes of afking saying something like "you've been idle for too long", and i've gone through every plugin to see if it's there (especially essentials) and the spigot.yml, bukkit.yml and paper.yml files?

subtle blade
#

I'm a special egg

#

i have a (paper) spigot server

brisk fog
#

I set up my own templates years ago for eclipse. I find myself going back to it.

subtle blade
#

That's where you should have stopped ;P

pale willow
#

go to paper's discord?

subtle blade
#

Yessir

pale willow
#

it's a vps

bold anchor
#

Well, choco people who learn java while learning bukkit asks the most annoying questions without googling first.

subtle blade
#

(afaik it's a vanilla option though)

bold anchor
#

It's literally the worst thing that has ever happened

subtle blade
#

It's a command. /setidletimeout

bold anchor
#

Spigot forums is just full of people asking the same question again and again

pale willow
#

ohhh it's vanilla?

#

didn't think that was a thing

subtle blade
#

Yep

#

Vanilla servers give you a /setidletimeout command. Set it to... 0 I think?

#

Might be -1

pale willow
#

0

#

says -1 isn't alloiwed

bold anchor
#

Try 0 then

subtle blade
#

ye. There ya go. No timeout kick now

pale willow
#

well thank you ๐Ÿ˜ฎ when did they add that into vanilla?

subtle blade
#

1.7.4

pale willow
#

wow

subtle blade
#

*.2

#

Though for the future, if you're running Paper, you should be asking in Paper's server ๐Ÿ™‚

bold anchor
#

Well a lot of issues are carried over xd

subtle blade
#

You'd be surprised

bold anchor
#

But yeah ask over there.

pale willow
#

i searched "idle" in every plugin's config, as well as paper.yml/spigot.yml/bukkit.yml

subtle blade
#

Even down to their listeners - they use ASM to generate event listeners

pale willow
#

also this is completely unrelated, but i've heard there's shop plugins that can just read/use the essentials worth.yml thing. i can't seem to find them though?

subtle blade
#

PES_SadShrug That's out of my scope of knowledge. I'm not terribly familiar with a lot of plugins as I haven't run a server since 1.8

pale willow
#

oh same

subtle blade
#

Someone else may

pale willow
#

i'm coming back to it lol

gleaming helm
#

does shopguiplus not do that?

pale willow
#

idk? i'll look

gleaming helm
#

I have no idea either, never really used any of those plugins

pale willow
gleaming helm
#

Yeah

#

That's what I'm talking abot

bold anchor
#

I mean it's easy to read yml files

gleaming helm
#

No idea how it works tho

pale willow
#

doesn't mention it :/

#

i mean it is, but i don't wanna have to manually create shops

vagrant widget
#

ok so i downloaded the thing

bold anchor
#

No

wanton delta
#

artifact id is a package name

bold anchor
#

groupid shouldn't be your email

wanton delta
#

i meant

#

groupid

#

oops

bold anchor
#

So name it your.web.address or me.myname

#

to keep it unique

wanton delta
#

also i see majority of groupids all lowercase

#

some use capitals

vagrant widget
#

oh

#

i don't own domains

wanton delta
#

but i see most use lowercase

#

use me.plugindevzack or something

vagrant widget
bold anchor
#

groupids is packagename so it should be ALL lovercase

#

Yeah zack

vagrant widget
#

oh o

#

ok

bold anchor
#

that's fine

vagrant widget
bold anchor
#

๐Ÿ˜ญ

vagrant widget
#

?

wanton delta
#

what do u need help with

bold anchor
#

Not using 1.15 haha

wanton delta
#

choose a version if its not there youll have to change it manually

vagrant widget
#

well i have a 1.8 server but sure i can do for 1.15

#

sorry if i'm asking a lot of questions, is there anything i need to do here or keep as is?

bold anchor
#

That is to fill out the plugin.yml

#

Description would be the description of the plugin

#

authors u can put yourname without spaces

#

website if u have

#

one

#

Log Prefix if u want some fancy prefix on getLogger

#

Load Before if u got someplugin that depends on yours or similar

#

load At can be left nless needed

#

depend and soft depend at your choice too

bitter tendon
#

@tiny dagger late reply but, thank you!!

Is it possible to prevent block breaking client side like the debug stick?
not sure no
only the sword can prevent it
in creative

vocal phoenix
#

@subtle blade i took out a plugin called jpanel and so far so good

past crow
#

Add a server.jar to your external library list

#

That's on the spigot blank plugin tutorial

#

for intellijidea

#

how do i do that?

hollow hedge
#

Project Structure (ctrl+alt+shift+s) > Modules > Your Module > Dependencies; hit the + button next to the scope and navigate to your spigot jar.

But wouldn't it be easier to just use Maven?

past crow
#

Idk, new to this stuff

#

just following the tutorial

hollow hedge
#

ยฏ_(ใƒ„)_/ยฏ

#

Just be sure to change the scope to provided or you'll most likely end up building spigot into your plugin jar.

frigid ember
#

Lovely

#

Just lovely.

past crow
#

@hollow hedge ty, changed it now lol

#

does the server file go to provided too?

hollow hedge
#

As in like the spigot.jar? I would.

past crow
#

and do i tick export

hollow hedge
#

Should be fine to leave export not ticked.

past crow
#

kk, ty

hollow hedge
#

Assuming you are running either a spigot server or some sort of clone of spigot you shouldn't encounter any issues.

past crow
#

i'm running craftbukkit, is that a problem?

hollow hedge
#

If you plan on using spigot as a library yes?

bold anchor
#

whatever

twilit orchid
#

is there a way for other staff can see /vanished people in essentials

bold anchor
#

Using craftbukkit will also run on spigot

#

and p fork

past crow
#

ok, ty

hollow hedge
#

@twilit orchid essentials.vanish.see

twilit orchid
#

but im opped

bold anchor
#

fun

twilit orchid
#

i still cant see em @hollow hedge

bold anchor
#

depends on your vanish, contact mod author if issues occur

hollow hedge
#

Depending if the users you're trying to see has essentials.vanish.effect. It adds a potion effect to the user, can't remember if it's a default permission or not.

minor mountain
#

how do I give my server more ram

bold anchor
#

.flaga

#

fuck

minor mountain
#

cool

hollow hedge
#

Make sure to not use ALL your memory, it could be disastrous.

minor mountain
#

lol

#

I forgot how much ram My pc has

#

lets see

#

16gb

past crow
#

Does anyone know why this:

import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
    @Override
    public void onEnable(){
    }
    @Override
    public void onDisable(){
    }
}
#

is throwing up this error:

#

Class main is public, should be declared in a file named 'Main.java'

red zenith
#

Sounds like your main problem.

past crow
#

JoyPlugin.java

#

The only other file is 'plugin.yml'

#

Oh, ok

#

ty

neat orbit
#

How can I limit the mob spawn size in a chunk for my server?

pastel condor
#

I think spigot.yml (or if you're using paper, then paper.yml) has an option to limit the max entities spawning in a specific chunk @neat orbit

past crow
#

<plugin> has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0

#

how do i fix this?

pastel condor
#

what java version did you use to compile your plugin?

#

and what version are you running you server with?

past crow
#

the latest, i believe

#

to compile

#

not sure to run

pastel condor
#

make sure it's the latest

past crow
#

is there any way to check?

pastel condor
#

java --version I think

past crow
#

one dash did it

pastel condor
#

k

#

what is it?

past crow
#

"1.8.0_251"

#

it's latest

pastel condor
#

oh yeah

#

thats not latest btw

#

thats java 8

past crow
#

?

pastel condor
#

theres java 13

past crow
#

huh

pastel condor
#

you're on the latest java 8

#

but there are newer versions of java

past crow
#

well how do i get java 13?

pastel condor
#

anyways can you use java 8 to compile your plugin?

past crow
#

i didn't even know i was using a different version to compile it in the first place

#

how do i change that?

pastel condor
#

how are you compiling it?

past crow
#

"build artifacts"

pastel condor
#

ecplise?

#

what ide?

past crow
#

ij

past crow
#

ty

pastel condor
#

change it to java 8

#

np

past crow
#

should i download the java 8 jdk?

pastel condor
#

yeah

past crow
#

aight

#

i must've compiled this one plugin like 20 times by now

pastel condor
#

lol

past crow
#

i just wanna see that sweet green text with /plugins

pastel condor
#

lmao

#

mind if I ask, what does your plugin do?

pastel condor
#

lol

past crow
#

still learning

#

trying to make a plugin that rewards you after a certain amount of playtime

#

all the ones i found were outdated

pastel condor
#

want any tips? (or spoonfed code?)

past crow
#

or you had to buy

#

i'll probably ask you later

pastel condor
#

okay, cool

past crow
#

just wanna go with the pace of the tutorial rn

#

ty for the offer

pastel condor
#

yup np ๐Ÿ™‚

past crow
#

this picture can make a grown man cry

pastel condor
#

lol

silver agate
#

mg

gleaming helm
#

That pains me inside

#

severely

neat orbit
#

@pastel condor ty!

pastel condor
#

like half the plugins are my one line plugins that send players to other servers in my network

#

I'm too lazy to merge them into one plugin

silver agate
#

im hurting from that

gleaming helm
#

what the fuck lol

neat orbit
#

Is anybody good with VotingPlugin? I am having difficulties with the config.

pastel condor
#

also I lost the source code, so I have to decompile my plugins

gleaming helm
#

My bullshit detector is firing

pastel condor
#

I use voting plugin SofiLopi, so if you have any questions feel free to ask

neat orbit
#

Okay, do you by any chance also use CrazyCrates?

pastel condor
#

Nope, sorry

neat orbit
#

Well my problem with VotingPlugin is that my players can vote, but they don't receive rewards.

pastel condor
#

whats your vote sites file?

neat orbit
#

wdym?

pastel condor
#

you know VoteSites.yml

#

where you set all the rewards

neat orbit
#

The first 2 links that VotingPlugin offers work fine with the reward votekey.

pastel condor
#

for example this is what I do VoteSites: TopG: Enabled: true ServiceSite: TopG.org VoteURL: https://topg.org/Minecraft/in-590923 VoteDelay: 24 Item: Material: GRASS Amount: 1 Rewards: Commands: - experience add %player% 5 levels - eco give %player% 500 Messages: Player: '&aThanks for voting on TopG!'

minor mountain
#

how do I give my server more ram

pastel condor
#

change the -Xmx and -Xms startup flag

neat orbit
#

Wow how did you just do that

pastel condor
#

actually my file is a lot bigger

minor mountain
#

java -jar spigot.jar

#

is that

#

is what its my start up

pastel condor
#

java -Xmx (ram ammount) -Xms (ram amount) -jar spigot.jar

#

.flags

neat orbit
#

Problem is I don't understand what is wrong with mine ๐Ÿ˜

gleaming helm
#

For example

neat orbit
#

It looks like this:

#

topminecraftservers_org:
Enabled: true
ServiceSite: topminecraftservers.org
VoteURL:
VoteDelay: 24
Item:
Material: GRASS
Amount: 1
Rewards:
Commands:
Console:
- cc give p Common 1 %player%
Messages:
Player: '&aThanks for voting on %ServiceSite%!'

gleaming helm
#

java -Xmx 4G -Xms 4G -jar spigot.jar

minor mountain
#

4g

gleaming helm
#

@minor mountain

minor mountain
#

jesus

neat orbit
#

(I removed the VOTE url. But I have it normally)

gleaming helm
#

That's for 4 gigs

pastel condor
#

kk

gleaming helm
#

Change to how much memory you have

minor mountain
#

I only have 16 gb ram

pastel condor
#

what is cc?

minor mountain
#

NO

neat orbit
#

Crazy Crates.

minor mountain
#

maybe I should make it 1gb

pastel condor
#

I see

gleaming helm
#

if you have 16 gigs of memory then run your server at 10 or more

pastel condor
#

no need to put Console:

#

it's by default

gleaming helm
#

Unless you're running this on your PC

neat orbit
#

Really?

gleaming helm
#

In which case, stop expecting to run a server on your PC

pastel condor
#

yes

neat orbit
#

Nice.

pastel condor
#
      Commands:
      - experience add %player% 5 levels
      - eco give %player% 500
      Messages:
        Player: '&aThanks for voting on TopG!'```
minor mountain
#

yes I run it on my pc

#

its my server

#

private one

#

for just myself

pastel condor
#

then you don't need much ram

#

use like 1GB

minor mountain
#

k

neat orbit
#

Ty. I hope it works.

gleaming helm
#

his system default is probably higher than 1 gig already

pastel condor
#

yeah

gleaming helm
#

With 16 gigs of ram I'd expect the system default to be either 2 gigs or 4 gigs

minor mountain
#

m

#

also why is my tnt borked

gleaming helm
#

It's probably not borked. The TNT and cannoning mechanics you're used to are actually not vanilla, the servers you play on modify those mechanics so they work the way you think they work.

#

But in vanilla, that's not how they work, and they have never worked that way, on any server version.

minor mountain
#

huh

neat orbit
#

"I think spigot.yml (or if you're using paper, then paper.yml) has an option to limit the max entities spawning in a specific chunk" is this max-entity-collisions ?

gleaming helm
#

In one of the config files there's a spawn limits section

#

collisions has nothing to do with it

#

I think spawn limits might be in bukkit.yml

#

But I could be wrong

neat orbit
#

Alright.

minor mountain
#

well I do have the same plugin as the server im use to, and the cannons work "almost" the same

#

its just I know that the lowest arc is supposed to be one flat line on that server but on mine it arcs a bit down

gleaming helm
#

Because the server you're playing on either modifies horizontal velocity or gravity for tnt entities

minor mountain
#

ah ok

#

how to a modify that?

gleaming helm
#

Unless you're on some super tiny server all of these changes are made in custom and private spigot forks

#

You'll have no luck modifying it

minor mountain
#

aw

past crow
#

im back

#

why is this happening?

marsh hawk
#

you need to have the onCommand function in your class

#

^with correct arguments

past crow
#

it's in there

quartz trench
#

Import CommandSender and Command

past crow
#

ty, i just had commandexecutor imported

#

is there a way to import everything from bukkit?

granite hedge
#

you can always turn on auto import in your settings > Editor | General | Auto Import

#

so it imports the things you need

past crow
#

ty

naive goblet
#

org.bukkit.* ?

buoyant path
#

Is it possible to allow entities to phase with nms?

frigid ember
#

Is there a plugin that lets me type, for instance, /survival to go to the survival world, /skywars to go to skywars, etc? Please @ me.

buoyant path
#

@frigid ember probably gonna need that custom made or find one that has console execute commands, and allows you to create them in the config

frigid ember
#

ok thanks

naive jungle
#

Is there an easy way to list all plugins in plugin.yml? I need my plugin to load before all others, and I need to list all names of each plugin in the loadbefore:[]

#

Also, I need it to update automatically, without me manually entering the names

#

Is that possible?

fleet crane
#

?xy

worldly heathBOT
fleet crane
#

and look into load: startup

buoyant path
#

Can I disable physics on a CraftMonster?

#

in 1,8

cerulean musk
#

game says only the ip "my ip adress"

ancient ridge
#

cuz some plugins dum and like antipiracy i guess

cerulean musk
#

We bought an add-on from someone. but we can only use specific ip

ancient ridge
#

well talk to them

past crow
#

Does anyone know any rewards plugins for 1.15.2 where i can change someone's luckperms role after like a day of playtime?

cobalt yoke
#

Yes

#

Probably because one day someone used that to distribute ilegal things

#

I guess

fleet crane
#

They donโ€™t except certain categories

cobalt yoke
#

Oh lol

#

I though all of free resources needed approval

umbral shoal
#

Does anyone know a good tablist plugin I can also use to sort ranks

mossy vault
#

how to make comand tabcompletion

fossil shoal
#

@mossy vault implement TabCompleter

mossy vault
#

I know that but example when I do "/e" then I tab it fill with "help" or "reload"

neat orbit
#

How to install waterfall/bungee cord after downloading it? Where do I place the file in the FTP.

#

Please, if you know tag me.

zenith bluff
#

@neat orbit make a folder to put it in (it generates some files so you don't want that in the root directory) then put the proxy jar in the new folder

#

then to start it, (assuming you have Java installed and are on a Linux-based environment), use java -Xmx512M -jar <proxy-name>.jar

#

You usually don't need more than 512mb of RAM allocated to proxies, and you don't need to start the JVM with any extra flags as Java is smart enough to optimize itself

floral isle
#

hey i have a question there an example of custom npc inventory?

waxen folio
#

are there any plugin devs that will accept 100 usd + per plugin

hoary parcel
#

sure

waxen folio
#

so do you want to do it?

hollow thorn
#

how do i get if a tnt has been spawned

undone narwhal
#

Entity spawnevent

lyric jungle
#

Anyone have a plugin/code that will change the server's player limit depending on how many users?
For example:
If 30 users are on the server, player limit is 31
If 100 users, limit 101 etc

zenith bluff
#

I'm sure you'd find one if you searched for it, and it doesn't sound too hard to make anyways

lyric jungle
#

Don't really know what to search for tbh ๐Ÿ˜‚

zenith bluff
#

"Dynamic player slots Minecraft" on google?

#

lol

#

If you want it to just be one more than the current playercount, I think ServerListPlus does that.

hollow thorn
#

whats the name of a tnt entity

zenith bluff
#

PrimedTnt

hollow thorn
#

doesnt appear

zenith bluff
#

Hmm, Google it maybe?

hollow thorn
#

if i set the tnt spawn event to cancelled and it is summoned from a block being set

#

will the block be set

bold anchor
#

?

zenith bluff
#

Uhh I don't quite follow

neat orbit
#

Does anyone know how to use protocollib? I installed it and can't join my server any longer.

zenith bluff
#

Did you install the right version?

#

It doesn't break servers usually

neat orbit
#

How can I check what version?

limber summit
#

Hello with auto-log plugins such as "FastLogin" or "JPremium", are mojang going to block request sent from my server If I have like 300 connections in 1-2 minutes? If so, how to avoid that?

neat orbit
#

I am also using FastLogin, and I'm trying to set it up.

zenith bluff
#

Have a look at the resource page and download the correct version for your server version.

#

@limber summit I don't believe so.

#

I don't think Mojang rate-limits for session verification

soft locust
#

Uh, I'm having a bug I don't know what to do. I have a special ItemStack that is a chestplate, and I don't want the player to equips it. So I listen the InventoryClickEvent, if the player clicks an armor slot with the item, I cancel it. The problem is that sometimes, the item is still put in the armor slot, event though the event has been cancelled

neat orbit
#

Update: Installed what I am pretty sure is the right version of ProtocolLib and now it says Disconnected.

soft locust
#

Does someone had had this issue before ?

#

I printed some logs, the event is cancelled, but the item is still put

zenith bluff
#

@soft locust is it registering on the server that it's going in the armor slot or is it just a client glitch?

soft locust
#

@soft locust is it registering on the server that it's going in the armor slot or is it just a client glitch?
@zenith bluff I tried to disconnected and reconnected, I still had the armor equipped, so I guess it is registered on the server as equipped

zenith bluff
#

Update: Installed what I am pretty sure is the right version of ProtocolLib and now it says Disconnected.
Very odd, are you sure it's protocollib? If it is, do you have any plugins incompatible with it?

neat orbit
#

Yes. And no.

#

It is protocollib and I made sure to download the latest version, 4.5.

zenith bluff
#

@zenith bluff I tried to disconnected and reconnected, I still had the armor equipped, so I guess it is registered on the server as equipped
hmm

neat orbit
#

I can't join my server, nor anybody else.

zenith bluff
#

It is protocollib and I made sure to download the latest version, 4.5.
Latest dev build from the build server? Or just the most recent stable release? Try both

neat orbit
#

Do I have to install some source code maybe?

#

I'll try.

#

On the resource website it also shows to zip files. I don't know if they are mandatory though.

zenith bluff
#

They have a Jenkins build server with it pre-compiled. It's on the spigot page

#

I don't recall any zip files being required

neat orbit
#

Check out assets.

zenith bluff
#

Oh that's just the source code from when the release was made

#

You only need the jar

neat orbit
#

Than what can be the problem. I am sure it is ProtocolLib because it even has a color coded message when joining.

zenith bluff
#

Try the dev jars from the CI

neat orbit
#

Sorry. I'm kinda bad at this; where can I find dev jars? Is it recommended versions?

zenith bluff
#

1 sec I'll just get you a direct download link

neat orbit
#

Thank you. Heavily appreciated.

neat orbit
#

Thank you. I truly hope it works.

zenith bluff
#

Are you using mainstream spigot jars (paper, spigot, taco etc.) or a custom one?

soft locust
#

@soft locust is it registering on the server that it's going in the armor slot or is it just a client glitch?
@zenith bluff I just tested by observing myself with an other account, and I see the amor equipped. It is not a client glitch :/

neat orbit
#

Paper.

zenith bluff
#

Should be working then. Very odd

neat orbit
#

Agreed.

#

I am not alone though, I think. Someone left a negative review on Spigot mentioning my exact issue.

zenith bluff
#

Right. The only other option after the dev build is to go back a release or two from the most recent one on GH

neat orbit
#

Mhm. Sigh D:

#

Another option would be to download Protocol, I think it's called+

zenith bluff
#

Never heard of it

#

btw what Java is your server running on?

#

like what jdk/jre version?

neat orbit
#

How can I check that?

#

It's 1.15.2 if that's what you mean.

#

I must sound like a noob. I am a noob.

zenith bluff
#

Nah that's the game version.

#

For now I'll just assume it's JDK8 but you may wanna look into that because using the wrong version can break things

neat orbit
#

I hope it'll work now. I won't sleep until I find a solution, I guess.

#

STILL invalid version.

#

I don't understand, must be a problem with my server but how? Before ProtocolLib was installed I could join without any issues.

zenith bluff
#

Did you install any other plugins while installing protocollib?

neat orbit
#

No.

zenith bluff
#

I guess... try going back a few builds?

neat orbit
#

I tried the one you sent me.

zenith bluff
#

Do you use a managed host or a VPS/dedi?

neat orbit
#

No.

#

Or yes, I have a host.

zenith bluff
#

yeah, what type of host? Managed (sparkedhost, pebble, apexmc, etc.), Vps/dedi (ovh, soyoustart etc.) or self-hosting?

neat orbit
#

Shockbyte.

soft locust
#

After a few tests, I noticed that the armor is always equipped the first time I try

#

I'm really confused :/

neat orbit
#

Okay now this is very weird, other players can join with ProtocolLib but I can not.

zenith bluff
#

right, I'm not familiar with their panel so I wouldn't be able to find out ur Java version, but try the release I just sent

#

that is weird

sturdy oar
#

protocolLib?

neat orbit
#

When I uninstall it I am able to join my server, but others are able to.

#

Yes.

sturdy oar
#

you mean protocolSupport

neat orbit
#

No.. I don't believe so?

#

Isn't it called ProtocolLib?

sturdy oar
#

I don't think ProtocolLib influences the server.

#

in any way

#

it's just a library after all

#

if you are 100% sure ProtocolLib is causing issues you could try making a GitHub issue to dmulloy02

fossil shoal
#

I am trying to turn on redstone using AnaloguePowerable which I get from BlockState, then I call BlockState#update(false, true), it works, however if I place a block near the redstone (or attach more redstone to it) it causes the redstone to update and turn off.
If I call BlockState#update(false, false) the redstone is turned on, and discards any updates, meaning that it doesn't power any blocks (or attached redstone), which is not what I want.
Any ideas on how to keep the redstone turned on and power surrounding blocks or attached redstone?
Please ping me ( @fossil shoal ) if you answer.

neat orbit
#

I am. I will, but I was hoping someone here could give a more fast answer.

sturdy oar
#

I do use ProtocolLib for developing, and I've never experienced any issue of that kind

#

so I can't really tell

zenith bluff
#

I'ma head off to sleep now, but feel free to DM or ping me for any queries

neon matrix
#

What event is it when a block of water breaks a head?

frigid ember
#

anyone know how to make a player lay down using packets(protocollib)?

sturdy oar
#

..lay down?

#

like do the swim animation

frigid ember
#

yep like playe dies

#

laying on bed

wheat summit
#

I'm quickly making a VienMiner, how would I call a method to break a block as if a player broke it or to call an event?

#

Would BreakNaturally work or would it not call an event?

fleet burrow
#

im scared

limber forge
#

Why can i Not Sell Plugins on SpigotMC?

#

When can i sell sth?

subtle blade
#

?premium

worldly heathBOT
frigid ember
#
        useBed.getIntegers()
                .write(0, player.getEntityId())
                .write(1, player.getLocation().getBlockX())
                .write(2, player.getLocation().getBlockY())
                .write(3, player.getLocation().getBlockZ());``` Why this error while i trying to send packets using protocol lib anyone help me please
hoary parcel
#

well, clearly you are setting the fields wrong

#

decompile the packet class

frigid ember
#

I am using protocol lib so i need to go to github and see the class right?

hoary parcel
#

no

#

you want to decompile the packet class

subtle blade
#

Or open the protocol wiki

frigid ember
#

okey thanks

subtle blade
#

Or use the packet wrappers

#

๐Ÿ˜›

hoary parcel
#

the protocol wiki doesnt help you here choco, it can confuse

#

you need to know the field types

#

not the network types

#

those can be different

frigid ember
#

What

#

protocol wiki dosnt have BED protocol

#

i am confused

lucid compass
#

Hello, I have a problem with a plugin that I have reported. How long does it take for my report to be processed?

frigid ember
#

MiniDigger,decompile packet class right?

hoary parcel
#

yes

bold anchor
#

When they have time @lucid compass

lucid compass
#

Okay, but how long does that usually take?

frigid ember
#

i dont understand what packet class you are talking about

bold anchor
frigid ember
#

its confusing

#

anyone help me

#

Mini diggger which class?

hoary parcel
#

whatever packet you want

wheat summit
#

How could I make a plugin break a block calling the BlockBreakEvent event?

#

I would like to make a quick Vein Miner

frigid ember
#

I think you cant break blocks using blockbreakevent its an player event

wheat summit
#

Oh ok

bold anchor
#

You can most certainly call it by yourself

wheat summit
#

Is there a general event then for all blocks broken no matter what the cause?

#

I tried that

bold anchor
#

Most anticheats will shit you in the face tho

wheat summit
#

It didn't seem to work

bold anchor
#

Explain

wheat summit
#

Here

bold anchor
#

What did you try, why did it not work?

wheat summit
#

It only broke the block above in my code

#

Let me grab it

frigid ember
#

you can use packets and packet listner tho

wheat summit
bold anchor
#

You only need to break it if the event isn't cancelled

wheat summit
#

When I tried just calling it I got a null and StackOverflow error

#

Without breaking before calling ^

brisk void
#

@frigid ember you want corpse?

frigid ember
#

corpse?

#

whats that

bold anchor
#
val event = BlockBreakEvent(block, player)
event.callEvent()
if (event.isCancelled().not())
  block.breakNaturally(player.equipment.mainHand)
brisk void
#

whats that
@frigid ember a dead player laying on ground.

frigid ember
#

yep i want the laying packets

#

and send it to a player

wheat summit
#

Thanks Jan, that seems to work though only if the block is above

#

Would calling the event return the for loop and stop it?

bold anchor
#

No, calling the event will not discontinue the for loop

wheat summit
#

Oh

#

That's weird

#

Only happens once for some reason

frigid ember
#

anyone help me with the fields of

#

BED packet

#

protocol LIB

brisk void
frigid ember
#

1.15.2

brisk void
#

1.15.2 doesn't have a bed packet.

#

You need to set the EntityPose.SLEEPING

frigid ember
#

By nms?

#

i dont want to use nms

#

protocol lib is fine for me

bold anchor
#

Then find it out yourself

brisk void
#
meta = new ClientboundSetEntityDataPacket();
+        meta.id = entityId;
+        meta.packedItems = new ArrayList<>();
+        meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(6, EntityDataSerializers.POSE), Pose.SLEEPING));
+        meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(13,
+                EntityDataSerializers.OPTIONAL_BLOCK_POS),
+                Optional.of(new BlockPos(location.getBlockX(), location.getY(), location.getBlockZ())))
+        );
#

That's what I do for sleeping. Keep in mind that the blockpos needs to be populated with a bed.

frigid ember
#

ClientboundSetEntityDataPacket() which class is this?

#

can you explain me?

brisk void
#

PacketPlayOutEntityMetadata! I'm using MojangMappings myself for private stuff. So names can differ.

frigid ember
#

which class is PacketPlayOutEntityMetadata

brisk void
#

Look into NMS yourself I'm not your daddy.

frigid ember
#

i never worked or NMS

brisk void
#

Then it's time to digg into it yourself.

wheat summit
frigid ember
#

did you try print a message to see how much time this loop works?

fallen field
#

is this for like spigotmc

#

or like Spigot resources?

wheat summit
#

No

frigid ember
#

try it then

wheat summit
#

Also now for some reason I

#

'm gettting a massive Overflow

#

Says six and looks like for each iteration it causes an error

#

Here is the main part:

Could not pass event BlockBreakEvent to ElytraGliding v1.0.0
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:312) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:528) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[craftbukkit-1.15.2.jar:git-Bukkit-8160e29]
        at com.flaming.VeinMiner.onBrealasd(VeinMiner.java:42) ~[?:?
#

Line 42 is: plugin.getServer().getPluginManager().callEvent(blockBreakEvent);

#

Plugin is initialized

frigid ember
#
meta = new ClientboundSetEntityDataPacket();
+        meta.id = entityId;
+        meta.packedItems = new ArrayList<>();
+        meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(6, EntityDataSerializers.POSE), Pose.SLEEPING));
+        meta.packedItems.add(new SynchedEntityData.Item<>(new EntityDataAccessor<>(13,
+                EntityDataSerializers.OPTIONAL_BLOCK_POS),
+                Optional.of(new BlockPos(location.getBlockX(), location.getY(), location.getBlockZ())))
+        );

@brisk void PacketPlayOutEntityMetadata meta = new PacketPlayOutEntityMetadata(); this class right?

brisk void
#

Jup

wheat summit
#

I think my problem is here Block toBreak = Objects.requireNonNull(Bukkit.getServer().getWorld(block.getWorld().getName())).getBlockAt(blockLocation);

#

I think it is making the block null it seems like even though it shouldn't be

bold anchor
#

Why are you doing all that

#

Bukkit.getServer().getWorld(block.getWorld().getName())) -> block.getWorld()

wheat summit
#

Ahhh

#

Ok

frigid ember
brisk void
#

Idk what the obfuscated field is named. ๐Ÿคท

frigid ember
bold anchor
#

That's not a field

brisk void
#

That are methods

#

Look into the class and set the fields using reflection.

wheat summit
#

Ok I';m not getting any errors now though it cwon't chain and only go 1 block

#

Nevermind I saw

fickle inlet
#

looking for some (hopefully) quick help
i'm having some pretty serious issues understanding how to add/set values/strings to a YAML file
can anyone point me in the right direction?

wheat summit
#

I'm always getting an error saying I'm passing something null to the event when I'm passing it even though I shouldn;t be

fossil shoal
#

looking for some (hopefully) quick help
i'm having some pretty serious issues understanding how to add/set values/strings to a YAML file
can anyone point me in the right direction?
@fickle inlet

#

?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.

fickle inlet
#

since the link that one points to is dead (link pointed to how to do get set)

#

what are these default values? how do they play into adding values to the file?

neon matrix
#

What event is it when a block of water breaks a head?

sturdy oar
#

?

#

BlockBreakEvent i guess

neon matrix
#

That is a player event

bold anchor
#

No Fendi

sturdy oar
#

oh I probably misunderstood his question

neon matrix
#

BlockPhysicsEvent or BlockFromToEvent :thonk:

sturdy oar
#

i mean they should also fricking rename that event

#

BlockBreakByPlayer would be the correct one...

#

or something

neon matrix
#

PlayerBreakBlockEvent

bold anchor
#

Are you stupid viper?

sturdy oar
#

no?

#

PlayerBreakBlock would be more appropriate

paper compass
#

Whats the best decompiler?

sturdy oar
#

Luyten is good

#

although i prefer to use RECAF

#

because has multiple decompilers support and lets you edit assembler code

frigid ember
#

Why rename events when you can just have people read the java docs?

paper compass
#

How do you export a jar as zip in RECAF? @sturdy oar

sturdy oar
#

i don't?

paper compass
#

Can you do that?

sturdy oar
#

no idea

paper compass
#

Hmmm

sturdy oar
#

i just use it do edit assembler code

paper compass
#

ah

bold anchor
#

I mean

#

Just it export it as a jar and rename it to zip

paper compass
#

Lmao

shrewd maple
#

I'm looking for EULA compliant solutions that would sell well enough for our server to break even

#

We already got ultracosmetics and we can sell access to /nick /firework etc but that won't cut it

gleaming helm
#

Libsdisguises works well Iโ€™ve heard

shrewd maple
#

Doesn't support 1.8.8

#

Id go newer but nobody wants to

#

Thx for the suggestion though

ancient ridge
#

oh no plugin doesnt support 1.8 oh well better update

shrewd maple
#

Not a single person wants newer sadly enough

#

And most things still support 1.8.8 actually

frigid ember
#

wรจฤฏล™ฤ, when my server was 1.8, many wanted an update

shrewd maple
#

Well, one server ain't the other

#

Anyways, this ain't what i'm here for

floral isle
#

hi there's a method for NPC chatevent?

#

for create talking npc

bold anchor
#

Probably ask Citizens

floral isle
#

no without the citizens api

sturdy oar
#

PacketPlayOutChat

#

i guess

floral isle
#

ok but there's a example code?

#

for have and idea

sturdy oar
#

... you're on your own if you use NMS

#

there's no documentation for it

#

you either look at someone else's repository, or just look at server's code

floral isle
#

ok

sturdy oar
#

and btw

#

a 30 seconds search

#

could've lead you to CraftPlayer#sendMessage

#

which, will just create a PacketPlayOutChat packet from given arguments and send it

floral isle
#

ok thx

red zenith
bitter tendon
#

How to set the attack speed/damage on an ItemStack/ItemMeta?

bold anchor
#

Set the attributes

bitter tendon
#

How do I initialize a multimap?

subtle blade
#

Use its implementation

#

For instance, ArrayListMultimap.create()

frigid ember
#

Is there a way to get a RESTful api into a plugin?

subtle blade
#

As in create one? Or call upon an existing one?

steady cedar
#

@frigid ember if you want to create one, use sparkjava.

#

If you want to use one, use the HttpClient.

frigid ember
#

I want to create one

steady cedar
#

Use sparkjava, then.

frigid ember
#

ok

#

thanks

#

wow that looks perfect for me

half finch
#

Is there a way to get how much delay is left on a scheduled task?

bold anchor
#

Delay meaning?

#

Until next run?

half finch
#

Yeah

bold anchor
#

Don't think there is a method for that

#

Just save it yourself

half finch
#

If I save it, how should I go about updating it to reflect how much time is left?

bitter tendon
bold anchor
#

The name

subtle blade
#

A unique identifier. Honestly, I don't know what vanilla uses it for

bold anchor
#

like generic.attackDamage

subtle blade
#

It's entirely unrelated to what attribute is being used.

bold anchor
#

well why is it named name then

#

smh

subtle blade
#

Wonder if maybe they use it as a reference in the /attribute command in 1.16

bitter tendon
#

But why? I already have to specify it as an Attribute

#

So what if I use a different attribute?

subtle blade
#

I would honestly name it something like yourplugin:generic_attack_damage or something along those lines

#

Namespaced key format

#

No, looks like the UUID is used as the reference in the /attribute command. Yeah. Name seems entirely unused to me

frigid ember
#

I am really confused. How can i use a API of a plugin?

novel haven
#

Hey I am having trouble with my server with spigot. When people who dont have OP they glitch in blocks like chests, beds, chiseled etc blocks that arent full. They get kicked for flying etc. Also they have trouble with swimming etc. What do I need to do to fix this problem?

frigid ember
#

Simply adding it as a library ended in a error.

#

Error:(4,26) java: package me.Cmaaxx.PlayTime does not exist

bitter tendon
#

Okay, now how can I specify the slot (in the NBT -> Slot:"mainhand"). Because its applied in all the slots now

#

Is it okay to use UUID.randomUUID() in UUID for the attribute @subtle blade ?

subtle blade
#

There's a constructor that doesn't accept a UUID and it will randomly generate one for you

#

Just don't provide one

#

Also, there's an EquipmentSlot parameter

bitter tendon
#

I need it to specify a slot :\

#

yeah

subtle blade
#

Ah, then yea, randomUUID() is fine

#

There should be a constructor that lets you pass a slot and not a UUID though

#

Will probably PR one after 1.16

bitter tendon
#

๐Ÿ˜„

pastel arrow
#

Are events able to be called from onDisable()?

bold anchor
#

I mean, yes

#

But who knows if the other plugins are disabled before whatever etc.

pastel arrow
#

well I call an event and then unloaded the listeners but the listener isn't sending the debug code...

bold anchor
#

Why are you calling an event there tho

pastel arrow
#

To tell the api to save data

subtle blade
#

afaik, the event bus is shut down by that point

#

There should be no handlers to listen for it

#

So, yes, you can call it... though I don't think anything is going to be able to listen to it

pastel arrow
#

You never registered it
Edited

There should be no handlers to listen for it
So, yes, you can call it... though I don't think anything is going to be able to listen to it
???

#

You won't be able to trigger that event yourself either, since you didn'tregister it.
Reread the pseudo code

bold anchor
#

Seems like the second one is incorrect usage.

#

You have a constructor with 1 param but isn't passing one