#help-development

1 messages Β· Page 1901 of 1

dense geyser
#

wdym what are you tryna do

solid cargo
dense geyser
#

And you're using the scheduler to detect when the phase changes?

solid cargo
#

thats the only way i can think of rn

#

yes

dense geyser
#

as in detect when its health hits a certain amount then the scheduler changes its phase or

solid cargo
dense geyser
#

try executing a phasechange method outside of the scheduler and cancelling it

#

you can't really return on the scheduler cause its in a different thread

solid cargo
#

i see, i see

hybrid ledge
#

Is there a way to check whether server has completed startup phase and all plugins are loaded?
I can schedule some task using scheduler, that task would execute after startup phase, but this is rather dirty workaround.

dense geyser
#

there's no event for it sadly, if you run a scheduler task on the next tick, it waits for the server to be loaded anyway

timid vale
#

Would this be good for learning to code plugins?

hybrid spoke
#

dont pay for that

#

its not worth it

#

also plugins are not everything. invest into a java course, buy books, there are also many good free courses even on youtube. you have to learn java before spigot.

timid vale
#

Could you maybe send some good free courses or youtube videoes?

dense geyser
#

I mean if its spigot you really wanna learn, then if you youtube search thesourcecode, they've got some good bukkit material

#

this is a stupid question that I can't find the answer to online, are GoogleAuthenticator scratch codes the emergency codes a service gives you if you lose your 2fa key

timid vale
#

I don't intend on using Java to anything else than Minecraft plugins

undone axleBOT
pine island
#
import me.lumina.luminassw.ItemBuilder;
import me.lumina.luminassw.comands.kit;
import org.bukkit.GameMode;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.plugin.java.JavaPlugin;

public class LuminasSw extends JavaPlugin implements Listener {




    @Override
    public void onEnable() {
        // Plugin startup logic

        getServer().getPluginManager().registerEvents(this, this);
        getCommand("kit").setExecutor(new kit());
        getLogger().info("Luminas sw was  Started successfully.... ");




    }

```it says there ais a ( missing but isnt can someone please check it?
pine island
hardy swan
#

i think the official oracle tutorials are the best

#

although it doesn't come with exercises or checkpoints

#

it has the best and most in-depth explanation for the language

pine island
#

^^

pine island
hardy swan
pine island
#

Yeah!

#

its a old project to lazy to rename!

spiral light
pine island
spiral light
#

then you should learn java and how the syntax works if you again missed a ( or ) or { or }

dense geyser
#

sensible formatting 😎

lunar forge
#

You can try.

tribal holly
#

Try what ?

lunar forge
#

You can try #getServers().isOnline or something like that

tribal holly
#

You know that i'm speaking about a plugin of a server not for a bungee plugin

spiral light
#

send a msg to all servers you want to know if they are online .... but when there is no player you wont recive anything too

tribal holly
#

That's the problem

#

but btw i found a solution for this (i implement a timeout)

blazing rune
#

Yo

#

Anyone on?

ivory sleet
#

?ask

undone axleBOT
#

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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

blazing rune
#

Eh ok

#

Is there a way to like assign Perms to players

ivory sleet
#

Through code?

blazing rune
ivory sleet
#

I mean you can use the api

#

Or rely on sth like LuckPerms

#

Which is what I’d suggest

blazing rune
#

Ok..

blazing rune
ivory sleet
#

Yeah

#

I’d very much advocate LuckPerms here

#

It’s fairly sophisticated

blazing rune
#

Well ok

ivory sleet
#

And feature rich as well as actively maintained x)

pine island
#
player.addPotionEffect(PotionEffectType.SATURATION.createEffect(9999999, 255));
``` adding potion effects but i dont get the effect in game
#

any help?

spiral light
#

numbers to large maybe

#

any errors in log ?

pine island
#

alr

#

ill try that

#

whats the planks name in spigot

#

using Material.

spiral light
#

version ?

#

normally planks iirc

pine island
#

1.8

spiral light
#

yeah update your version lol

pine island
#

DUDE

#

HATE

quaint mantle
#

we hate 1.8 as well

pine island
#

dude im making a sw plugin 1.17 pvp is not my thing

spiral light
#

there is already version 1.18 ^^

#

and with all the api stuff you can easy recreate the old pvp behaviour ^^

tall dragon
#

not gonna lie, the recreation doesnt feel the same as actual 1.8 pvp

#

i still agree though

spiral light
pine island
#

;-;

quaint mantle
#

Just learn modern pvp smh

tall dragon
#

its understandable for skywars tho

#

would modern pvp work on skywars?

#

im not sure

tacit drift
#

1.8 pvp is more satisfying

tacit drift
#

it's hella boring

spiral light
quaint mantle
#

Its not lol

tall dragon
#

true, but people like 1.8 for the combo's and stuff

#

something you cannot do in modern

quaint mantle
#

Cubecraft skyways is a fucking hardcore

worn tundra
#

Boohoo

tacit drift
#

hypixel skywars is hardcore

spiral light
tacit drift
#

fast pace and all

tall dragon
#

but i think we should not talk about this in development

quaint mantle
worn tundra
#

The world really seeks for another "unique" skyass server

tall dragon
#

xD

pine island
#

hypixel sw is lag and hackers smh

worn tundra
#

Everyone is waiting for another skywars, kitpvp, factions and prison server

quaint mantle
worn tundra
#

For real its so tiring that people keep holding onto those gamemodes

quaint mantle
#

and, to say, 1.9 xombos are MUCH harder

worn tundra
#

Guys you're literally freaking developers, you can create ANY unique new gamemode easily

pine island
#

yeah lets not fight

quaint mantle
#

1.8 is still unsupported ;)

pine island
#

over 1.8 or 1.17 its mostly whatever u prefer

#

1.18*

young knoll
#

1.17 definitely runs better

quaint mantle
young knoll
#

But 1.18 is such an upgrade to worldgen

quaint mantle
#

You should know thousands of top players can do 1 click combo when they combolock the opponent

#

So, in theory if they can combo lock in modern version

#

Combo still possible

chrome beacon
#

Combos work just fine in both versions

#

I have waay too many hours on Cubecraft and I'm well aware of how effective they still are

ancient plank
#

I hate 1.9 pvp against my friends, they're too godly and I get stuck in their combos πŸ˜”

#

Fkin pvp goons

quaint mantle
#

i played team skywars alot aswell

young knoll
#

I used to play a lot of 1.9 egg wars

#

Good times

chrome beacon
#

^

quaint mantle
#

Unless you run back

#

Move as inconvenient for your enemy as possible

chrome beacon
#

(Or they mess up)

quaint mantle
#

Which will gonna trigger most players

#

But wait

#

Why did i discuss this in dev channel lol

young knoll
#

I used to play bedwars a bunch too but everyone got so competitive

#

I miss the casual sometimes

quaint mantle
young knoll
#

Mhm

quaint mantle
#

Actually i still havent try out 1.9 ngl πŸ˜‚

#

A lil lag for me

hollow sand
#

.sk files are skript files, correct?

quaint mantle
#

Well, im one myself, but not in this game

#

In another game, that is more competitive than Mc

#

duel me in quake 3

#

I play .io games bro they are even more competitive

lucid bane
#

hi,
I have to know the way to apply GENERIC_MOVEMENT_SPEED to a Villager i made, but i cant find how to, help? (SOLVED)

hollow sand
#

How would I convert a .sk skript to an actual plugin?

#

tried googling with no results

#

any help would be appreciated

eternal oxide
#

learn java then write the plugin

hollow sand
#

I do know java

#

but I want to convert it

eternal oxide
#

There is no "convert"

hollow sand
#

so basically I have to reqrite it?

quaint mantle
#

Yes

lucid bane
#

actually

hollow sand
#

I see

lean gull
#

how would one make a timer on a bossbar? all i want is just a timer that is the player's time played statistic in HOUR:MINUTE:SECOND format that is displayed on the players bossbar with a resource pack font

spiral light
#

do you know how to convert between seconds -> minute -> hour ?

lean gull
#

nope idk mathz

spiral light
#

?gotoschool

lean gull
#

i wouldn't say that

#

i have some private issues regarding that

candid galleon
#

how many seconds are in a minute

lean gull
#

60

candid galleon
#

and how many minutes are in an hour

#

great so you know

lean gull
#

60

#

ye but idk the very simple equation for it

candid galleon
#

.-.

lean gull
#

oh wait you just divide it by 60

candid galleon
#

yep

lean gull
#

ok

#

so now what do i do

#

first, what method should i use

#

unix timestamp from when they join until they leave? playtime statistic?

#

i wanna have it per player aswell

spiral light
#

what time do you want to display ?

lean gull
#

the playtime

#

HOUR:MINUTE:SECOND

#

basically i just wanna make the same system as the 100 hours in hardcore

#

for my smp

#

and yes i will be using a resource pack

spiral light
#

what has this to do with a resource pack ?

lean gull
#

to offset it to the right bottom corner

spiral light
#

ok thats absolutly not interesting for creating the bossbar

lean gull
#

ok

tall nova
#

Hours = seconds * 3600

spiral light
lean gull
#

so where do i start?

spiral light
#

this would mean that hours are more then seconds

fallen grove
#

Hello, I am trying to stop villager renaming with name tags
the interact event is cancelled as it should but the entity still gets renamed
any pointers?
https://nekobin.com/tofixivera

spiral light
lean gull
#

yeah ik, i just don't know how to do that

tall dragon
tall nova
spiral light
tall nova
#

A minute is 60 seconds and hour is 60 minutes

#

60 * 60 = 3600

spiral light
#

yes.

spiral light
lean gull
#

ok so first, i'll need to run this function to update the bossbar for each player every second - how do i do that?

eternal oxide
#

hours = time / 3600
Minutes = time % 3600

spiral light
#

seconds = hours * 3600

lean gull
#

and also it needs to be in sync with the playtime update

tall nova
fallen grove
tall nova
#

Had a little brain fart

spiral light
hybrid ledge
#

Can I get Material names translated to specific language as seen in the client, but on the server?

lean gull
#

probs somethin with raw name

fallen grove
spiral light
lean gull
#

is there an event for playtime update?

spiral light
#

statistics event ^^

#

i would rather catch every 10s if the player is there and add 10s to his count ^^

lean gull
#

i want it to be like a real timer tho

#

that updates every second

spiral light
#

you can catch the player every second too... but statisticsevent spams a lot

lean gull
#

but then it wont be synced

tall dragon
#

why not create a runnable that updates it every second...

lean gull
#

so it might update only every 2 seconds

tall dragon
#

you really dont need the event

#

just update it for all players every second

lean gull
#

i wanna use the player time played statstic tho, and that requires to be in sync with it

tall dragon
#

huh??

#

you can just get the playtime from the players statistics

spiral light
#

the playertime statistics will not update every second πŸ™‚

lean gull
#

oh

#

so what system do i need to make in order to make it look like a real timer that goes up every second

spiral light
#

runnable ?

lean gull
#

whats that

spiral light
#

schedular ?

#

bukkittask ?

lean gull
#

loop?

spiral light
#

hell no

lean gull
#

like a thing that loops every second

hasty prawn
#

?scheduling

undone axleBOT
lean gull
#

thats what im used to, from skript

tall dragon
#

im pretty sure player playtime stats is updated every tick

lean gull
#

no i don't mean i'll use a loop

#

i mean like is it like a loop that runs every second

#

?

tall dragon
lean gull
#

ok, where do i store the variable

hasty prawn
#

Why would you

spiral light
tall dragon
#

nah its defo not updated on join and leave

hasty prawn
#

Iirc I've never been able to pull live updates from statistics

tall dragon
#

ive used it before and it updated fine

hasty prawn
#

It like only updates every few minutes or something

lean gull
#

its fine i can make my own system, i just need directions

hasty prawn
ancient plank
#

smile

hasty prawn
tall dragon
#

this is being pulled from stats

hasty prawn
#

Well then why did mine not work angy

lean gull
#

oh great, that means i don't have to make my own system

tall dragon
#

no idea

lean gull
#

how do i sync it tho

tall dragon
#

what do you need to sync

#

it is synced

lean gull
#

i need to sync the bossbar update with the playtime update

#

so when the playtime goes up one, so does the bossbar

tall dragon
#

you just need to create a loop that updates the bossbar every second in your case

lean gull
#

yeah but then its not synced and unless it starts on the same tick as the playtime, it will not work correctly

tall dragon
lean gull
#

alr

spiral light
lean gull
#

it'll look very unsatisfying or fustrating if it only updates every couple seconds

tall dragon
#

and i have no idea why its c alled PLAY_ONE_MINUTE by the way, it returns it in ticks

ancient plank
#

the naming of the statistic always makes me happy

tall dragon
#

yea

lean gull
#

so what do i do to make it synced?

hasty prawn
tall dragon
royal vale
#
ItemStack[] newItems = new ItemStack[kit.getItems().length];

        int count = 0;
        for (ItemStack item : kit.getItems()) {
            if (item != null) {
                if (item.getItemMeta() != null) {
                    ItemMeta meta = item.getItemMeta();
                    meta.removeAttributeModifier(Attribute.GENERIC_KNOCKBACK_RESISTANCE);
                    item.setItemMeta(meta);
                }
            }
            newItems[count] = item;
            count++;
        }

        player.getInventory().setContents(newItems);

Not removing kb resistance from items. No errors.

hasty prawn
#

You don't have to spam it

ancient plank
hasty prawn
#

I don't really see any issues with that

#

It should be working I would think?

pine island
#

will this give me player's death location?

fluid portal
#

In InventoryAction, are all variants of DROP when the inventory holder drops the item out of the inventory?

brave sparrow
tall dragon
tall dragon
#

hence not alive

pine island
#

hmm

tall dragon
#

so i dont think u can put them in spectator

#

but the location should work

pine island
#

any idea as to what i do?

tall dragon
#

use damage event

#

calculate wether they die

pine island
#

what if pull the location before putting them in spec?

tall dragon
#

no, the location will work

#

just spectator wont

pine island
#

hmm

tall dragon
#

respawn will not give him his death location i think

pine island
#

i have never used damage event any idea

tall dragon
#

right

#

maybe, but that will require the player to click respawn

pine island
#

i wanna tp them totheir death location and summon a lightning bolt at it making a sw plugin(1.8 pls dont shout at me for using 1.8)

tall dragon
#

if you use respawn you will have 2 bassically unused teleports

#

while if you don't show the death screen, you can instantly put them in spectator

#

idk use whichever you want

pine island
#

i kinda dont wanna show deathscreen too

#

ill look into both thanks for giving me the idea!

tall dragon
#

for additional information, im pretty sure there is 2 ways to avoid a death screen, either with packets or a damage event

quaint mantle
#

gamerule doImmediateRespawn true

tall dragon
#

1.8

#

does that exist there?

spiral light
#

i hate respawn ... i would always put the players into spectator mode or smth and then handling their respawn

quaint mantle
tall dragon
#

yikes :D

spiral light
#

πŸ˜„

#

iirc 1.8 has player.spigot().respawn() or smth but this sucks to use this

lean gull
#

heyo, i'm back and i still have the same question - i wanna make a playtime timer that goes up every second, that is also displayed in each player's bossbar with their own playtime and using their time played statistic

quaint mantle
#

repeating task

dusk flicker
#

Would recommend not doing it every second, maybe every 5 or 10

#

Dont want to lag out the server

lean gull
#

i don't think i can do it with the bukkit schedular since it won't be synced with the statistc of each player

wary harness
#

Can one tell me how would I get spigot remapings

#

not mojang ones

wary harness
#

I got it working with mojang

lean gull
#

well i was gonna but then you said that it will do that anyway

quaint mantle
spiral light
#

well then go and try it before thinking it wont work

wary harness
wary harness
#

like old 1.16

lean gull
#

i am quite sure it wont work cause well logic

spiral light
quaint mantle
#

i mean, they dont exist on newer versions

tall dragon
spiral light
#

if you use the jars in bundler you have spigot mappings

tall dragon
#

it will work

wary harness
#

until 1.16.5

quaint mantle
lean gull
#

if the schedular runs every second and is not synced with the playtime, it will most likely skip a second and will only update every 2 seconds

lean gull
#

oh wait nvm

#

it will work, just maybe not for the first second

tall dragon
#

yea

#

....

lean gull
#

ok

#

my bad

ornate heart
#

Is there any alternative to the Conversation API? I feel like it's a lot of boilerplate code.

quaint mantle
#

no

#

it is really ancient

tall dragon
#

well i made my own

spiral light
wary harness
#

and what for is spigot-1.17.1-R0.1-SNAPSHOT-remapped-obf

ornate heart
lean gull
#

?schedular

quaint mantle
lean gull
#

how do i do the thing

spiral light
#

?scheduling

undone axleBOT
lean gull
#

thx

spiral light
#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
**__Admin:__**

selfrole Add or remove a selfrole from yourself.

**__Cleanup:__**

cleanup Base command for deleting messages.

**__Core:__**

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

**__Downloader:__**

findcog Find which cog a command comes from.

**__Mod:__**

names Show previous names and nicknames of a member.
userinfo Show information about a member.

**__ModLog:__**

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

**__Permissions:__**

permissions Command permission management tools.

spiral light
#

?list

#

?commands

#

?cmds

tall dragon
#

you would bassically require the entire thing

spiral light
#

sucks

ornate heart
#

Ah I see. I'll pass then.

tall dragon
#

its not hard to make though

quaint mantle
#

another common spigot library

ornate heart
#

Yea, i'll probably just make my own.

tall dragon
#

yea

quaint mantle
#

the only advantage of spigot conversation api was message blocking from other sources

tall dragon
#

which you can do yourself too

#

i have it on my own

quaint mantle
#

doesn't that require packets

lean gull
#

could someone explain this to me please?

spiral light
#

also the title says what it does

snow crow
#

ye

lean gull
#

i don't understand, sorry

quaint mantle
#

get an understanding

lean gull
#

what's that mean

spiral light
#

?learnjava

undone axleBOT
spiral light
#

?englishforbeginners

lean gull
#

not helpful

quaint mantle
#

ok

lean gull
#

if you wanna be toxic, just don't help, thanks

tall dragon
#

we get it, but its really annoying when people come here and dont understand the most basic things about java

lean gull
#

this is how i learn

tall dragon
#

you do you

lean gull
#

not everyone can learn like that

fluid portal
#

Is it better to use one timed scheduled runnable to loop over all players or create a new one for each player?

quaint mantle
#

respect us as well

spiral light
#

Let's say you want to schedule a task to run 30 seconds later which broadcasts a message:


BukkitScheduler scheduler = Bukkit.getScheduler();
scheduler.runTaskLater(plugin, () -> {
  Bukkit.broadcastMessage("Mooooo!");
},20L * 30L);

this code will run after 30s since 20 ticks times 30 is 30s

fluid portal
#

thanks

lean gull
#

oh wait my bad

#

i meant the repeating one

#

not the runtasklater

spiral light
#
scheduler.runTaskTimer(plugin, () -> {
  Bukkit.broadcastMessage("Mooooo!");
},20L * 30L,20L*60L);```

This will run after 30s the first time and then every 60s
lean gull
#

how do i just make it every 10 seconds

#

wait no

#

every 1 second

spiral light
#

maybe swap 60 with 1 ?

lean gull
#

idk how this works

spiral light
#

and 20L*30L to 0 to run it instant

spiral light
lean gull
#

like do you need no space for the repeating and with space for the runtasklater?

#

how does it identify what i mean

snow crow
#

java: setPassenger(org.bukkit.entity.Entity) in org.bukkit.entity.Entity has been deprecated

#

any fix for this

#

it just warning me

tall dragon
#

addPassenger

spiral light
tall dragon
lean gull
#

ok can someone else help

snow crow
tall dragon
#

you still need to use #addPassenger

#

its just the new way to do it

spiral light
# lean gull ok can someone else help

what is the problem ?
there is a clear different ? ... if you want to run it later you just use schedule.runTaskLater

and if you want to run it again and again you use scheduler.runTaskTimer

snow crow
#

also its on 1.17.1

lean gull
#
  1. that's not what i asked
  2. you're bein more mean than helpful
lean gull
#

look i just really don't want to argue right now, i'm only looking for friendly help for this simple timer

spiral light
lean gull
#

i read it and didn't understand, that's why i asked

#

can someone else help? warnning: please only help if you're patient, it takes some time for me to understand things

quaint mantle
#

what part you didnt understand

snow crow
lean gull
#

how it knows which one is the delay on first run and delay between each run

quaint mantle
#

Consider learning java?

#

?lesrnjava

tall dragon
blazing scarab
#

why should we adapt to you?

quaint mantle
#

?learnjava

undone axleBOT
lean gull
#

if you want to really be helpful, you might want to be understanding

quaint mantle
#

?jd

eternal oxide
#

Read the scheduler page over and over until you understand it. Its a very good tutorial and tells you everything you need to know

lean gull
eternal oxide
#

There really is nothing more to explain. It covers everything

lean gull
eternal oxide
#

no

quaint mantle
#

You don’t

#

Put 0

#

If you don’t want it

eternal oxide
#

0 delay means it attempts to run next tick

storm chasm
#

so if i want to transfer people to hypixel for exemple?

lean gull
#

so 0L * 0L, 20L * 1 for every second with no first run delay?

quaint mantle
#

Yup

brave sparrow
#

The target server has to be open to connections from your bungee

lean gull
#

ok, thanks - new question: how do i use this in general? as in just doing this like how you run a method

storm chasm
brave sparrow
#

No

storm chasm
#

then what

lean gull
#

i want it to always run

brave sparrow
#

Hypixel doesn’t expose any of their actual Minecraft servers

spiral light
brave sparrow
#

Only their bungees

astral nova
#

someone know how can i force player to refresh tab?

storm chasm
#

it's just an exemple i wont do that

brave sparrow
#

You can’t

storm chasm
#

but if my server is bungee and the other one is too i can?

#

in this case my friends server

brave sparrow
#

Yes

#

Unless they restrict connections to only their bungee

#

With a firewall

lean gull
#

Playtime Timer in Bossbar

storm chasm
#

cause the problem i had with bungee is that i had to enable ip forwarding to be able to join my server directly and i didn't have the config file

#

i still don't

quaint mantle
#

Lazy to even help someone who don’t want to learn how to read but want to make a book

brave sparrow
storm chasm
#

it says that it's in bungees config file

brave sparrow
#

There might be a config value in the bungee config too, I can’t remember

storm chasm
#

and i didn't find this option in spigot

brave sparrow
#

But you need to turn bungeecord on in the spigot config

#

It’s β€œbungeecord: false” to β€œbungeecord: true”

storm chasm
#

how can i change paper to bungee then?

brave sparrow
#

Paper is a fork of spigot, it also has a spigot config

#

Just like spigot has a bukkit config

storm chasm
#

yes

#

it does

#

lemme check the config file again

lean gull
#

if anyone can join my thread and help me in there, that would be great, thank you!

storm chasm
#

it has bungeecord: only

#

not ip forwarding

brave sparrow
#

Yes

#

That’s the field for it

#

There’s not a separate one for IP forwarding

willow oar
#

Anyone knows why eclipse doesn't let me import JavaPlugin (spigot 1.18)?
I tried switching to intellij and there it works but for some reason intellij doesn't detect errors

storm chasm
#

i found somewhere that my server needs to be in the same network as the other server

brave sparrow
#

Nope

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

quaint mantle
storm chasm
#

so if i change my server to bungee i could be able to enable ip-forwarding right?

brave sparrow
#

I’m fairly confident that ip forwarding is on by default

#

But you should verify

storm chasm
#

i enabled bungee many times and i could join my server from the other server only

#

i'll send you the error

brave sparrow
willow oar
brave sparrow
#

Yeah once bungeecord is on you can’t join the server without bungeecord @storm chasm

storm chasm
#

oka

snow crow
#

[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ EnderRider ---

#

do i need to worry abt this

hardy lynx
#

Hi what do I do about this?

snow crow
#

it shows error

hybrid spoke
waxen plinth
#

Compile for Java 8 or switch your server to Java 16

hardy lynx
#

is there a link to download one?

brave sparrow
hybrid spoke
#

?java16

undone axleBOT
hybrid spoke
#

?java17

undone axleBOT
hardy lynx
#

which is better?

snow crow
#

which version you want it in ?

#

Some Shade Error Thread πŸ™‚ Help

brave sparrow
storm chasm
#

just bungeecord: ?

brave sparrow
#

bungeecord: true

storm chasm
#

but i said i need ip forwarding as well

brave sparrow
#

That’s in the bungeecord config

storm chasm
#

In the BungeeCord config.yml file, ensure that ip_forward: is set to true

storm chasm
#

i don't have it

brave sparrow
#

Have you created a bungee server yet?

storm chasm
#

never

lean gull
#

can anyone join my thread and help me there?

brave sparrow
#

You have to make a bungee server first

storm chasm
#

paper spigot or just vanilla but i have no experience with a real bungee server

quaint mantle
#

Is there a place where the the nms remapped packets are listed compared to their original counterparts?

brave sparrow
#

You need both

#

The bungee runs separately

storm chasm
#

i can't make my server bungee directly?

eternal oxide
brave sparrow
brave sparrow
#

Say you have two Minecraft servers, A and C

#

And you have a bungee B

#

The player connects to B, and then B connects to A or C depending on what the player wants

#

And B can switch between A or C at any time

#

But the player is always connected to B

eternal oxide
#

more accurately...
Player connect to Bungee and is directed to whatever server you define as the lobby.

brave sparrow
storm chasm
#

for me it's a to c or c to a

brave sparrow
#

No

#

Your Minecraft server is A

#

And your friend’s is C

#

The bungee is B

storm chasm
#

sorry

brave sparrow
#

Right

#

No worries

eternal oxide
#

Bungee can;t allow direct connections to a specific server, safely

#

you need to always connect to the lobby, then get sent from there

brave sparrow
#

Forced hosts are absolutely a thing

#

Not sure what you’re talking about

#

It just requires a different connection domain

#

It allows you to bypass the default server

storm chasm
#

there is no lobby

#

see it's always what people want

eternal oxide
#

I'd not seen the forced hosts option

brave sparrow
#

It’s a neat little trick

storm chasm
#

the thing i want is transfering players from a to c

golden turret
eternal oxide
#

But yes, using it you can send a player directly to a server based upon their connection

golden turret
brave sparrow
storm chasm
#

but alex said it's possible isn't it

#

with bungee yes

#

i just didn't know that bungee can do that

brave sparrow
#

That’s pretty much all it does

wary harness
#

Is there a way to compate spigot maping packetnames

#

with mojang ones

#

got bit stuck

#

not sure what names are what

#

xd

storm chasm
#

@brave sparrowbut i use a panel so is the wiki for that too or?

brave sparrow
spiral light
compact crane
#

How can I use this in 1.18?
net.minecraft.world.item.ItemStack
I get the error: Method not found

wary harness
#

not able to find PacketPlayOutSpawnEntityLiving

spiral light
#

did you wait for site loading finished ?

wary harness
#

ClientboundAddEntityPacket

wary harness
#

oh thanks

#

so I just needed to put PacketPlayOutSpawnEntityLiving in search bar

#

in left top corner

spiral light
#

enter ?

wary harness
#

so I need packet

#

name to

#

ok it works

#

from some reason didn't work before

#

I was presing enter

spiral light
#

its not working when site is still loading ^^

#

i rly need to update this site xD

wary harness
spiral light
#

yes... needed something where i know how it works and also includes everything ^^

wary harness
#

Thanks

#

handy

#

πŸ™‚

wary harness
#

I made it

#

I can die in peace now πŸ™‚

#

What would be best option to send mob packets to players in radious

#

just loop on scheduled

spiral light
#

nmsworld.broadcast or smth is also a thing

#

but dont know if its for the complete world or just in a range

wary harness
#

smth?

#

well plan is to make armor stand as passenger

#

on player

#

to use it as additional slot for backpack item which has custom model in resource pack

#

I tried with noramll api

#

Spigot/Bukkit

astral nova
#

someone know how to

#

work with skinrestroyer api?

wary harness
#

but there is so many problems like mob fallign of

#

or not been able to teleport

#

wrong channel

#

this is development

worldly cedar
wary harness
worldly cedar
#

🀣

wary harness
#

Because your list is edited when u iterate thru it

#

probably

#

try make clone

#

then do it

#

Not sure 100%

#

in what I am saying

hybrid spoke
#

show us more. the exception, the full code. everything

#

new YourListImpl<>(yourListBefore);

#

& when does it throw the exception? probably someone closed the inventory or left the game while iterating through

tardy delta
#

/
/

golden turret
quaint mantle
#

what

tardy delta
#

smh when i try to find something i sent earlier in this channel

solid thunder
#

can i get player name of all Offlineplayer?
i try like this but not work or can't get offlineplayer name?

candid galleon
#

OfflinePlayer#getName

bitter dove
#

BannerMeta#getBaseColor() is deprecated, how to use DyeColor# with Banners?

hasty prawn
wary harness
#

so got question trying to get passenger on top of my head with packets

#

code

#
    public static void  test(Player p ){




        CraftPlayer cPlayer = (CraftPlayer) p;

        ServerPlayer sPlayer = cPlayer.getHandle();
        

        ServerLevel world = ((CraftWorld) Bukkit.getServer().getWorlds().get(0)).getHandle(); 
        ArmorStand armorStand = new ArmorStand(EntityType.ARMOR_STAND,world);

        
        armorStand.setPos(p.getLocation().getX(), p.getLocation().getY(), p.getLocation().getZ()); 
        sPlayer.connection.send(new ClientboundAddMobPacket(armorStand)); 

        sPlayer.connection.send(new ClientboundSetPassengersPacket(armorStand));


    }```
#

but passenger-armorstand only getsspawned on my location

#

@ivory sleet your name said u can be pinged xd

hasty prawn
#

I think you're misunderstanding what ClientboundSetPassengersPacket does.

#

You have to set the passengers yourself.

wary harness
#

?

#

how

#

I want it to be only packet

#

so client side

#

I was thinking that is the point of this packet

#

PacketPlayOutMount

hasty prawn
#

You still have to set the passengers yourself, it looks like the Entity that's passed is the Vehicle (so, that's your player), and you should set the armorstand as a passenger.

wary harness
#

I am confused

#

like if I do sPlayer.setPassenger(armorstand) will that not add it in real time ?

#

server side to

hasty prawn
#

You want to set the variable directly to avoid the server sending everyone the packets.

sPlayer.passengers = ImmutableList.of(armorStand);

#

That, of course, will break if they have more than one passenger though.

#

So if you need multiple passengers on the player you'll need to account for that.

wary harness
#

?

hasty prawn
#

It shouldn't

wary harness
#

and now I can grab that

#

armor stand

#

from that list when I need it

#

and modify it

wary harness
hasty prawn
#

Well, does it set it as a passenger?

wary harness
#

yep

modern fox
#

So the value is null but shouldn't it like just skip it then here

if (list.get(i) == null) 
#

or just go inside the list and not end the plugin

hasty prawn
#

It's going to go inside the if block if get returns null.

modern fox
#

It doesn't

#

It just ends rgiht there

hasty prawn
#

?paste the rest of the code

undone axleBOT
hasty prawn
wary harness
#

problem is p.teleport method is not working

#

well u don't telport at all

hasty prawn
#

Oh that's a different issue then, what are you doing?

wary harness
#

like p.teleport wont work

modern fox
wary harness
#

so I got passenger which is armorstand

#

so I can applay

#

back pack custom model on it

hasty prawn
modern fox
#

Does it matter?

hasty prawn
#

Yes...?

#

I mean what is it doing that you're not expecting it to do

#

return null? return top?

#

Throw an error?

modern fox
#

It throws an error here if (list.get(i) == null)

hasty prawn
#

IndexOutOfBounds?

modern fox
#

Oh yeah

#

I can check if it is lower

hasty prawn
#

Probably because you're using the length of slots and then accessing list and slots is larger than list :p

modern fox
#

Okay yeah

#

Thank you

hasty prawn
#

Send your teleport code

wary harness
#

not working

#

plus I tried to telport player my self

#

nothing happens

#

with p.teleport

hasty prawn
#

Any errors?

wary harness
#

no

hasty prawn
#

wat Thonk

wary harness
#

I am lookin at CraftPlayer

#

teleport method

#

@hasty prawn I think this is problem

hasty prawn
#

Yeah that'll do it

wary harness
#

but

#

that is in CraftBukkit class

#

I don't know what to do

hasty prawn
#

You'll have to find away around it then I guess

#

Not sure

ancient plank
#

dismount the passenger and teleport it gg?

dusk flicker
#

Anyone have a tutorial for Adventure?

wary harness
dusk flicker
#

I find their docs insanely bad

wary harness
#

if teleport event didn't even fire

#

how would I know teleport method is called

ancient plank
#

idk, but you can't teleport entities while they have passengers so the workaround is to dismount their passengers, teleport both, and remount them

#

iirc

ivory sleet
dusk flicker
#

that would prob be nice

#

im lost as shit

ivory sleet
#

lol

wary harness
#

looks there would be nice to PreTeleportEvent in API

ivory sleet
#

what u tryna do'

wary harness
#

in future

dusk flicker
#

Atm trying to use minimessage to convert a string with colors into text in chat

hasty prawn
dusk flicker
#

Dont think I did it right

wary harness
hasty prawn
#

That is pre

chrome beacon
ivory sleet
#

^

dusk flicker
#

My problem is I have no idea how to do that

ivory sleet
#

or use sth like LegacyComponentSerializer

dusk flicker
#

and cant find anything about it

wary harness
#

then it shoudl be before that vehicle check

#

@hasty prawn if u ask me

hasty prawn
#

Hm?

chrome beacon
dusk flicker
#

Alright

wary harness
#

I don't even need to send packet

hasty prawn
#

Oh wild

#

Are you sure it's client side then?

wary harness
hasty prawn
#

PauseChamp you have to set the passengers for that packet though

wary harness
#

but it work without it

hasty prawn
#

It might just be because of the AddMobPacket

quaint mantle
#

How would someone send a look packet to a specific yaw and pitch instead of coordinates? (Using 1.17.1 remapped-mojang)

golden turret
#

im starting with scoreboards and i would like to insert a new line to an existing scoreboard

#

how could i do that?

fleet rock
#

Hey yall

#

how can i make item durability check on 1.16.5 api

#

:/

candid galleon
#

@quaint mantle calculate the yaw and pitch given the coordinates

quaint mantle
#

for example, simply spawning into existence

candid galleon
#

if you simply want it to spawn into existence then you don't need to send a specific yaw and pitch

quaint mantle
#

okay, how about aiming a bow then?

candid galleon
#

you'd want to send an EntityMetadata packet pretty sure

main matrix
#
private File presentDataFile = null;
private YamlConfiguration presentDataConfig = null;

    public YamlConfiguration getPresentDataFile() {
        if (presentDataConfig == null) {
            reloadPresentData();
        }
        return presentDataConfig;
    }

    public void savePresentData() {
        if (presentDataFile == null || presentDataConfig == null) {
            return;
        }
        try {
            getPresentDataFile().save(presentDataFile);
        } catch (IOException e) {
            plugin.getLogger().log(Level.SEVERE, "Could not save presentdata.yml", e);
        }
    }

    public void reloadPresentData() {
        if (presentDataFile == null) {
            presentDataFile = new File(plugin.getDataFolder(), "presentdata.yml");
        }
        presentDataConfig = YamlConfiguration.loadConfiguration(presentDataFile);

        Reader defConfigStream = new InputStreamReader(plugin.getResource("presentdata.yml"), StandardCharsets.UTF_8);
        if (defConfigStream != null) {
            YamlConfiguration defPresentData = YamlConfiguration.loadConfiguration(defConfigStream);
            presentDataConfig.setDefaults(defPresentData);
        }
    }

    public void saveDefaultPresentData() {
        if (presentDataFile == null) {
            presentDataFile = new File(plugin.getDataFolder(), "presentdata.yml");
        }
        if (!presentDataFile.exists()) {
            plugin.saveResource("presentdata.yml", false);
        }
    }

Tried making a custom yml, but for some reason it doesn't work.
What I did: I deleted the file in the plugin folder then reloaded using reloadPresentData(), but it doesn't do anything.

tough basin
#

Hey I'm looking for a Minecraft Practice/HCF/Kits Developer anyone interested.

tough basin
#

wghat channel;

unkempt peak
unkempt peak
tough basin
#

no those dont work

#

well

dusk flicker
#

?services

undone axleBOT
main matrix
twilit summit
#

some way to avoid this? TeleportCause.PLUGIN doesn't work

golden turret
#

thats normal

#

the actions are stored in a List<Pair<Player, Action>>

#

and they can repeat

#

and the scoreboard isnt displaying duplicated actions

#

i would need help with that

twilit summit
# golden turret thats normal

well, im teleporting player too often and i need to avoid it because it will be ultra spam, when there will be more players

golden turret
#

well idk

late sonnet
red sedge
regal lake
#

setIngredient ?

red sedge
#

yeah but it requires a recipechoice?

regal lake
#

RecipeChoice, Material OR MaterialData

red sedge
#

I need an exact match

#

so i need to use recipechoice

spiral light
#

ExactRecipeChoice

red sedge
#

setIngredient(char key, RecipeChoice ingredient)...

#

oh wait

spiral light
red sedge
#

okay

#

so like

#

RecipeChoice.ExactChoice(item)

regal lake
#

Just as hint πŸ˜„

red sedge
#

okay well

#

uh

#

how do I do that for shapeless?

#

it says exactchoice is only valid for shaped recipes

spiral light
#

nms

#

just kidding ^^
i dont know what you want to do

red sedge
#

imma just hope it works

hoary pawn
prime harness
#

help me please

#

can you help me to update a server for 1.18?

#

im still on 1.8-1.17.1

hoary pawn
hoary pawn
hoary pawn
chrome beacon
spiral light
#

oh.. just do what Olivo said

obtuse basin
#

is there a way loading worlds from a custom directory?

hoary pawn
obtuse basin
chrome beacon
#

You want an ItemStack not the Item entity

#

Also don't cast if you don't know what you're doing

obtuse basin
#

this is definetly not the way getting the item of the mainhand

chrome beacon
#

^

obtuse basin
#

ik what im talking about, I've done already enough shit with Java XD

silk hamlet
#

if you want to have an entity item of the mainhand just create an entity item and set its itemstack to the itemstack of the mainhand

hoary pawn
hoary pawn
torn spindle
#

Hello, can you help me with dynmap 1.18?? I did /wb fill.. then i did dynmap fullrender and my 3D map do this (picture: https://ctrlv.sk/DJS8).. what can i do? Thanks for your help :)

hoary pawn
#

and btw i think that is how it should look

#

cause tilted view

#

or im missing something

#

ahh wait you didnt make that hole yourslef lol

#

hmm

lost matrix
hoary pawn
vocal cloud
#

Isn't it damager.getInventory()

lost matrix
#

Of what type is damager

hoary pawn
vocal cloud
#

I think this is the time to teach documentation reading

hoary pawn
lost matrix
#

then get his PlayerInventory and call getItemInMainHand() from that

hoary pawn
#

AHH FUCK

obtuse basin
hoary pawn
#

IT WAS THAT DOCS

#

that makes sense

lost matrix
#

Player#getInventory()
PlayerInventory#getItemInMainHand()

hoary pawn
#

thought it was the first page i was on

#

xd

hoary pawn
obtuse basin
lost matrix
#

so either copy the dir or create a symlink

obtuse basin
lost matrix
#

If you use the API then yes

hoary pawn
#

if i have a itemstack and give it to a player can i later check if the item came from that itemstack?

lost matrix
sullen marlin
#

you can only load worlds from the universe folder

#

which by default is the root directory

vocal cloud
#

Does this mean you can change it?

sullen marlin
#

yes, but all worlds have to be in the universe

obtuse basin
#

yeah ok that would be too much of not worth time

hoary pawn
#

like splyfofsamazingcustomnbttag

vocal cloud
#

That's what the PDC is for

hoary pawn
#

ahh shit

#

now i need to learn what da hell that is lol

vocal cloud
#

Thankfully it's well documented

lost matrix
#

?pdc

hoary pawn
#

i now realise why not more people try to make item creater thingy

lost matrix
#

Why? There are a ton of item builders out there. Its not that difficult. Just a bit labour intensive

#

Because of fireworks, potions, lore editing etc

hoary pawn
lost matrix
#

Oh... Spigot is a horrible place to learn Java tbf.
There are a lot of concepts which are not exactly beginner friendly.

hoary pawn
obtuse basin
vocal cloud
#

Forge is worse

hoary pawn
quaint mantle
#

Spong ><

vocal cloud
#

Spigot is child's play compared to forge

hoary pawn
vocal cloud
#

With forge you need to know way more things about java. Generics, suppliers, general abstraction etc. The errors are also way more difficult to decipher

hoary pawn
#

might need to choose another project next lol

#

that sounds pain

vocal cloud
#

By the end of it you'll come out fully understanding java or hate programming for life

hoary pawn
vocal cloud
lost matrix
#

Hating programming for life is an inevitable outcome if you are a programmer

fervent gate
#

This is the function

dusk flicker
#

looks like you are implementing the wrong player

fervent gate
#

import org.bukkit.entity.Player;

#

is this not the right one?

dusk flicker
#

net.minecraft.world.entity.player.Player is what something in your code is calling for

#

Look at the err

fervent gate
#

yea, well

#

found it

#

nvm, I have nothing calling for that now

#

still throwing that error

dusk flicker
#

follow the error

#

read the stacktrace

vocal cloud
#

Run mvn clean

fervent gate
#

where it says 21 more, can I actually read that?

dusk flicker
#

you dont need to

#

It will tell you everything you need in the stacktrace

fervent gate
dusk flicker
#

?stacktrace

#
fervent gate
#

Well, the thing is that in the stacktrace, nothing is from my code

dusk flicker
#

send it

dusk flicker
#

two lines from your code

fervent gate
#

Yes, but that is only a calling to another class

dusk flicker
#

so?

fervent gate
#

JungleTribeDruid druid = new JungleTribeDruid(plugin);

#

How can there be a player error in there if it is just calling

#

It doesn't go more in-depth on the class that I am calling here

dusk flicker
#

Can you send that entire class?

fervent gate
dusk flicker
#

Thats not the class its calling out

#

SummonTribeEnemies.java:29

fervent gate
#

this is the class you mean right?

dusk flicker
#

thats what the error is calling out

fervent gate
#

Yes

#

but line 22 is just a calling to another class

dusk flicker
#

You've run a mvn clean and restarted the server or did you reload it?

fervent gate
#

both

#

done everything you just suggested

dusk flicker
#

Interesting

#

Cause honestly I have no idea

#

Everything looks like it should be fine?

fervent gate
#

Yes, that is my thing, I'm baffled

hasty prawn
#

The server doesn't have a net.minecraft.world.entity.player.Player, thats for Mojang Maps. It wants net.minecraft.world.entity.player.EntityHuman

fervent gate
#

I don't have anything like that in my code though

hasty prawn
#

Do you think you could DM me your JAR file?

fervent gate
#

It works now, but it is throwing a similar error

hasty prawn
#

Oh? Thonk

fervent gate
#

mvn clean did the magic I guess

#

and maybe bcs the pc is lagging terribly because I have 3 mc clients running and a server with 2G RAM while watching yt vid and 20 tabs or so

vocal cloud
#

yeah it did

golden turret
sleek turret
#
kits:
  kit1:
    items: [ItemStack, ItemStack]
  kit2:
    items: [ItemStackm, ItemStack, ItemStack]

Does anyone have a suggestion on how to get this into Map<String, List<ItemStack>>?

fervent gate
golden turret
#

some rips