#help-archived

1 messages · Page 14 of 1

velvet halo
#

Yeah I did it like that

#

Thanks for the help

#

Now onto removeing minecraft commands. Any hints on how to approach this?

tiny dagger
#

same way tbh

#

check the map

#

but why would you do that?

velvet halo
#

I just want people to run commands from my core.

tiny dagger
#

that sounds like a waste of time but go ahead :p

#

i guess

#

clear the knockcommands map

velvet halo
#

Being negative is also a waste of time

frigid ember
#

the command works, but displays this

#

until I OP.

jagged sedge
#

give them the permission node?

frigid ember
#

They have it.

tiny dagger
#

no

#

it's not op is it

jagged sedge
#

lol

frigid ember
#

it's not op.

#

but this error message does not appear when OP.

tiny dagger
#

so if it works for op

#

but not with the permission you gave them

#

that means its not the right one

frigid ember
#

the command still works without OP, it just displays the message.

#

suddenly it works again

#

let me restart to see if it still occurs

#

displays the issue again

#

while the command works

#

it annoys me.

velvet halo
#

@tiny dagger It doesn't remove the vanilla minecraft commands it just removes spigot commands.

tiny dagger
#

these?

velvet halo
#

/minecraft:advancement etc

frigid ember
#

why does it display the message

#

it works, but the message.

tiny dagger
#

@velvet halo the minecraft commands are stored in another part

#

CommandDispatcher for 1.8.8

velvet halo
#

Yeah that makes sense

winter hare
#

I'm trying to figure out if Spigot blocks the vanilla /scoreboard colour/nametagvisibility command? I've got no plug-ins, it's on 1.12.2. I can't make my nametag disappear on the server, nor colour it. It's a local spigot server.

tiny dagger
#

i doubt

#

try making a plugin to set the scoreboard to the main one

sleek spruce
#

spricht hier jemand auch deutsch?

frigid ember
#

ich

#

wie gehts

frigid ember
#

doesnt block for sure, I have 120 plugins and I can do what you mentioned without a problem

tiny notch
#

Anyone know how to set up voting plugin, so that certain ranks on the server get other rewards when voting?

#

If someone has set it up successfully, I'd love to just have the config file sent, so that I can see what's done

keen compass
#

probably would help if you specified which vote plugin you are using

rocky knot
#

Is it safe to cache entire inventory?

dusky basalt
#

He's talking about VotingPlugin

subtle blade
#

Very creative name

fleet burrow
#

Lmaooooo

dusky basalt
#

No, it's actually called VotingPlugin

frigid ember
#

heard of BlockingCheatsAndHackersPlugin?

solar bloom
#

Does anyone know why my server post would have been taken down? I was not given info on why.. it was just taken down and marked as Inappropriate Advertising / spam. Are you not allowed to bump posts anymore? https://gyazo.com/dea0756e6bb62b2da8cebd8963a4e7d9

nimble solar
#

you can bump once / 24 hours

solar bloom
#

I believe that I did. I replied to people commenting on the post as well?

#

Not sure if that overlaps or not

mossy zenith
#

lol @subtle blade you seriously got choco.wtf?? that's a tld??? wat??

subtle blade
#

Lol yea

#

It's great having all my errors tell me "wtf.choco"

mossy zenith
#

wtf.choco.chocosPlugin

solar bloom
#

Ahh @subtle blade ^ could you read the above idk if you are allowed to respond to this or if we have to do it through the site

mossy zenith
#

@subtle blade I love it, now I gotta get a wtf domain

fleet burrow
#

Does Recipe.ExactChoice ignore item amount?

solar bloom
#

...

mossy zenith
#

I just ordered my new wtf domain xD

fleet burrow
#

Does Recipe.ExactChoice ignore item amount?
@fleet burrow yup

solar bloom
#

How do I go about finding info on why my post was taken down?

fleet burrow
#

Why wouldn't it compare amount ahhhh

winter hare
#

@frigid ember Were you answering me and my problem with /scoreboard commands? Could it be one of your plug-ins fix it? I'm literally running a clean spigot, and I'm doing the same code there as I'm doing on a vanilla LAN world, only that the spigot version does not give the desired effect..

frigid ember
#

plugins only break scoreboards usually

#

try check configs

subtle blade
#

@solar bloom because it was a "Join my server!" thread. It should have been taken down earlier, we were just backed up on reports

#

That's the definition of an advertisement lol

solar bloom
#

Are you unable to do server ads on that forum? I have an old one that has been there for years or so and I have seen a few others

#

Is this a new change? @subtle blade

subtle blade
#

It's been there since the rules were created as far as I'm aware. There's "Rate My Server" (where advertisements are masked as "give my server a rating" - really hate that forums), but no. We've always removed threads like that

#

Though Rate My Server makes that rule very ambiguous and I really, really... REALLY hate that forum lol

solar bloom
#

I see. Yea I didn't know this my bad, well if you check my account I think there is one from a looong time ago that is still there that may need to be taken down. I will probably just report it to get it taken down.

subtle blade
#

It's fine. If it's old and hasn't been touched in a while I wouldn't bother

fleet burrow
#

Is there a new good implementation of ExactChoice for 1.15

#

?

subtle blade
#

(and don't worry about the warning, it's more of a reference point for us)

solar bloom
#

Gotcha thanks

subtle blade
#

ExactChoice is the implementation, heknon. What do you need?

fleet burrow
#

It's deprecated

#

And doesn't compare amount

subtle blade
#

For draft API. Should be undeprecated at this point

#

Amount shouldn't be considered in a recipe

#

If you want it to, listen to the PrepareItemCraftEvent or whatever it is

fleet burrow
#

What about using ASM?

#

¯\_(ツ)_/¯

subtle blade
#

wat

mossy zenith
#

oh @fleet crane not trying to sound demanding or anything, but you'll get my nitro boost when you actually enable screensharing in at least one voice channel (otherwise it's pointless). I know you think we should just use DM but consider that not everyone wants to add people or open DMs up to everyone. Twitch isn't for private sharing. We literally have no other options sometimes, or maybe it's just more convenient, other than to use discord screensharing in a voice channel on the current server. Screensharing can also be an absolutely crucial tool for helping others code, getting help coding, or just helping/getting help in general. It's a lot more convenient and faster than screenshots, that's fore sure. If it's moderation that you're worried about, just enable in one channel. If I had to, and you would allow me to, I'd even volunteer to sit in there basically 24/7 moderating it... no sleep @fleet crane ... (NO SLEEP!) that's how dedicated I am and how badly I (and others) want to see this happen. I know I'm not the first one to ask this of you, and I know that your answer is likely going to be no, but I thought I would pitch my 2 cents in anyway. so there it is.

TLDR: please please please pretty please with sugar on top enable screensharing in at least 1 voice channel.

subtle blade
#

why would you want to do that? lol

#

Wall of text

mossy zenith
#

@subtle blade it had to be said

subtle blade
#

PES_CryHands I don't like reading

mossy zenith
#

the TLDR is for you guys, I hope md_5 reads it

subtle blade
#

You could have said something racist in that block of text and I probably wouldn't even notice

fleet burrow
#

Change the implementation of the test method

mossy zenith
#

@subtle blade I didn't, but thanks for the idea.

subtle blade
#

D:

final verge
#

Choco is disappointed

severe hemlock
#

hey guys i need help installing BuildTools

keen compass
#

o.O

leaden heath
#

You only need the spigot jar file it created to run the server @severe hemlock are you trying to make plugins as well?

severe hemlock
#

yes

leaden heath
#

Which ide are you using

severe hemlock
#

but from what I understand running the spigot jar file will automatically generate a 'plugins' folder

#

wym

leaden heath
#

Oh ok, do you already have a server set up?

severe hemlock
#

yes i do

#

running Mojang's official 1.15.2 server jar file

leaden heath
#

Ok, so just add the spigot jar file into your server folder and run that, it acts as the replacement for the vanilla one

severe hemlock
#

yep i know

#

but when I ran BuildTools with the command line i couldn't find a spigot jar file

#

which is weird

leaden heath
#

It will place it in the same location as buildtools when your run the command line

severe hemlock
#

so im reinstalling since I had the sense to make a copy of my server's files before doing this (so that I don't have to go through the process of removing everything

#

ok

#

maybe i missed it

#

im an idiot

#

i left it in the folder where I originally ran BuildTools

leaden heath
#

Lol 👍

#

Well now you have it, is all that matters

severe hemlock
#

thanks

#

imma just go ahead and mute verification since I don't want to get pinged

#

also do you have any idea why my datapacks aren't loading whenever I use Spigot?

subtle blade
#

Don't encourage illegal mirrors

#

ktnx

sharp hollow
#

Someone needs to get a word blacklist and just.. ya know... blacklist those 👀

stone oxide
#

Hi, does Location#add(Vector) modify this vector or does it return the modified one, while the current vector stays unmodified?

subtle blade
#

Mix of both

#

Modifies and returns itself

#

Location and Vector are both mutable

#

The vector passed as an argument remains unchanged, though the Location (or Vector) on which #add() is called will be modified and returned

#
public Location add(Vector vector) {
    this.x += vector.getX();
    this.y += vector.getY();
    this.z += vector.getZ();
    return this;
}```
severe hemlock
#

um help im using multiverse and I set spawn using a bed but when I die it just puts me back to the world spawn. is there a way to spawn at my spawnpoint instead of at the world spawn?

stone oxide
#

is there a way to add a vector to a location without modifying the existing location? maybe like a copy method or something?

naive goblet
#

Idk if #clone() would do the job?

stone oxide
#

I'll give it a try, thanks!

subtle blade
#

clone() would be the correct method to call, yea

#

You're going to end up modifying that clone, but the one you've cloned will remain untouched

tiny dagger
#

any idea why removing the invisible potion effect after a teleport glitches the client model for a few seconds 🤔

severe hemlock
#

idk

valid zenith
#

How to starting boost server?

#

How to make a quick boot kernel to start the server

frozen cedar
#

Wish I knew tbh

keen compass
#

what do you mean glitches the client model?

tiny dagger
#

the client that got teleported can't see his character anymore for a few seconds

#

i mean if you want you can come on my server and experience it yourself

sleek spruce
#

hi @frigid ember mir geht es gut und dir?

frigid ember
#

mir gehts auch gut

severe hemlock
#

how do you set a spawn for all of multiverse instead of setting a world spawn

#

help!!!!!

#

also um how do you even get mv-p installed

#

i tried and it doesnt load

sleek spruce
#

freut mich. was würdest du empfehlen Bukkit oder Spigot?

sudden compass
#

Hello good, is there any guide for connecting two hosts through iptables?

trail zephyr
#

Hello, how can I set data for particles other than redstone?

rancid python
#

excuse me, is there a plugin that sets a default spawnpoint? im meaning, (example) i spawn at 0, 100, 0, and i move to 100, 100, 0, i leave the server, and again i am at 0, 100, 0, also, it is for 1.15.2?

tiny dagger
#

ive made this

#

just /setspawn and you're good to go @rancid python

rancid python
#

omg tysm

stone oxide
#

how to deal 1 damage to the item? more specifically, to the pickaxe

Damageable damageableMeta = (Damageable)playerHandMeta;
damageableMeta.setDamage(damageableMeta.getDamage() + 1);
playerHand.setItemMeta(playerHandMeta);

It deals a lot of damage so I guess the range for setDamage is 0 to 1. How to get the maximum damage because I don't see such a method in Damageable.

And also, the pickaxe doesn't break. How to force it to break if its durability is <= 0?

mental coral
#

I also ran into that issue, gimi just a moment and i'll show you how. The "damage" was straight up backwards to what I thought and you have to manually check the durability and remove the item from the inventory afaik.

silk bane
#

damage might actually be durability

tiny dagger
#

Confusing times

stone oxide
#

damage which is durability, yeah

#

that progress bar thing that's under the item icon in the hotbar XD

mental coral
#
final ItemStack stack = inventory.getHelmet();
final ItemMeta meta = stack.getItemMeta();
if (meta instanceof Damageable) {
    if (((Damageable) meta).getDamage() >= stack.getType().getMaxDurability()) {
        inventory.setHelmet(null);
    } else {
        ((Damageable) meta).setDamage(((Damageable) meta).getDamage() + 1);
        stack.setItemMeta(meta);
    }
}
#

Thats for a helmet specifically, but you can adjust it to work for the inventory or held item itself.

#

If you do not check the against the max durability, it goes negative for whatever reason and makes the durability go past the bounding box of the slot with a red bar. Weird as hell.

stone oxide
#

that's what I just encountered

sharp hollow
#

I wonder why vanilla doesn't have that sort of check 🤔

stone oxide
#

it makes items break fast

regal topaz
#

You have a solution for fix here ? 😦

stone oxide
#

I have an iron pickaxe in my hand, and 205 durability

#

I broke 1 block and it's 196 now

#

hahaha I was doing that in a loop

mental coral
#

@regal topaz I would suggest implementing safeguards like requiring the "bots" to move and be online for a certain time.

stone oxide
#

I hope I fixed it

mental coral
#

Most bots cannot easily move as rending the world takes up a huge amount of resources for a server per bot user.

stone oxide
#

yep now it's all good

#

thank you Samuel!

mental coral
#

No problem 🙂

regal topaz
#

@mental coral the bot crasher use an infinite bot for overload the CPU

#

You can check on my screen, on one second, most bot was connected :v

mental coral
#

I would suggest blocking malicious ips from the server first and foremost, but unless your provider offers D/DoS protection there isn't too much you can do. By what I see, disabling query was also suggested but I am unsure of how much that can help.

regal topaz
#

My provider is OVH, he block all DDOS attack but Bot attack is not an DDOS attack, others developers he say me is a "null ping exploit" but he don't have a solution for that

frigid ember
#

keepin it 💯

mental coral
#

That is still a denial of service if it overburdens and crashes the server, however in reality it is just packet spam. Per a little digging it seems that ExploitFixer by LinsaFTW may assist, but I do not run bungeecord myself and your milage may vary. If you are technical you can implement something such as Fail2Ban by reading the logs and parsing them to automatically ban IPs that consistantly spam that message. @regal topaz

regal topaz
#

I already use ExploitFixer with FlameCord for try to patch that and is not good :v

severe hemlock
#

im using the antigrief plugin and idk how to configure it

#

i used it and what happened is that my friend can still break the blocks inside the claim\

mental coral
#

Do you use AntiBot as well @regal topaz ? (Same author)

#

Is your friend an op or administrator ('*' perm) @severe hemlock ?

severe hemlock
#

oh um op

#

thats why

mental coral
#

Yup

severe hemlock
#

aaaaaaand now its fine

#

i deop-ed him to test this

regal topaz
#

@mental coral I try with anti bot and with no (My server is premium)

severe hemlock
#

thanks

mental coral
#

It seems to have protections against ping attacks with rate limiting, so I would give that a try.

#

But your server/network firewall is the best defense if you can implement it correctly.

keen compass
#

solution is to packet filter using a set of rules. Like for instance, drop packets that have bad packet ID's etc. Layer 7 (IE, application layer) are much harder to block due to it looking like legitimate traffic.

severe hemlock
#

also why the heck is it that when i use /i it gives me stacks of items even if they're unstackable (like swords)

mental coral
#

EssentialsX? or?

severe hemlock
#

yep

#

EssentialsX

cold wharf
#

How can I change my username on SpigotMC?

severe hemlock
#

also I can't take falldamage

regal topaz
#

@keen compass you have a solution for disable the bad packet ID's ?

keen compass
#

Well, hardware firewalls can do packet filtering but I doubt you pay for one. Not sure how well software firewalls do with packet filtering

mental coral
#

@severe hemlock Its likely because you are probably an operator as well. Make sure you do not have /fly enabled however.

essentials.oversizedstacks is what generates that, and as an op you will have that permission by default.

cold wharf
#

How can I change my username on SpigotMC?

severe hemlock
#

well ill turn off /fly in the future then

#

kk now i can take fall damage

#

also why do i have a stack of sharpness 5 diamond swords?

frigid ember
#

fact

mental coral
#

Not sure, that is really not able to be determined. If you did /item (or /enchant on it) to get it and have oversized stacks, it would probably be why.

cold wharf
#

Hey?

drowsy hinge
frigid ember
#

who can donate me 5

cold wharf
#

Oh

frigid ember
#

i need 5 more to change username

cold wharf
#

I will delete my ccount then

#

And recreate

frigid ember
#

i can’t

#

u can only report it to be deleted

#

braindead ryte

quick arch
#

you can't have alts unless you have an actual reason

cold wharf
#

This is so bad

frigid ember
#

u cant delete your own resource

#

you must report your own resource to get it removed

severe hemlock
#

why can only OPs use my mv-p portals?

#

multiverse-portal portals

#

how can i make it so everybody can

storm tulip
#

so im loading chunks using chunkAt, and getting snapshots, how do I know when to unload the chnk?
I mean, I know its not as simple as checking for players in the chunk, I wanna know how to know to unload it\

frigid ember
#

how can i make it so everybody can
@severe hemlock give non ops the permission

#

the plugin surely specifies the required permission

#

use a permissions plugin like luckperms

severe hemlock
#

does Vault work?

frigid ember
#

vault alone no

#

you need vault and luckperms

#

vault iself is nothing as a plugin

#

it rven has no commands

#

luckperms just needs vault

#

permissionsx too

winter hare
#

I found the problem with /scoreboard commands not changing name colour nor making the tag disappear. I went through all files in the server and found nothing. Then dicking around with /help I found out that all vanilla commands also has a /minecraft:[command]

#

Using the /minecraft:[command] I can make colour and nametagvisibility work. But only then. This must be some strange bug?

frigid ember
#

incredibly strange

#

but glad that you found solution

mental coral
#

Vault is an API to hook permissions plugins together for other plugins to use. Alone it does nothing for you, but for developers it makes it far less annoying, FlareStormGaming.

severe hemlock
#

epic thanks xCykrix

dusty topaz
#

I'm using an outdated version, so I don't get the luxury of TextComponent#append(BaseComponent[]), so I have to do this a weird way

#
        TextComponent component = new TextComponent(messageBuilder.create());

        if (player.hasPermission("skyvale.chat.color")) {
            component.addExtra(new TextComponent(TextComponent.fromLegacyText(messageColour + rawMessage)));
        } else {
            component.addExtra(new TextComponent(messageColour + rawMessage));
        }

#

The bottom bit is being ran

#

it persists if you run the top one

#

I know this is the common pitfalls part of the chat component API

#

but I don't know how to get around it without letting them colour

winter hare
#

@frigid ember I am an actual idiot. I made this whole thing to make some skripts for a friend's server using Skunity. As it turns out, Skunity is why it doesn't work. Which makes 0 sense because Skunity is only supposed to add the ability to make custom skripts for the server, instead of plug-ins..

#

I reinstalled skunity plug-ins, and now it doesn't work again..

#

Sorry about the whole mess. I really could not understand why skunity plug-ins would mess it up. But uh..

heady berry
#

Better to use Player.sendMessage() or Player.spigot().sendMessage()?

frigid ember
#

use Player#sendMessage unless you want to send a text component

tiny dagger
#

the Spigot#sendmessage is for text components

barren egret
#

I have a question about one of my posts that was deleted today,
http://webcache.googleusercontent.com/search?q=cache:https://www.spigotmc.org/threads/guide-bartys-server-optimizations.424817/

I do not see what is different between my post and celebrimbor's optimization guide when referring to forks, I specifically say not to use spigot support for forks just as celebrimbor did, but my post was deleted without warning and his is still there? what can i do to prevent it from being deleted in the future?

keen compass
#

vault isn't really necessary for permissions although can still be used for it. What it is most handy for is connecting with economy plugins though

frigid ember
#

I know.

#

But since he barely knows what I was on about.

#

to a user, vault is useless.

#

To a developer, vault is useful.

#

You cannot interact with vault in game using commands

#

@keen compass

solemn grove
#

Heard that Spigot promote plugins that are frequently updated?

frigid ember
#

how

keen compass
#

that is true, vault is just a utility plugin for other plugins

frigid ember
#

yeah

#

for a user its just useless

#

he seemed clueless so we didn’t need to go into so much detail

#

just he needed permissions, i explained permissions

sharp hollow
#

I don't think there's any actually "promotion" @solemn grove
It's more of the most recent updated plugins are shown first, so if you update frequently your plugin will get shown first 😛

frigid ember
#

yeah

#

i just realized

#

tha why i said nah

#

i say time your updates

#

at times where not many upload

#

then more users might see it

#

now with the corona virus its hard since everyone is at home

#

hard to find a time where people at work or so

solemn grove
#

@sharp hollow Well I guess breaking down updates into smaller pieces have benefits

frigid ember
#

yea

solemn grove
#

¯\_(ツ)_/¯

frigid ember
#

don’t spam updated in a day

#

it can get annoying for users

#

id say every week seems good and stick to a day so your users expect it

#

like every friday is an update

sharp hollow
#

^ and large-ish updates so they don't get bored quickly

frigid ember
#

that is useful if you already have a decent playerbase

#

or “fanbase”

#

not many people actually look at the developers of normal plugins

#

unless it is so good

#

like dont act like you know who created the homes plugin you use

mild mirage
frigid ember
#

or you lonby

solemn grove
#

aight thanks for the tips

frigid ember
#

np np

solemn grove
#

@mild mirage with the additions of villagers AI and pillagers event eat up a lot more CPU than the previous version

#

and i remember there was a bug if pillager can't path find to a location the server will keep trying hard until the whole thing burns down

mild mirage
#

My server used to run in under 20% CPU, and since upgrading it is 80% plus... they were talking about optimizing with the 1.15 release... but i have noidea how fundamental those optimizations might be or how much they'll help...

solemn grove
#

not sure if it's fixed in 1.14.4

#

why not just try 1.15.2?

mild mirage
#

Cause I'm afraid it might make it even WORSE!

#

LOLz.

wanton delta
#

worth trying

gritty mulch
#

Which CPU would be better to put in my server? (both cpu's are roughly the same price, ignore the price on the screenshot)

drowsy hinge
#

arguably either will get you great perf, pro of the xeon is its a newer gen, but other than that I'd say get the i7, higher per-core clock speed (which is what mc needs) and more cores to run more servers concurrently

severe wind
#

^ For Minecraft, almost certainly the i7. You have the option of overclocking that with a motherboard that supports it, too. You just won't be running on "server-grade" hardware with it.

gritty mulch
#

The i7 looks better on paper but I heard that the xeon will be better because its designed to run 24/7 , while the i7 isn't?

drowsy hinge
#

honestly i wouldn't be worried about lifespan unless you do plan on heavily overclocking

gritty mulch
#

I've been running my i7 4790k in my server for 5 years+ now

severe wind
#

Yeah. The Xeon is definitely built for it, but the i7 can certainly handle it, too.

gritty mulch
#

no problems, even overclocked it slightly.

marsh dew
#

The Xeon and the i7 require different boards, I think

#

If you can get it, I'd go for dual Xeons. Lots of performance head room and they're meant to run 24x7 and are very reliable.

#

imho

severe wind
#

The bigger differences are going to be server-grade features. A motherboard for the Xeon would likely have a management interface, which might be useful, or practically necessary (alternatively using an IP-KVM with the i7) if you're colocating. Likely to find better reliability in server boards, too, although I've never had any problems with running mid/high-end consumer-grade hardware 24/7 personally.

#

ECC RAM support, etc as well.

marsh dew
#

❤️ ECC

#

❤️ IPMI/iDRAC

frigid ember
#

buy me that cpu for my pc

#

i dont even have over 3.00ghz

severe wind
keen compass
#

depends which xeon you are comparing @marsh dew I7's are pretty much Xeon's but built for desktop since they contain everything that Xeon's have had already. There is some Xeon's that have the same socket as some of the i7's

marsh dew
#

Fair enough and very true.

keen compass
#

I thought about putting an Xeon into my computer

frigid ember
keen compass
#

but unfortunately they require a large heat sink

#

Don't really want a monster of a computer with parts hanging out everywhere so I am going to upgrade it to an I7

prime wing
#

Hi everyone, i'm new to server hosting and had a little server for a few friends. The ip was only given to my close friends and nobody gave the ip out. Yesterday we had a random person join the server claiming to just be looking for new servers. Does spigot post your server online anywhere? How could someone possibly find my server? Could this possibly be a security issue for my network?

hoary parcel
#

There are bots that scan the internet

#

You can search for mc servers on shodan for example

#

Also maybes mc server used the IP before you

#

Spigot doesnt post your server anywhere

#

Use a white list

prime wing
#

interesting thanks for the info

storm willow
#

how can i disable the outdated spigot message? i dont want to wait 20 seconds when restart my server, and i have the latest version...

harsh anvil
#

use paper runs
theres a flag for it

#

-DIknowWhatImDoingISwear

#

add that as an argument to your jar

#

(its not a joke)

sour smelt
#

I like it when devs make stuff like that haha

#

what else does that flag do?

harsh anvil
#

nothing

#

just disables the warning

sour smelt
#

oh okay great

#

Not the original asker, but had the same question

harsh anvil
#

looks look you actually need to put it before the jar name

sour smelt
#

okay

harsh anvil
#

java -DIReallyKnowWhatIAmDoingISwear -jar spigot.jar

sour smelt
#

Great

#

@storm willow

storm willow
#

thanks

#

i try it

sour smelt
#

Thanks so much, @harsh anvil

harsh anvil
#

👍

sour smelt
#

hmmm, I just tried it, doesnt seem to be working @harsh anvil

#

This is my start.bat

#

java -Xmx8g -Xms8g -DIknowWhatImDoingISwear -jar B:\Minecraft-server\spigot-1.15.2.jar nogui

fleet crane
#

how can i disable the outdated spigot message? i dont want to wait 20 seconds when restart my server, and i have the latest version...
@storm willow then you do not have the latest version

harsh anvil
#

was that flag removed? pretty sure it works still

silk bane
#

you forgot the 'really'

storm willow
#

@fleet crane i installed the latest minutes ago and then continue saying it

harsh anvil
#

oh yeah

#

haha

#

did you use build tools?

fleet crane
#

Let /version be the judge of that

harsh anvil
#

dont download from 3rd party sites

fleet crane
#

Even if hypothetically the outdated check was broken, disabling it would not be the solution either

storm willow
#

[Server thread/INFO]: This server is running CraftBukkit version git-Spigot-800b93f-8160e29 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)

fleet crane
#

Thats 74 versions outdated

#

sighs

rustic glade
#

lol

#

I thought /version said how many versions behind one is 🤔

storm willow
#

i installed it minutes ago

#

how is possible

rustic glade
#

That's the problem.

harsh anvil
#

🤦‍♂️

pastel basin
#

you need to use buildtools

harsh anvil
#

use buildtools

fleet crane
fleet crane
#

I wish they would stop posting incredibly old builds

storm willow
#

So where do I download the last one?

rustic glade
#

You don't.

#

You build the last one.

pastel basin
#

download and run buildtools

harsh anvil
fleet crane
#

?bt

worldly heathBOT
harsh anvil
#

well ok then xD

fleet crane
#

Run that jar and it will download the latest version

rustic glade
#

I literally linked that lol

harsh anvil
#

is there a way to "naturally" damage an entity? taking armor and stuff into consideration?

pastel basin
#

one link is not enough? lol

fleet crane
#

Yeah Ithought it might’ve been the direct link

storm willow
#

ok, thanks

pastel basin
#

is there a way to "naturally" damage an entity? taking armor and stuff into consideration?
@harsh anvil Maybe call EntityDamageEvent?

#

EntityDamageEvent​(Entity damagee,EntityDamageEvent.DamageCause cause, double damage)

harsh anvil
#

ah yeah, wasnt sure if it was possible from the entity or not

#

thanks

pastel basin
#

np, tell me if it works

harsh anvil
#

what are the damagemodifiers?

wind dock
#

Hey guys

#

So for the run.bat file

#

That I open

#

To start my server

#

What do I put in there?

#

What would be the command cmd has to execute

#

For the server to start

pastel basin
#

@harsh anvil modifiers? Like if the entity has armor the damage needs to be different?

wind dock
#

1.8.9 spigot

#

Also could someone tell me how to add more cores/threads to the server

safe ocean
#

can someone help me

wind dock
#

Cause those 2 are what I cant figure out

safe ocean
#

My server keeps crashing and I cannot figure out why

pastel basin
#

@harsh anvil I think it handles automatically, test it

harsh anvil
#
  @Deprecated
    public EntityDamageEvent(final Entity damagee, final DamageCause cause, final double damage) {
        this(damagee, cause, new EnumMap<DamageModifier, Double>(ImmutableMap.of(DamageModifier.BASE, damage)), new EnumMap<DamageModifier, Function<?         super Double, Double>>(ImmutableMap.of(DamageModifier.BASE, ZERO)));
    }

Seems like i can just call this deprecated method and not worry about it lol

pastel basin
#

@wind dock java -jar spigot.jar

safe ocean
#

anyone? hello lol

harsh anvil
#

post a crashlog maybe?

#

how are we supposed to know whats wronglol

wind dock
#

@pastel basin that's all I need to do?

#

How do I adjust the ram, cores and threads

#

To allocate to the server

mental coral
#

@safe ocean errors / timings would be a start.

@wind dock

  1. Enter is not a space bar.
  2. It will automatically utilize the resources available, you cannot "add more".
  3. There are many resources on creating a server out there.
#

You can adjust the ram with JVM flags. (-Xmx#G, -Xms#G, etc.)

fleet crane
#

Calling the event wont help

harsh anvil
#

oof

wind dock
#

@mental coral actually, I'm running it on the same pc I'm running minecraft on

safe ocean
#

@mental coral can I pm it? its a .txt file

harsh anvil
#

so Bukkit.getServer().getPluginManager().callEvent(new EntityDamageEvent(event.getDamager(), EntityDamageEvent.DamageCause.CUSTOM ,2)); is not an option?

mental coral
#

DM it and i'll post it, but I would suggest verifying your discord when you get a chance.

#

@safe ocean well I can already tell you why.

safe ocean
#

(: thank god

mental coral
#
13.04 22:42:32 [Server] ERROR Could not load paper.yml, please correct your syntax errors
13.04 22:42:32 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: while scanning a simple key
13.04 22:42:32 [Server] INFO in 'string', line 118, column 7:
13.04 22:42:32 [Server] INFO disable-unloaded-chunk-
13.04 22:42:32 [Server] INFO ^
13.04 22:42:32 [Server] INFO could not find expected ':'
13.04 22:42:32 [Server] INFO in 'string', line 119, column 1:
13.04 22:42:32 [Server] INFO ^
#

This isn't paper support either, but your YAML is malformed.

pastel basin
#

@harsh anvil cast the entity to Damageable and use Damageable#damage(double amount)

harsh anvil
#

ahh

safe ocean
#

so what do I do?

harsh anvil
#

fix your config

fleet crane
#

Run spigot

mental coral
#

Either regenerate your paper.yml or fix the lines described in your error(s).

#

^^ that too

wind dock
#

@mental coral also waht do u mean by enter is not a space bar

mental coral
pastel basin
#

just ask everything in one line bruh

mental coral
#

^

wind dock
#

Idk that's the way I send messages

harsh anvil
#

just use google for this dude

wind dock
#

I cant find it

#

On google

#

I always try and use google

#

Before I ask stuff

harsh anvil
wind dock
#

What did u search

harsh anvil
#

spigot bat file ¯_(ツ)_/¯

wind dock
#

Oh

#

I searched up how to start up a spigot server

#

It gave me a bunch of routing and stuff

#

Do this with your Router and all that

mental coral
#

That is required if you are hosting on your own network, following those guides are required to allow others to connect from outside your local network.

#

Its port forwarding specifically.

harsh anvil
#

^ you dont need to do that for test servers, i'd highly recommend you dont lol

#

ive actually had rando's join my test server before lol

mental coral
#

^ same, dont do that for test servers

dense pike
#

https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.15.2-R0.1-SNAPSHOT/
Hi, which file should I select for the 1.15.2 SpigotAPI? There's just so many files and I would have no clue which to choose.

keen compass
#

choose which ever has the higher number and most recent date

tiny dagger
#

Did anyone used c++ in eclipse?

#

How does one set path

mental coral
#

I would recommend using a dependency manager such as maven or gradle, but it should be spigot-api-1.15.2-R0.1-20200410.011959-86.jar I think.

harsh anvil
#

you usually dont select any, just add that url url to maven i think, it'll grab everything you need

#

@dense pike you using maven or gradle?

dense pike
#

uhm

#

has nothing about maven

harsh anvil
#

btw theres a great intellij plugin for this

#

mcdev

#

sets everything up for you

dense pike
#

ooh

#

lemme find that

mental coral
#

Its ❤️

harsh anvil
#

yeah i use it all the time

dense pike
#

im surprised spigot has a wiki about not using maven lol

harsh anvil
#

well, enough people cried about it probably

fleet crane
#

its a wiki

#

literally anyone can make anything...

dense pike
#

oh i didnt realise that

#

my bad

fleet crane
#

this comes up far too often, what do people think wiki means >.>

#

noun
noun: wiki; plural noun: wikis

    a website or database developed collaboratively by a community of users, allowing any user to add and edit content.
dense pike
#

I'm sorry. I guess I should have used common sense. WIkipedia - everyone edits that. Doh. Too much time on my hands apparently.

safe ocean
fleet crane
#

it means follow the instructions on that page

mental coral
ocean anvil
#

Is it possible to add "variables" or something similar in ItemMeta lore? Trying to add custom stats to a weapon and want to store the data "on" the weapon if possible instead of just in text lore form. Thanks

keen compass
#

could store it as metadata

pastel basin
#

@ocean anvil why dont you store the data in a PersistentDataContainer?

keen compass
#

either one of those will work

heady berry
#

I have an Inventory. When I open it for the player, the player does not see anything there. And only after the player clicks on any slot does the content appear.

How can I update the inventory for a player?

I asked a friend he suggested:

Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> {
     player.updateInventory();
});

OR

for (int i =0; i < inventory.getSize​(); i++) {
    inventory.setItem(i, inventory.getItem(i));
}

But all this did not help me.

Core: Spigot 1.14.4

mental coral
#

We'd need a snippit of how you create and serve the inventory to be able to help, as depending how you created it would be how to solve it.

ocean anvil
#

Not going to lie, I'm not sure what a PersistentDataContainer is lol - tried looking into using metadata but doesn't that only work on entities? I would need to apply this to an ItemStack I'm guessing since I want to initialize the "variables" when the item is crafted

wanton delta
#

would there be a reason why Entity#setFireTicks doesn't work? I have the only plugin on the server and there are no references to EntityCombustEvent

ruby plover
#

when I try and join my server it says io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no furrther information

wanton delta
#

is there a stacktrace

#

in console

ruby plover
#

what's that?

mental coral
#

Check console for errors, and how are you hosting the server?

ruby plover
#

the console is blank

wanton delta
#

example of stacktrace

ruby plover
#

no it didnt show anything

wanton delta
#

can you execute commands in console

mental coral
#

How are you hosting the server then? Paid host? Own computer? etc.

ruby plover
#

own computer

mental coral
#

What address are you connecting with.

ruby plover
#

my ip adress

ocean anvil
#

Try localhost

mental coral
#

^

wanton delta
#

use localhost

ruby plover
#

how do you local host?

mental coral
#

Just put localhost as the ip

#

one word

ocean anvil
#

Just type in the word localhost

ruby plover
#

ok i'll try

wanton delta
#

except in your case dont put a port

ruby plover
#

ok

mental coral
#

@wanton delta snip what you did so I can shove it somewhere in my test plugin? I cant see why it wouldn't work.

wanton delta
#

entity.setFireTicks(ticks);

#

lol

#

ticks being 100

#

entity just being a player

#

ive confirmed the code hits it

#

i just have no clue why its not activating

#

because as far as i'm aware, using Entity#setFireTicks doesn't call any events

#

so it cant be cancelled

#

IntelliJ Breakpoints is saying that line of code is being activates so

#

¯_(ツ)_/¯

#

im at a loss

mental coral
#

Was just wanting to make sure it was specifically the correct entity and to make sure the code wasn't beign wonky. ¯_(ツ)_/¯

wanton delta
#

idk its just super confusing

#

you cant "cancel" setFireTicks as far as im aware

#

I've set a breakpoint at the actual spigot method setFireTicks, and nothing else is activating it

#

(e.i. setFireTicks(0) is not happening)

ruby plover
#

i tried doing localhost and it still isnt working

wanton delta
#

can you type commands into console? make sure the console isnt overloaded

ruby plover
#

i can type commands in

ocean anvil
#

Are you running it on port 25565?

ruby plover
#

yes

mental coral
#

@wanton delta snip the code for me so I can try exactly what you are doing cause otherwise I aint got a damn clue lmao

wanton delta
#

trust me, it has nothing to do with how im activating the method lol

mental coral
#
        ScheduleCrumble.addTask(() -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                player.setFireTicks(20);
            }
        }, 100, 20);

(Just a sync repeating task)

wanton delta
#

because its being activated

mental coral
#

I trust you, but if I cant replicate it then its smth your end.

wanton delta
#

yea i know, which is why im asking if its possible (although im almost sure its not) that it can be cancelled somehow

#

because it works

mental coral
#

afaik, it is not

wanton delta
#

sometimes

ruby plover
#

does anyone know why I cant connect to my server?

wanton delta
#

i personally dont have a clue, best thing i can recommend is

  1. deleting the spigot.yml and server.properties and restarting
  2. removing plugins one by one
ruby plover
#

i dont have any plugins

wanton delta
#

and you're running spigot

ruby plover
#

yeah

mental coral
#

Well if he was just setting it up...

wanton delta
#

what version

mental coral
#

Generally you get it working before plugins.

ruby plover
#

1.15.2

mental coral
#

I could suggest using 0.0.0.0 as the connect address too, but that shouldn't make a difference to localhost.
Have you changed any files since you installed the server?

ruby plover
#

nah

wanton delta
#

localhost is 127.0.0.1

ruby plover
#

the 0.0.0.0 didnt work either

mental coral
#

Same error?

ruby plover
#

same errort

#

*error

wanton delta
#

are you sure the server port is 25565

#

is the MOTD showing up on the server screen

mental coral
#

My best suggestion would be to stop the server, delete any files that arent related to the world or customized and let it regenerate. Once it does that try either localhost or 127.0.0.1 and see if that helps.

Does it show you trying to connect in the console or nothing at all?

#

Generally that error is if it cannot connecft the server via LAN.

wanton delta
#

If the server list says "cant connect to server" dont try to connect...

ruby plover
#

doesnt show anythin on the console and the port is 25565

wanton delta
#

put your latest.log into pastebin and share the link

ruby plover
#

what is latest.log?

mental coral
#

logs/latest.log

#

in the files

wanton delta
#

in your logs folder

ruby plover
#

it too long, the message

wanton delta
#

put it into pastebin

gritty mulch
#

What internet speed would you need for 100 players?

ruby plover
mental coral
#

That log is incomplete, did you copy everything?

wanton delta
#

i got it just fine

ruby plover
#

yep

wanton delta
#

oh wait nvm

#

looks like your server is just frozen

ruby plover
#

oh wait i didnt paste every thing

wanton delta
#

oh ok

ruby plover
#

i'll try again

mental coral
#

Server is binding on 192.168.0.11:25565, so you could try that as well while we poke at the logs.

ruby plover
#

ok

wanton delta
#

says u stopped the server is that true

ruby plover
#

I stopped it when you told me to stop it

mental coral
#

If that doesn't work, my best suggestion is restart minecraft and make sure you accept any security prompts it may give you. Seems to be network issues because the server is starting fine.

Probably stopped it to copy logs i'd image.

#

You dont have to stop it to get the logs.

wanton delta
#

yea check firewall

mental coral
#

^^

ruby plover
#

how do you check firewall?

wanton delta
#

totally forgot about that

#

look for it

#

im not sure how to explain that to you

#

go to your firewall

mental coral
leaden heath
#

Would this be a good place to ask code questions

wanton delta
#

yes

ruby plover
#

I allowed it through the firewall a while ago

wanton delta
#

wanna check again

#

you mayve allowed it through private networks

#

but i believe you want to allow public

mental coral
#

Depends what the network is connected as.

ocean anvil
#

Have you port forwarded? Not sure if this would make any difference but someone else could try connecting to it

leaden heath
#

k one sec i'm gonna run like 2 tests

wanton delta
#

true, mine is public, not sure why

#

port forward doesnt matter on localhost

mental coral
#

He's trying to connect to LAN, port forward shouldn't make a difference.

ruby plover
#

i've port forwarded it

ocean anvil
#

I know but I was saying if we could get someone online to connect we would know if it's a server or an issue with the client or smth

#

dumb suggestion but all I had to contribute lmao sorry

wanton delta
#

dont feel bad lol

#

youre debugging! feel proud!

mental coral
#

We're all kinda just grasping at straws at this point.

wanton delta
#

you need to rule out dumb ideas before you get to the good ones lol

fleet crane
#

fwiw leave server-ip in server.properties blank unless you know what youre doing

wanton delta
#

yea lmao

ocean anvil
#

I can't even debug my own code rn

fleet crane
#

I don't think its causing your issues in this case, but something to keep in mind

mental coral
#

@ruby plover

fwiw leave server-ip in server.properties blank unless you know what youre doing

#

I should've noticed that tbh.

#

I literally looked at the bind ip

ruby plover
#

ok i'll keep it blank

wanton delta
#

entity.setFireTicks(ticks); for (Player onlinePlayer : Bukkit.getOnlinePlayers()) { System.out.print(onlinePlayer.getFireTicks()); }

distant schooner
#

Should I put the schematic file in the worldedit folder?

leaden heath
#

ok first before i ask code questions, if i'm deleting my world folder when my plugin disables, should i unload chunks before or after

wanton delta
#

produces

-20
160``` just as i thought
#

-20 for first player

#

160 for second

#

this is

#

infuriating

#

i dont know what would be causing this lmaoaooo

mental coral
#

I'm... not entirely sure.
I'm like 100 bajillon percent sure you checked this, but they aren't in creative or smth right?

#

combust event cant cancel setfireticks, tried that a moment ago

wanton delta
#

nope lol

mental coral
#

You only have your plugin present, right?

wanton delta
#

my plugin, protocollib

ruby plover
#

i'm not sure if this is bad but on the console it says "Can't keep up!"

wanton delta
#

it means its skipping ticks because it doesnt have enough resources

#

not related to your problem

ruby plover
#

ok just checking

wanton delta
#

its bad in a sense where you wouldnt want to see that on a production environment

mental coral
#

Make sure you set the server-ip blank and restart. If autodetects that information and could cause issues if you set it wrong.

wanton delta
#

means lag, basically

ruby plover
#

ok

frigid ember
#

can i ask about plugins help in this channel?

distant schooner
#

help me T3T Should I put the schematic file in the worldedit folder?

leaden heath
#

alright i can't get any improvements, gonna need some help. I'm deleting my world folder in onDisable(), it works fine. the folder gets deleted. The log gets filled with chunk saving errors which I want to have not happen. Any way to avoid these or can I just move on, considering that my end goal of deleting the world folder happens and starting the server again works fine.

mental coral
#

The chunk saving happens last. Are you running this server yourself or with a paid host (Multicraft, etc.)?

wanton delta
#

@leaden heath its because the server is trying to save the world after its disabling your plugin

leaden heath
#

testing on a local server rn, but hoping to move to mcprohosting when i get it working

wanton delta
#

im not sure how you bypass that

#

oh

#

he just said that

#

my bad

mental coral
#

@leaden heath plugins cannot make the final modification to a world. I'm not entirely sure you can disable the final save.

#

If you run it on a linux server, you can have the restart script automatically remove it

distant schooner
#

Should I put the schematic file in the worldedit folder? please help me ...

wanton delta
#

if your final goal is to prevent block changes

mental coral
#

@wanton delta could you send me the jar without anything you dont want shared so I can try it on my end? I'm literally clueless as to why it wouldn't burn people.

leaden heath
#

yeah, i dont use linux but I would just delete the folder in my bat file when starting the server, which would work for me too. then I wouldn't have errors. but idk how to have a custom bat file on mcprohosting

wanton delta
#

i would recommend World#setAutoSave

mental coral
#

Does that disable the final save on /stop tho?

#

Never really had a reason to do that.

wanton delta
#

honestly im not sure

leaden heath
#

All i'm looking for is having a new world

mental coral
#

Uhm

leaden heath
#

So if the world is deleted by the time i start again, that's all i want

mental coral
#

perhaps on startup?

leaden heath
#

oh yeah

#

hmm

#

good point

mental coral
#

load: "STARTUP"

wanton delta
#

wait

mental coral
#

instead of postworld

wanton delta
#

dont use setAutoSave

#

try to use

#

Bukkit#unloadWorld(world) then delete afterwards

#

that would be my recommendation

mental coral
#

^ either that or before world loads

leaden heath
#

i do that stuff

#

so would i call this in onLoad()?

wanton delta
#

unloadWorld i believe would save it, prevent it from being resaved after disable

distant schooner
#

Should I put the schematic file in the worldedit folder? I have a schematic file, so I have to load the map, but I don't know how to load it.

mental coral
#

worldedit/schematics

wanton delta
#

i found this thread

#

maybe you could do what hes doing

#

after you unload the world, delete it and replace it with a zip

distant schooner
#

What if there is no schematics folder in the worldedit folder?

mental coral
#

create it?

wanton delta
#

good luck deciphering it

#

i dont think it will help

distant schooner
#

just create schematics folder ?

mental coral
#

xD I was gonna run it on my server was all. Didnt really need to read. What folder would I be lookin in?

distant schooner
#

I don't have the schematics folder

wanton delta
#

core -> condition -> conditionManager:208

#

you dont need to check the logic because the code reaches taht point

#

ive tested numerous times

#

thats why im saying i dont think it will help

#

im not sending a jar because that has sql info and redis info :p

mental coral
#

ahh, k

wanton delta
#

hmm

#

i think i can set a new breakpoint

#

because default fire tick is -20

#

so maybe test for -20 instead of 0

#

that didnt get anything

#

there must be a method that is resetting the player somehow

#

thats being activated

#

and i wouldnt know what taht is

grim sapphire
#

Hey guys quick math question:

If I have for example a vending machine that gives out candy but has a probability of given out candy A for a maximum of 25% and candy B for a maximum of 25%, then it randomly chooses one of those candies to give (obviously 50%), how would I figure the actual probability of getting candy A?

#

It sounds dumb because between candy A and candy B it should only be 50%, but using a range of probability it would be modifying the chance (aka java's Random class)

dusty topaz
#

A / (A+B) ?

#

is probability of A out of A & B?

#

unless I misunderstand what you mean

wanton delta
#

i think they mean setting a weight and using a pool of various weights for a table of some sort

#

like they have object A and B which both have weights of 37 for example, and wants to find out the probability of either

#

in which case your equation would be correct

grim sapphire
#

I think you are right

dusty topaz
#

thats a first lol 😅

grim sapphire
#

So if I have Candy A, B, C and they all have 10% chance, and want to find the chance of Candy B, it would be B/(a+b+c)?

dusty topaz
#

yeah

grim sapphire
#

okay

dusty topaz
#

B/A+B+C would be 10/30 = 1/3rd which is correct

wanton delta
#

just discovered java doesnt have a sigma function 🙁

#

or a sum(Number[]) function

grim sapphire
#

so quick question.

a: 5
b: 15
c: 25
d: 34
e: 1

sum of a-e = 80. 34/80 = 0.425*100 = 42.5%?
#

Right?

wanton delta
#

yes

#

probability

#

sum of favorable outcomes/sum of all outcomes

hoary tusk
#

Hello! Is there a way to get spigot timings in json?

wanton delta
#

Aikar Timings isnt part of spigot so it wouldnt be via the spigot api

#

although there is probably a way to get it

#

@hoary tusk /timings report pastes a document in timings/timings.txt

#

you could read that file and try to parse to json

hoary tusk
#

@wanton delta Is there a way to get it through Aikar's website

#

Basically, for the system I want to make, I won't have access to files, just the timing URL

#

It'd be nice if I could contact Aikar but their DMs are locked

#

^ Nevermind, I just went through the source code and found it, thank you!

wanton delta
#

interesting, i never heard of timings having a json component

dense pike
#

Error:(7,46) java: package org.bukkit.craftbukkit.v1_15_R1.entity does not exist
Obviously this is a dependency issue; so the Bukkit API clearly needs adding to Maven's pom.xml. But upon adding it, Maven doesn't seem to recognise the bukkit dependency now. Won't accept it or anything.

proper bison
#

yeah u always need the bukkit dependency bud

dense pike
#

I'm trying to add it in

#

It's not recognising it. Could you link me to a source with the relevent info with adding bukkit as a dependency in 1.15.2

#
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
</dependency>```
drowsy hinge
#

You need to run BuildTools locally and then use <dependency> <groupId>org.bukkit</groupId> <artifactId>craftbukkit</artifactId> <version>1.15.2-R0.1-SNAPSHOT</version> </dependency>

dense pike
#

I did run BuildTools locally. I'm using it as the dependency jar

drowsy hinge
#

Okay cool - then in your pom.xml add the above dependency block. CraftBukkit and Bukkit are separate - Bukkit is the API but I think you are using CraftBukkit implementation imports, which requires the CraftBukkit dependency in addition to the Bukkit dependency

dense pike
#

I've added it to the pom.xml but it still highlights as red.

#

My brain hurts.

warm carbon
#

i'm not sure if you already did it, but I'm pretty sure you need to re-import everything if you don't have auto-import enabled, but I could be mistaken

dense pike
#

Heres a noob question: How would I re-import?

warm carbon
#

you'll find that maven tab on the right

dense pike
#

Yup I pressed that

#

Its still highlighted as red

#

Dependency 'org.bukkit:craftbukkit:1.15.2-R0.1-SNAPSHOT' not found

#

Says its not found.

#

when hovering over highlight

drowsy hinge
#

can you try org.spigotmc:spigot instead? maybe buildtools doesnt install craftbukkit in the local repo - i just looked at mine and it isn't installed

ocean anvil
#

Is it possible to see how many items were crafted on CraftItemEvent (if the player used shift to craft all possible for example)? If multiple are crafted, only the first one seems to be accessible

dense pike
#

In the code?

drowsy hinge
#

no, leave code as is. in your pom.xml do

<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
</dependency>``` instead of the craftbukkit one
dense pike
#

Okay, that isn't highlighted.

#

Do I take off bukkit as well?

drowsy hinge
#

I think you can and everything should work fine since spigot depends on the bukkit api. so yeah feel free to go ahead

dense pike
#

On compiling, the process terminates. 🤦‍♂️

drowsy hinge
#

oof, well the no red highlighting is a start at least. can you try running the command "mvn clean package" in your project directory? this should create a jar in the target directory

dense pike
#

I think Maven does not like me

drowsy hinge
#

in intellij you can also on the right side click "maven" -> "lifecycle" -> "package" I think and it will do the same

dense pike
#

That's exactly the process I'm using. It's terminating.

#

Maven -> Lifecycle -> package

drowsy hinge
#

ah ok - any specific error? :/

dense pike
#

It complies then it says Process terminated.

#

Theres some lines but its way too quick for my eyes to register

#

then the screen clears with "Process terminated

#

All it shows; unforunately.

#

Helpful, right?

drowsy hinge
#

haha - can you click on the "! BoatPing [package]" above the "! Process terminated" and see if it shows anything more?

dense pike
#

Yup ahead of you

#

Just noticed that

#

Its says that the bukkit repository is missing.

#

[ERROR] Invalid artifact repository: URL missing for repository bukkit -> [Help 2]

#

I thought I didn't need it?

#
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'repositories.repository[bukkit].url' is missing. @ line 64, column 21
[ERROR] Invalid artifact repository: URL missing for repository bukkit @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.jacobtyrrell:BoatPing:1.0-SNAPSHOT (C:\Users\me\IdeaProjects\BoatPing\pom.xml) has 2 errors
[ERROR]     'repositories.repository[bukkit].url' is missing. @ line 64, column 21
[ERROR]     Invalid artifact repository: URL missing for repository bukkit -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/InvalidRepositoryException
``` full
drowsy hinge
#

Oh - sorry - you do still need the <repository> block. You can remove the <dependency> block for bukkit

dense pike
#

Can you provide the repository block please?

drowsy hinge
#
    <repository>
        <id>spigot-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
    </repository>
</repositories>``` is the spigot wiki recommended repository
dense pike
#

That's on there?

drowsy hinge
dense pike
#

Haha no worries.

drowsy hinge
#

go ahead and remove the bukkit repository block, yup

dense pike
#

My brain isnt working correctly

drowsy hinge
#

all good man, that was me last night 😂

dense pike
#

It's 3am

#

Hallelujah! It's compiling!

warm carbon
#

hey, I'd like to throw in a question as well. I wanted to give guice a try as I saw the following tutorial on spigot, but I ran into some problems https://www.spigotmc.org/threads/tutorial-spigot-plugins-dependency-injection.295218/

it first started with the java.lang.NoClassDefFoundError error, that I could fix with building the project through executing "clean package" with the maven command line.
but then I get the following error:
https://pastebin.com/dp7Vx2uC

there are the following classes:
https://pastebin.com/EQJFmyB0 (main)
https://pastebin.com/QSfQSTn1 (listener)
https://pastebin.com/TDSg4syy (command)

i guess there is something i miss while getting to use guice.
It basically has a problem with Guice using the .createInjector method, but I dont get why since its like its said on the tutorial.

dense pike
#

Cheers @drowsy hinge

#

Hi! Back again: New problem! (you probs hate me now)
http://prntscr.com/ryszve

So I'm having a unexpected response. I'm trying to return the ping of a player. It's showing that it's 1380ms which is incorrect since, this plugin is on a localhost server so therefore should be 0?

Code function:

private int getPing(Player p) {
        return ((CraftPlayer) p).getHandle().ping;
    }

I guess developers would call this a illogical error?

#

Okay... I jsut ran the command again

#

and It's 1ms

#

Weird.

#

Anyway I guess problem solved?

ocean anvil
#

dumbass question, I know, but what's the technical name for the title text above the hotbar? I found some old code referencing it as the action bar but I can't find that in the docs

dense pike
#

The green one?

quick arch
#

the one literally right above it, or 20+ pixels above it?

dense pike
#

Do you mean item names?

quick arch
#

^

#

action bars are way above in 1.15

ocean anvil
#

You can edit it with /title <player> actionbar ...

quick arch
#

that's not in the docs iirc

#

Don't know why Spigot doesn't have it

ocean anvil
#

Would I have to manually run the /title command as the player or something?

#

That seems like such an obvious function to have

dense pike
#

You could probably run it as console

ocean anvil
#

Oh true yeah you can

#

Still, running a command?

quick arch
#

I have my action bar done with ProtocolLib

dense pike
#

Could use dependencies?

quick arch
#

that's for titles, yeah?

golden vault
#

is it not that ^

quick arch
#

he want action bars

#

Player#sendActionbar isn't available on Spigot

ocean anvil
#

I tried using setTitle but that's for big main titles that take up your entire screen

golden vault
#

what is the subtitle part?

dense pike
#

Title part but smaller

quick arch
#

@final verge possibly a new PR for you because Player#sendActionbar isn't available on Spigot 👀
Nevermind about that, it's already in Spigot 🤔

ocean anvil
#

Title, sub and actionbar ^

golden vault
#

ah i wasnt sure

ocean anvil
#

All good, I thought subtitle would be it at first but unfortunately not

dense pike
#

I probably would find the actionbar useful

quick arch
#

it is pretty useful

dense pike
#

Yeah, would be pretty cool to have a native implementation

fleet crane
#

it is in spigot

ocean anvil
#

There is a native implementation, found it :D

fleet crane
#

just not that method

ocean anvil
#

oh

#

Player.spigot().sendMessage(ChatMessageType.ACTION_BAR, "text here")

fleet crane
#

yes

dense pike
#

Ooh

ocean anvil
dense pike
#

Im curious how is it a chat message type? Can you explain the intention behind it please? 🙂

fleet crane
#

because thats what it is?

quick arch
#

🤔

fleet crane
#

why have sendChatMessage, sendSystemMessage, sendActionBarMessage

#

when you can just have sendMessage(ChatMessageType

dense pike
#

Sorry.

golden vault
#

ahhh I knew I saw something one time

median wing
#

What are Nether quartz called in Spigot API, for some reason only Material.NETHER_QUARTZ_ORE appears, but I just want the nether quartz.

golden vault
#

Just Material.QUARTZ i think

median wing
#

Ah okay, thank you

golden vault
#

mhm

gloomy flower
#

Kind of off topic to this discord, but uh

#

For a bungee cord server, should using the luck perms bungee cord plugin be good, or is the bungee perms plugin good enough

#

The only permissions I plan on making globally are like, staff permissions

#

So then maybe luck perms bungee cord plugin is okay then? idk

golden vault
#

Really just personal preference I like Luckperms for bungee and spigot

#

others may not

dense pike
#

^^ I use Luckperms for both

gloomy flower
#

Alrighty then, thank you, I think I'll stick with that

#

I've been using luck perms for my server

dense pike
#

I usually connect them with a MySQL database

gloomy flower
#

and now that I've upgraded to bungee cord network

#

ah kk

golden vault
#

ya no sense in learning a different plugin

#

(style)

quaint berry
#

@gloomy flower The main reason we dont use LuckPerms on bungee is that there are way less permissions we use specific to bungee and those permissions are modified way less often. We use the default group in the cofig for most people and you can setup custom groups within the config. We also run bungee on a very minimalistic server so we try to trim the overhead when it is easy to do so. You dont actually need an extra plugin if you only have a handful of permissions, as it can have all within the main config... However it is more of a pain to edit that way than using LuckPerms, so if you plan on editing even semi-often you will want LuckPerms... It is really up to your tastes... LuckPerms is by far the best permission manager though so if you are going to use a plugin always go that route

gloomy flower
#

Ah I see I see

#

Thank you for that response, really opens my eyes

#

Like I said, I'm new to the bungee cord scene

#

But I'm not new to Luck Perms

#

So I guess having luck perms is just my overall best bet to setting it all up

#

I have the network set up at this point, I'm just really trying to pinpoint all the necessary plugins I need for my hub server, my bungee cord proxy, my main server, and a test server. Quite a handful tbh xD

proper bison
#

hey i run a 1.15.2 server what do i need too make it so all previous version can join ??

subtle blade
#

Preferably you don't do that because you're depriving players of features

wanton delta
#

well its impossible to make all previous versions join

drowsy hinge
#

I can't help you with it but I know some people use some combination of ViaVersion, ViaBackwards, and ViaRewind to accomplish that

wanton delta
#

but look up ViaVersion

#

But its really not a good idea in general....

subtle blade
#

Just know that we do not support protocol hacks. You're practically on your own

wanton delta
#

^

#

Is there such thing as stopping a player from being set on fire other than setFireTick and EntityCombustionbyEntityEvent

subtle blade
#

What other way are you looking for?

wanton delta
#

its not that im looking for another way to do it

#

its that my player is being prevented from combusting.... and ive put breakpoints at setFireTick (in the spigot class) and it only fires when i fire it

#

but somehow players still arent getting set on fire, when my plugin is the only one... idk if theres something else i should be looking for

subtle blade
#

Yea because you're the only one calling that method

wanton delta
#

(i believe the breakpoint is detecting all calls not just from me)

#

(i set the breakpoint in the spigot code not my own, if that makes sense)

#

(but idk)

subtle blade
#

Right but you're calling the API method. NMS doesn't call API methods

#

Only Bukkit plugins do

wanton delta
#

does putting it at craftplayer make a difference

subtle blade
#

No. CraftBukkit is implementation. NMS makes no reference to it either

wanton delta
#

craftentity

#

ah ok

#

so is there a place i could put a breakpoint to detect changes that would affect combustion

#

im not really asking for a solution to code... just another way of debugging because i feel like ive thought of almost everything at this point

subtle blade
#

Field access on the entity's fire ticks

#

(in NMS, obviously)

red stone
#

I need help, please, how do I upload a file so I can download it in other files and then transfer it to another folder? it is that in athernos it does not allow to upload files, and I need if or if to upload a .nbs file I am using google translator I do not know much English I am from Uruguay

subtle blade
#

Though really, if the issue isn't occurring while your plugin is not enabled, you're probably doing something silly in your plugin

wanton delta
#

i know... im just tryign to find out where its coming from

#

i want to use the debugger to track it

subtle blade
#

If Aternos does not allow for file transfers, it does not allow for file transfers. You cannot upload a file

red stone
#

but there has to be some way, please; (

#

😭

wanton delta
#

Ah so you mean itd be ok to put it at net.minecraft.v1_15_R1.Entity.fireTicks?

subtle blade
#

There is not. You're using a free host. These are some of its limitations

#

Yes, Martoph

wanton delta
#

great thanks for that info

red stone
#

well, thank you very much, I suppose I will cry, 😭

wanton delta
#

i thought i was familiar with java but i need to learn more about how it works 😅

subtle blade
#

Always more to learn

#

Only challenge is being open to learning

wanton delta
#

yea :p

#

i wanna know more about implementations and how the jvm works.... but seems very complicated

#

i think the best thing to do is just practice more

sturdy inlet
#

could i get some help with my server

subtle blade
#

If you ask a question, certainly

#

Oh wait, we have CafeBabe!

#

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

sturdy inlet
#

i have been able to run my server for ages now it wont work

#

it says C:\Users\dimit\Desktop\MiniCraft>java -Xm1024M -Xms1024M -jar spigot.jar nogui
Unrecognized option: -Xm1024M
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

C:\Users\dimit\Desktop\MiniCraft>pause
Press any key to continue . . .

#

please help idk what to do

wanton delta
#

use

subtle blade
#

Unrecognized option: -Xm1024M

#

;P

keen compass
#

missing an X @sturdy inlet

wanton delta
#

-Xmx1024M instead of -Xm1024M :p

keen compass
#

should be Xmx not Xm

sturdy inlet
#

oh

#

AHAHA im dumb

#

tit may not work though lemme try

subtle blade
#

Also some very strange values. mx and ms should not be equivalent

wanton delta
#

really... i always see them equal.

subtle blade
sturdy inlet
#

i cant give it more then 1gb lol

wanton delta
#

wow you had that ready lol