#help-archived

1 messages · Page 85 of 1

silk bane
#

this can easily be run sync

subtle blade
#

And much quicker

silk bane
#

and you can't run it async anyway since getType is unsafe

torn robin
#

isnt there chunksnapshot

#

or am i getting that confused with something else

subtle blade
#

Yes but it's unnecessary for this

silk bane
#

don't take a damn chunk snapshot to check 16 blocks

subtle blade
#

So again... before you decide to toss a thread into the mix just because "ASYNC = FASTER", think twice

frigid ember
#

Hey guys, for cursors how do I get the player's direction as a byte

#

No because on 1.13+ it times out the server..

silk bane
#

in the best case you only check 2 blocks

frigid ember
#

Not because its faster

torn robin
#

well you have to optimize it

subtle blade
#

jfc, if I hear one more time that checking 16 fucking blocks is going to crash the fucking server

torn robin
#

you're increasing by decimal places

#

you need to increase by 1

subtle blade
#

1.13 performance isn't shit. Your code's performance is shit

torn robin
#

not .1, .2, .3

brisk mango
#

LOL

silk bane
#

correction: 1.13 performance is shit, and your code's performance is also shit

dry kiln
#

Lol

brisk mango
#

^^ @silk bane

dry kiln
#

I run 1.15 pretty decently

subtle blade
#

I do as well

frigid ember
#

Where the fuck did I say

brisk mango
#

I crashed 1.15 with sand blocks only

frigid ember
#

1.13 is shit

subtle blade
#

Just fix your method

#

Threads aren't the answer to everything

frigid ember
#

My world on 1.15 loads slow too 😦

dry kiln
#

1.13 or 1.15, we don't talk about fucking 1.14 kids

subtle blade
#

Magic values, comparing Material constants' names with Strings, hundreds of location cloning
Only need one location, create constants, compare Material constants, etc.

You're checking block type. Block type will only ever change every 1 coordinate
Iterating every 0.1 and on every axis is so unnecessarily overkill it hurts

#

Take my points and get to work

dry kiln
#

🤯

frigid ember
#

Hey guys, do you know how to get the players direction as a byte?

    cursors.addCursor(fX, fZ, (byte) 12, (byte) 4);
dry kiln
#

Direction the coursers going in?

frigid ember
#

Yeah

subtle blade
#

I'm genuinely surprised Bukkit exposes a magic value like that

#

The facing of the cursor, from 0 to 15.

#

I assume clockwise

#

0 = north, 3 = east, 7 = south, 11 = west

frigid ember
#

I've got the values

0 = South
1 = South-West-South
2 = South-West
3 = South-West-West
4 = West
5 = North-West-West
6 = North-West
7 = North-West-North
8 = North
9 = North-East-North
10 = North-East
11 = North-East-East
12 = East
13 = South-East-East
14 = South-East
15 = South-East-South

But I'm not sure how to change the players direction to them

subtle blade
#

Right. Minecraft's coordinate system is ass-backwards

dry kiln
#

Lol

torn robin
#

wait why

#

bruh

#

player.getDirection.getYaw gets their yaw between -180 and 180

subtle blade
#

Yep

torn robin
#

youd have to do some basic math to figure it out

#

im tired

#

if you add 180 you can convert from -180/180 to 0/360

#

so 0<yaw<45 would be 1 direction

#

etc.

#

theres probably a utility/method out there that does this already

subtle blade
#

Yea, I'd multiply by that byte by 22.5 to get a value from 0 - 360 degrees

#

Subtract 180? Not sure

frigid ember
#

alright, I'll look for a util

subtle blade
#

Still genuinely surprised Bukkit exposes a magic value

torn robin
#

i said add 180

#

that should achieve the same result?

silk bane
#

i think, when you've written wrappers for hundreds of magic values in minecraft, there's a point where you just go 'fuck it' and leave it in the API

subtle blade
#

Well here's the thing... we have a Rotation enum

#

Ah not quite enough constants. I think there is one though

#

I'm like 90% sure banners use that same type of rotation of 22.5 degrees

solid canopy
#

Hi everyone, how to give to the enderdragon killer some item this line wont work :

vernal spruce
#

why dont you simply call e.getentity.getkiller?

torn robin
#

even better why nms

vernal spruce
#

also a check for bow will also be needed

#

oh yeah just noticed that craftentity cast

sick citrus
#

Gosh this code

subtle blade
#

I'm putting bets on custom dragon

torn robin
#

i was betting on decompiled

vernal spruce
#

most likely

subtle blade
#

Nah

#

No decompiled traces there

torn robin
#

f

sick citrus
#

F

vernal spruce
#

you know what i also love

torn robin
#

no seriously though why is it nms

vernal spruce
#

how he gets a inventory from a string

subtle blade
#

I'm putting bets on custom dragon

vernal spruce
#

def not compiled

#

that string must be quite the boss having a inventory

torn robin
#

@solid canopy entity.getKiller

make sure it's an InventoryHolder

cast it

holder.getInventory().addItem

#

getKiller could be an arrow, or potion as Stellrow said

subtle blade
#

Don't think it can

vernal spruce
#

also check for possible full inventory to drop the item rather than adding

subtle blade
#

getKiller() returns a Player

torn robin
#

or itll be null

#

pog

solid canopy
#

@solid canopy entity.getKiller

make sure it's an InventoryHolder

cast it

holder.getInventory().addItem
@torn robin Do'nt understand how

torn robin
#

so its pretty inaccurate then

subtle blade
#

If you want the arrow that killed it, get its last damage cause and grab it from the event

torn robin
#

so it'll be null if they died by a bow

vernal spruce
#

that 1 answer made the impression

frigid ember
#

How do i reset events of ComponentBuilder? I use this code, but the whole "/help general to see all general commands." has the hover and click event from the "/help part": ``` commandSender.sendMessage( new ComponentBuilder( "Use " )
.append("/help skywars").event( new ClickEvent( ClickEvent.Action.SUGGEST_COMMAND, "/help general" ))
.event( new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder( "Click this to put it in your text box." ).create()))
.append(" to see all general commands.").create());

subtle blade
#

It will be the player that shot the arrow

vernal spruce
#

on where the code is from😂

torn robin
#

oh gawd

#

Piston drag that out please

#

it shouldn't all be 1 line

#

please

subtle blade
#

afaik you can .append() another text component? I haven't used the ComponentBuilder in a long time

frigid ember
#

it shouldn't all be 1 line
@torn robin Its more structured for me. Cant read a long line at once

torn robin
#

ok

tiny dagger
#

you can't i think

#

the text is immutable or something

subtle blade
#

public ComponentBuilder append(BaseComponent component)

tiny dagger
#

oh nevermind

#

i think i was remembering about the nms then

frigid ember
#

public ComponentBuilder append(BaseComponent component)
@subtle blade Ok i will try this

subtle blade
#

Alternatively, FormatRetention may have something?

#

FormatRetention.RESET or something if I recall correctly

#

Oh, no, FormatRetention.FORMATTING

#

It will drop event formatting on your next append

frigid ember
#

FormatRetention.RESET or something if I recall correctly
@subtle bladeIt wont reset it for the the whole builder?

subtle blade
#

Nope. Just all that is appended

#

.append("Hello!", FormatRetention.FORMATTING);

#

Events are dropped, colour and whatnot is kept

frigid ember
#

.append("Hello!", FormatRetention.FORMATTING);
@subtle blade ok cool will try that

subtle blade
#

Component API works linearly 🙂

worthy lava
#

Heya guys, i remember there being an option to enable recipes to check if you have discovered the recipe first before crafting it. What was this option called again?

subtle blade
#

It's a gamerule iirc

worthy lava
#

Ah! Thanks!

subtle blade
#

doLimitedCrafting I think

worthy lava
#

I just found something so sadening

subtle blade
#

Did you find my high school year book?

worthy lava
#

No i found mine

subtle blade
#

oh shit waddup

worthy lava
#

Anyway another saddening fact

#

I just discovered that banner pattern recipes don't exist

subtle blade
#

Not yet, no 😦

worthy lava
#

And with doLimitedCrafting set to true, you can't craft them.

#

I mean like

#

Before 1.14 btw

subtle blade
#

mhmm

#

yea if you set that to false you should be able to craft things even without discovering them

#

Think you'll discover it once you do though

worthy lava
#

Craft the banner pattern?

subtle blade
#

Do they have recipes? I don't recall

#

Everything is done via the loom now so lol

worthy lava
#

Well not really, i just made a method that loops through every recipe, and unlocks that recipe if it has "BANNER" contained in its result material

#

That didn't work, only normal ones showed up

subtle blade
torn robin
#

true OGs make banners and fireworks through the crafting table

#

none of that weak loom stuff

worthy lava
#

Yeah that's what we are talking about

torn robin
#

true OGs know the pattern and don't have to remember it

#

?

worthy lava
#

Only way i see it is i need to go through over all of the docs and add the recipes manually myself

torn robin
#

doesnt sound that bad

worthy lava
#

It doesn't?

#

Im not an OG i don't know any of the recipes

frigid ember
torn robin
#

man its good to see minecraft.tools is still up

worthy lava
#

Yes but that doesn't solve my problem

#

Well it might

#

@frigid ember do you have a page where every pattern is shown in crafting?

fervent cipher
#

Hello how could I fix one chunk that lag when someone enter it? I tried remove all plugins except Multiverse and ipwhitelist, tried to place it on different servers and still there are lag spikes... But on one server it doesn't lag

frigid ember
#

@worthy lava it depends on what version you are using

#

The way to craft them changed over time.

worthy lava
#

1.13.2

vernal spruce
worthy lava
#

Well im sorry mister but i can't update above that version because mojang doesn't really do a good job at optimising newer versions

frigid ember
#

old version
@vernal spruce Are you waiting for this all day?

worthy lava
#

Not my fault

vernal spruce
#

nah i actually use that for alot of things

frigid ember
#

nah i actually use that for alot of things
@vernal spruce k

vernal spruce
#

and also hard times... no nitro gotta do what we gotta do

#

a gif from pc it is..

frigid ember
#

@worthy lava there are over 809,6 trillion differnt banners. You really wanna do this?

vernal spruce
#

damn

fervent cipher
#

Anyone don't know about chunk fix? 😅

worthy lava
#

Nope i can't

#

Well actually i could

#

Ngl

hallow surge
#

do you want all 809.6 trillion different banners

frigid ember
#

Well actually i could
@worthy lava I think i cant give you a page with all banners. That would be considered spamming the web. 😂

worthy lava
#

I mean, all i need to know is what shape

#

What you shape you create a specific pattern with

hallow surge
#

just figure it out

#

or search the web

#

its not that hard

#

xD

frigid ember
#

Its in the minecraft wiki

hallow surge
#

its in google images as well!

#

you dont need spigot help you need mental help!

#

ive always wondered how that was done

vernal spruce
#

they use viaversion/viabackwards

#

for protocol hacking..

#

thats how all of them do,but i strongly believe hypixel has theyr own

#

and they are hypixel with a big dev team behind..

#

also,anyone got a spigot resource "template" i could borrow?

frigid ember
#

BUT ON WATERFALL!
ViaVersion and ViaBackward are not Bungee plugins!
@frigid ember Yes i think its ping passtrough. The server will tell the perople all its comability

torn robin
#

h e l p

frigid ember
#

In config.yml?
@frigid ember Im not a dev. I cant promise you that it works. Yes its in config.yml

vernal spruce
#

why packet titles?

torn robin
#

bruh this guy

#

the statics, logic, indentation, lowercase class name

#

h a l p

vernal spruce
#

wait where did you get that from

torn robin
#

someone asked me to fix a bug with it

vernal spruce
#

the god class pog

#

events/commands everything you can wish for

#

all in one 😂

torn robin
#

i basically said this is bad code but ill fix it

#

only the part that wasn't working

#

not all of the code

vernal spruce
#

i think u are better off telling him to remake it

torn robin
#

some other guy made it

#

pog

vernal spruce
#

is it even working in the first place?

torn robin
#

barely it looks

frigid ember
#

@frigid ember I think I killed my proxy. :ded:
@frigid ember What?

vernal spruce
#

you have to be more descriptive

#

than "i enabled something"

frigid ember
#

I enabled something in the config, to test, "What", and I killed it. pls help :p
@frigid ember Can you give us the config?

#

@frigid ember logs?

#

@frigid ember it seems like the server refuses the proxy

#

Is the port really open?

#

@frigid ember your Proxy cant get the version of the server, when it is off

#

Waterfall seems to try to connect to the server, but fails

#

@frigid ember ahhhhhhhhhhhhh. I thought you wanted to change the displayed version, when you saved the server.

#

You can do that in the spigot.yml file of your hub server

#

under messages

vernal spruce
#

thats being a server owner in a nutshell

#

you eventually solve it

#

@frigid ember now you see why its handy to have it

wooden tree
#

i have this problem

tiny dagger
#

btw lilypad or whatever bungee competitor was is still around?

frigid ember
#

The message comes from the server

#

messages:
whitelist: You are not whitelisted on this server!
unknown-command: Unknown command. Type "/help" for help.
server-full: The server is full!
outdated-client: Outdated client! Please use {0}
outdated-server: Outdated server! I'm still on {0}
restart: Server is restarting

#

Thats the part of the spigot.yml file

#

Hey guys, I need help with my maps again
https://www.youtube.com/watch?v=2e7Kt1a2r1c&feature=youtu.be
When I set the Scale further than Scale.CLOSE , it doesn't render the full map

    public void update(MapView map) {
    @SuppressWarnings("deprecation")
    WorldMap worldMap = (WorldMap) MinecraftServer.getServer().worlds.get(0).worldMaps.get(WorldMap.class,
        "map_" + map.getId());
    world = ((CraftWorld) map.getWorld()).getHandle();
    int size = 128 << worldMap.scale;

    for (int x = worldMap.centerX - size / 2; x <= worldMap.centerX + size / 2; x += 32) {
        for (int z = worldMap.centerZ - size / 2; z <= worldMap.centerZ + size / 2; z += 32) {
        locX = x;
        locZ = z;
        itemWorldMap.a(world, this, worldMap);
        }
    }
    }
        if (map.getWorld().getName().equals(player.getWorld().getName())) {
            map.setCenterX(player.getLocation().getBlockX());
            map.setCenterZ(player.getLocation().getBlockZ());
            mapUpdater.update(map);
        }
wooden tree
#

i cant msg

tough viper
#

How do I make Eclipse link to other javadocs when it depends on classes from other javadocs?

vernal spruce
#

i usually just added

#

the jar to it

#

as you do with the spigot

tough viper
#

but jars are intensive aren't they?

vernal spruce
#

nope they act as dependencies

naive goblet
#

U think you'd have to make a fork?

tough viper
#

does eclipse let me generate docs with maven?

naive goblet
#

Or atleast use reflection for it Gyrmadro

#

Is it the Proxy or Callback?

sick citrus
#

does eclipse let me generate docs with maven?
@tough viper
The IDE is irrelevant. Maven lets you do it. Eclipse just calls the maven command.

naive goblet
#

why?

vernal spruce
#

people usually avoid whisper helping

tough viper
#

@sick citrus how do I do it?

vernal spruce
#

as it tends to get sticky..

naive goblet
#

Gyrmadro the help is here not anywhere else

vernal spruce
#

as somebody said why they dont do whisper... they dont want to become theyr personal assistant..

#

as thats where it usually ends..

#

@frigid ember verify urself

naive goblet
#

Verify

vernal spruce
#

then you will

sick citrus
#

If I were you, since you asked that question though, I'd quintuple check that you are indeed using maven...

vernal spruce
#

isnt that just

#

changing server name in .proprieties

#

thats how i did it last time,there are even plugins to do it for you

#

ahh you meant the requires mc message

wooden tree
#

can i dm someone for help? i cant send a .txt error file

#

-_-

#

ok

#

dm me

vernal spruce
#

ahm..

#

he says viaversion has that message

sick citrus
#

@vernal spruce @frigid ember not sure there's anything in the API for that.

vernal spruce
#

to change the "requires thing"

sick citrus
#

you'll need NMS/Protocol I'm pretty sure. I tried to do it too but failed to find anything in-api

vernal spruce
#

damn abandoned though

naive goblet
#

@wooden tree

sick citrus
#

ProtocolChanger then

naive goblet
#

It's at the proxy ?

#

or fallback?

wooden tree
#

on a server

sick citrus
#

Bungee should have that in-api tho

#

spigot requires protocol.

#

If it's for bungee, listen to ProxyPingEvent, and call event.getResponse().getVersion().setName("what you want it to say");

wooden tree
#

can i put the error.txt file in #general ? bc it wont work here

#

it dont work anywhere

vernal spruce
#

double tap `` 3 times and put that in the middle

#

also put only the important part

wooden tree
#

i cant

#

it go over limit

vernal spruce
#

well time for you to verify then

wooden tree
#

ok

fervent cipher
#

Please how could I fix chunk that lag when someone enters?

vernal spruce
#

its mostly on the cpu and what the chunk contains

#

you cant rly speed it up

fervent cipher
#

the chunk contain almost nothing

#

and we have good cpu

#

just one chunk is laggy....

vernal spruce
#

hmm might be a coruppted chunk

fervent cipher
#

and how could I fix it 😄

#

it was originally built on 1.15.2

#

so what can be wrong with it

#

I tried also pasting with schem and still laggy

vernal spruce
#

hmm not sure,there should be however stuff on the internet to fix them

wooden tree
#

that was boring webpage xD

vernal spruce
#

i think mcedit also provides a "fix" button

wooden tree
#

there

vernal spruce
#

@wooden tree

#

?paste

worldly heathBOT
vernal spruce
#

i got tired myself of downloading txt files..

wooden tree
#

oh ok srru

vernal spruce
#

hmm java.lang.RuntimeException: org.bukkit.configuration.InvalidConfigurationException: unacceptable code point ' ' (0x0) special characters are not allowed in "'string'", position 0

#

special charachter?

wooden tree
#

sooo

#

wat is it

#

?

#

where

#

shall i check

#

in server.properties?

vernal spruce
#

yeah the name somehow has a special charachter

wooden tree
#

Wat?

#

wat name

vernal spruce
#

it points to spigotconfig at org.spigotmc.SpigotConfig.init(SpigotConfig.java:65)

wooden tree
vernal spruce
#

maybe spigot.yml?

wooden tree
#

its blank

#

wat

#

tf

#

why is it blank

vernal spruce
#

yeah i use notepad++ i love the sorting feature

wooden tree
#

why u all type so fast

#

xD

vernal spruce
#

also were on keyboard..

#

and also when you code alot you learn to type rather fast..

inner mirage
#

Any of you ever had this issue or seen it before?

[16:38:04 WARN]: Event ConnectionInitEvent(remoteAddress=/[HIDDEN]:20234, isCancelled=false) took 499ms to process!

vernal spruce
#

isnt that a paper error?

inner mirage
#

Bungee

#

It's happening only to me when i log-on, i have to wait 2 minutes to be able to do anything.

#

All my chat logs, commands, register in spigot console but nothing happens in game until it responds or i'm kicked.

wooden tree
#

it says the server is online

frigid ember
#

Why would a class not be legal for implementation? I think I need to use it but it's "not legal"

wooden tree
#

thx

#

It works now tysm

tiny dagger
#

bad practice

inner mirage
#

@frigid ember what you using it for?

tiny dagger
#

create your own

#

don't use bukkit's interfaces

#

same for inventory holders

#

you know you who you are

frigid ember
#

I'm trying to transfer a recipe from a preexisting recipe to a new recipe that changes what the result is

#

it will shuffle all the recipes around randomly

#

the problem is these RecipeChoice stuff

naive goblet
#

idk but often encapsulation with references is a better practice than the interfaces of bukkit.

tough viper
#

How do you make Eclipse generated javadocs link to other classes from other docs
Like Spigot classes

naive goblet
#

javadocs?

#

or what

tough viper
#

javadocs

naive goblet
#

You can link something through

/**
 * {@link package.Class}
 */```
#

idk acc

#

search up?

tough viper
#

what i mean is

fervent cipher
#

but mcedit doesn't work on 1.15.2?

tough viper
#

how do I link that org.bukkit.event.Event to bukkit's event class

#

does {@link} do that?

gray plume
#

How do I fix this yaml issue on line 777?

sturdy oar
#

escape

#

\'

#

or use strings " "

sick citrus
#

@gray plume by fixing line 776.

wanton vine
#

lava and water arent flowing on my server? it flows after restart but stops suddenly after like 20 minutes? Whats going on

sick citrus
#

plugin stopping lag ?

wanton vine
#

Idk which one would do it tho

sick citrus
#

...essentials ?

wanton vine
#

yeah but i dont see where it would stop the flow

sick citrus
#

well if you install protocolchanger, obviously you'll have the player amount working

naive goblet
#

Ultimate way would to code it yourself

sick citrus
#

if you didn't disable viaversion/whatever you're using that allows other players to come.

timber barn
sick citrus
#

well protocolchanger is very basic and you can't really go any more barebones unless you use reflection (to get rid of ProtocolLib).

#

@timber barn yes

timber barn
#

where is the bar then

sick citrus
#

hidden

timber barn
#

hidden
@sick citrus
thanks

sick citrus
#

anytime 🙂

#

maybe if you started by saying what you mean with "search bar"

timber barn
#

top right corner searchbar

#

missing in bungee docs

sick citrus
#

you may notice that

#

top left

#

It's not you, don't worry.

#

but do you really need a search bar for a javadoc of a like a dozen class ?

timber barn
#

probably

#

I found what I needed

#

but would be faster

sick citrus
#

with the time you spent asking about the searchbar, you would have found it in time

bronze marten
#

Ctrl f

#

Why JS disabled tho

sick citrus
#

It's not. It's just the fact that the javadocs is hosted in the CI, it messes it up somehow

bronze marten
#

F

fervent cipher
#

Hey guys still waiting for idea to fix broken chunk 😄

frigid ember
inland depot
#

how would i go about mob stacking?

naive goblet
#

Entity#getNearbyEntities

#

Would be 1 way

viral herald
#
Cannot resolve method 'getConfig' in 'ExclusionUtil'```

Main:

package me.faintcamo.exhc;

import me.faintcamo.exhc.commands.HC;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

public class ExclusionHC extends JavaPlugin {
public static ExclusionHC plugin;
public static FileConfiguration config;

@Override
public void onEnable() {
    getLogger().info("[ExclusionHC] Enabled");
    config = getConfig();

    getCommand("hc").setExecutor(new HC());
}

@Override
public void onDisable() {
    getLogger().info("[ExclusionHC] Disabled");
    config = null;

}

}

Utils

package me.faintcamo.exhc;

public class ExclusionUtil {

public static ExclusionHC plugin;

public ExclusionUtil(ExclusionHC plugin) {
    this.plugin = plugin;
    plugin.getConfig();
    String noPlayer = getConfig().getString("noPlayer").replace("&", "§");

}

}

#

Dm me if you can help me

vital bone
#

It means the method isnt found

viral herald
#

Yea I know

#

Im confused on how to overcome it

vital bone
#

public class with the method

viral herald
#

wdym

vital bone
#

it means

#

create the method

viral herald
#

Alr

vital bone
#

public getConfig(){
your code here
}

#

😛

viral herald
#

didnt have to give me the code

#

but ok

naive goblet
#

@viral herald unnecessary static

viral herald
#

in which

naive goblet
#

Isn’t good

viral herald
#

Which class?

naive goblet
#

Main

#

static will always be kept in memory and won’t be gc’d for instance

#

Work with dependency injection and encapsulation

#

Instead

viral herald
#

alr

naive goblet
#

So don’t make a FileConfiguration field static or main class. Also you don’t have to redeclare FileConfiguration to be null onDisable

frigid ember
#

I mean it's not terribly difficult. Iterate along the z axis of your shape, pick certain intervals (say every 10 blocks). Once you've reached that point, go up and to the right by 1 pixel, place a block. Continue until you reach the top axis again

    for (int x = 0; x < 128; x++) {
        for (int z = 0; z < 128; z++) {
        int dX = x;
        int dZ = z;
        if (x < 64) {
            dX = -x;
        }
        if (z < 64) {
            dZ = -z;
        }
        Location newLoc = data.getStart().clone().add(dX, 0, dZ);
        Faction faction = BoardColl.get().getFactionAt(PS.valueOf(newLoc));
        
        if (faction != FactionColl.get().getNone()) {
            canvas.setPixel(x, z, MapPalette.RED);
        }
        }
    }

@subtle blade I'm still a bit confused, how would I make it in a criss cross pattern?

brisk mango
#

bruh those method calls from constructor @viral herald

viral herald
#

@brisk mango i fixed it

brisk mango
#

remove them

velvet scaffold
#

which property do i change to make exp orbs stop clumping together into one big orb? its messing with some farms on my sserver

frigid ember
tough viper
#

How do I get the new slimes from SlimeSplitEvent

ebon charm
#

Hello, i want to create a amorstand with a passenger. I did it and everything fine, but when I am going to clear the entites, the passenger will be removed and I don't want it. I tried so much, but the problem is still there. Can maybe someone help me please?

tough viper
#

There's only event.getCount() but I want to get the new slimes

#

And iterate over them

#

Is there a way to get the new slime objects from a SlimeSplitEvent, even if it's 1 tick after?

subtle blade
#

No but it may be able to be passed in and new API could likely be added to that event to include them

#

Not sure where it's called

tough viper
#

Alright

frigid ember
graceful copper
#

Is there any documentation on the villagers-work-immunity settings?

rapid yacht
#

You guys got any opinions on good generalized discord bots? My contenders are Dyno, Carl-Bot, YAGPDB.xyz, and MEE6

velvet halo
#

Does anyone know a good library for inventories?

subtle blade
#

Deleting that link because it's not something that should be shared

#

It hosts Mojang's decompiled source

#

Use BuildTools

#

Besides - that second integer is the RGB int value

solid canopy
#

HOw to send item to the killer of the enderdragon someone tried to help me

#

BUrt i don't understand

#

How to do it with my code plizz

velvet halo
#

lastPlayerAttacked is a string not a player instance

#

.<

#

If you don't know how to fix that code then you don't know java

solid canopy
#

NO no i understand that*

#

BUt,, which function tio get the Player

#

I know that's its a string bro T_T

#

I want to get a Player class, to send him a item

#

But i write it like a pseudo code hahah don't worry

velvet halo
#

So yo want to get the player who killed the ender dragon?

solid canopy
#

FOund out

#

Bukkit.getPlayer(lastPlayerAttacked)

#

Haha

#

:p

velvet halo
#

No stop

solid canopy
#

Why 😮

velvet halo
#

You are doing it not in an efficient way

solid canopy
#

Why i just decompiled thisplugin

velvet halo
#

If you just want to get who is the killer of the ender dragon you can do it more easily

solid canopy
#

THe owner do that,haha

#

Really 😮 ?

velvet halo
#

Doesn't mean it is a good plugin

solid canopy
#

How can u do it

velvet halo
#
    @EventHandler
    public void onDeath(EntityDeathEvent event) {
        if(event.getEntity() instanceof EnderDragon) {
            if(event.getEntity().getKiller() != null) {
                event.getEntity().getKiller().getInventory().addItem(new ItemStack(Material.DIAMOND));
            }
        }
    }
``` Easy peasy
solid canopy
#

God damn good

#

WIth my code

#

I can do it :p ?

#

Ill try wait :p

velvet halo
#

Yes you should update to 1.15.2

tough viper
#

what's the best way to make sure my plugins are backwards compatible?

velvet halo
#

I don't see the point in using NMS if you can just use it with the spigot api..

tough viper
#

i mean ones I make

#

@velvet halo NMS has many things regular spigot doesn't

#

and it lets you do many of the things spigot's API doesn't let you use

velvet halo
#

Yes but that doesn't mean it is good for this purpose because you can do it in regular spigot.

tough viper
#

It does

#

Because there's no other way to do it

velvet halo
#

Yes there is

#

...

tough viper
#

Not always

velvet halo
#

I literally just sent the code

tough viper
#

Oh

#

Maybe for that

#

I thought you were talking about NMS in general

velvet halo
#

Yeah of course there are reasons why you should use NMS

#

Not for the function he provided

tough viper
#

my bad

velvet halo
#

no problem

brisk mango
#

Comparing the type is better than using instanceof @velvet halo

velvet halo
#

Yeah that is true

brisk mango
#

and you need to check if the killer is player

#

otherwise u cant add items i think

ebon charm
#

hey, i want to create a amorstand with a passenger. I did it and everything fine, but when I am going to clear the entites, the passenger will be removed and I don't want it. I tried so much, but the problem is still there. Can maybe someone help me please?

chrome heron
#

What is the plugin of [i]

brisk mango
#

@ebon charm check if the type is equal to armorstand and if yes, dont clear it

#

What do you mean @chrome heron

chrome heron
#

[i ] to show the stuff that u are holding on your hand on chatbox

brisk mango
#

Chat component API

ebon charm
#

@chrome heron

#

nice avatar haha

brisk mango
#

final TextComponent component = new TextComponent("Message");
component.setHoverEvent(new HoverEvent(HoverEvent.ACTION.SHOW_ITEM, item);
#

not sure about the SHOW_ITEM action

#

never used it

#

??

ebon charm
#

bruh

#

temedy, I did it already

chrome heron
#

@ebon charm That is my wife

brisk mango
#

then what is your point if u did it already

ebon charm
#

I have a ClearLagManager and I did it in it

brisk mango
#

lmfao

ebon charm
#

It doesn't work

brisk mango
#

it doesnt work isnt a question

chrome heron
#

no

ebon charm
#

@ebon charm That is my wife
@chrome heron no my 😂

#

Can I write you per dm?

brisk mango
#

no

chrome heron
#

@ebon charm You geT out here

#

thats mine

ebon charm
#

@brisk mango ```java
for(ArmorStand stand : world.getEntitiesByClass(ArmorStand.class)) {
if (((ent instanceof TNTPrimed)) || ((ent instanceof ExperienceOrb)) ||
((ent instanceof FallingBlock)) ||
(!(ent instanceof Tameable)) &&
(!(ent instanceof Player)) &&
(!(ent instanceof ArmorStand)) &&
(!(ent instanceof Giant)) &&
(!(ent.getType().equals(stand)))) {
ent.remove();
//Bukkit.broadcastMessage("§7Es wurden §6" + ent + " §7gelöscht.");

                    }
                }```
#

there is more above, but this is how i made it

brisk mango
#

you dont need to do this what?

#

world.getEntities().forEach(entity -> {
if(!entity.getType() == EntityType.ARMOR_STAND) {
entity.remove();
}
});
#

also compare the enums with ==

ebon charm
#

why armorstand

#

i mean the passenger

brisk mango
#

remove the passenger?

ebon charm
#

It shouldn't be removed

#

But it will be removed after clearlag

brisk mango
#

bruh

#

then check if the stand has passenger and if yes dont remove

ebon charm
#

Did it already

brisk mango
#

okay.

ebon charm
#

still removing

brisk mango
#

because u probs cant code it

#

properly if its removing

#

i cant help with that i pointed you in the right direction.

velvet halo
#

world.getEntitiesByClass(ArmorStand.class).forEach(Entity::remove);

brisk mango
#

@velvet halo he doesnt want to remove armorstands

#

and why would you use getEntitiesByClass

ebon charm
#

To get the armorstand

brisk mango
#

bruh are you retarded

velvet halo
#

rude

ebon charm
#

chill

brisk mango
#
world.getEntities().forEach(entity -> {
if(!entity.getType() == EntityType.ARMOR_STAND) {
ArmorStand stand = (ArmorStand) entity;
entity.remove();
}
});
#

there you go

velvet halo
#

don't ever call someone restarded that is super offensive

brisk mango
#

i gave him code to get the armor stand

#

lol

ebon charm
#

yes true, but it still removes the passenger

velvet halo
#

Why should we not use getEntitiesByClass(ArmorStand.class) ?

#

Please explain

brisk mango
#

because he wants to remove other entities but not armorstands

#

and u send him code that removes the armorstands

#

because u cant probs read what he even said

velvet halo
#

So you call me retarted?

#

nice

#

I just read the question wrong

ebon charm
#

So how can I solve it?

proper wolf
#

What flavour of linux is recommended for Game Servers

inland depot
#

How can I add methods to an interface that belongs to another plugin?

brisk mango
#

world.getEntities().forEach(entity -> {
if(entity.getType() == EntityType.ARMOR_STAND) {
if(entity.getPassengers().size != 0) {
continue;
}
} else {
entity.remove();
}
});
#

@ebon charm

#

@velvet halo where do i call you retarded

#

please man

velvet halo
brisk mango
#

was that directed to you though?

#

i dont think so

velvet halo
#

even then don't use that word please

#

it is offensive

#
world.getEntitiesByClass(ArmorStand.class).forEach(armorStand -> {
    if(armorStand.getPassengers().size() == 0) armorStand.remove();
});
#

Why are you using continue?

brisk mango
#

bruh are you joking right now

ebon charm
#

And there is no #getPassengers() method

brisk mango
#

he wants to not remove the passengers and the armor stands

#

has to be

#

@velvet halo because thats how continue-break is used in a loop/iteration

subtle blade
#

temedy if you don't relax a bit you're going to get yourself kicked

#

Your elitism isn't appreciated

#

If there's a question, answer it. If someone's wrong, explain why

brisk mango
#

Tell me, why is there an getPassengers method in the docs then ? @ebon charm

velvet halo
#

You are removing the armorstand also Temedy you are doing the exact same thing In am doing but in a different way

ebon charm
#

I don't know, I am just doing what you say

brisk mango
#

no im not removing it.

#

im removing it if its not an armor stand

ebon charm
#

its underlined red

brisk mango
#

what is

#

ss

inland depot
#

@subtle blade Can you please help me out with this? Fairly sure it's a quick answer but I'm just missing something.

How can I add methods to an interface that belongs to another plugin?

ebon charm
#

"The method getPassengers() is undefined for the type Entity"

brisk mango
#

you cant

#

idk what version ur using @ebon charm

#

but it exists

ebon charm
#

spigot 1.8.8

brisk mango
#

it returns an List<Entity>

subtle blade
#

You don't, Gaming

#

Your best option is to write a wrapper for said interface

brisk mango
inland depot
#

how would i do that?

ebon charm
#

There is nothing temedy

brisk mango
#

wdym nothing

subtle blade
#

Create a class that accepts an instance of said interface through the constructor

#

Have a getter to get it, write methods as necessary

#

Alternatively, you can extend the interface with another interface

ebon charm
#

no #getPassengers()

brisk mango
#

Idk

subtle blade
#

Are you importing the right entity?

brisk mango
#

bruh

inland depot
#

ok thanks

brisk mango
#

arent you doing #getPassengers()

subtle blade
#

There are some from Java's std lib

brisk mango
#

with the #

velvet halo
#

lol

brisk mango
#

LOL

#

show me screenshot

subtle blade
#

#methodName() is Javadoc notation, Verpeilt

#

It's a reference to a method

brisk mango
#

method reference

subtle blade
#

Much like Foo::bar would be a reference in source

brisk mango
#

i like method reference

ebon charm
subtle blade
#

.size()

#

Likely the reason for your error

brisk mango
#

remove the method calls from the constructor

ebon charm
#

.size()
@subtle blade still

brisk mango
#

and assign the fields private

#

also why is an int named like an constant though its not?

subtle blade
#

It is constant just not defined as one

brisk mango
#

how is it a constant

subtle blade
#

just not defined as one

brisk mango
#

it can only be a constant when its defined as one

subtle blade
#

Defined to a set value and not modified, just not static nor final

brisk mango
#

what when it will be modified

subtle blade
#

Dude, do you have to be right about absolutely everything? lol

brisk mango
#

whatever im not gonna argue w u about this

subtle blade
#

You're actually quite annoying

inland depot
#

aw

#

gifs don't autoplay

subtle blade
#

Nah embeds are off

velvet halo
#

What version of spigot are you using @ebon charm just to make sure?

inland depot
#

rip

brisk mango
#

@ebon charm should be named worlds instead of world, its not an world its an list of worlds

inland depot
#

sorry about that

ebon charm
#

What version of spigot are you using @ebon charm just to make sure?
@velvet halo 1.8.8

#

temedy its already defined above

subtle blade
#

Added in January of 2017

brisk mango
#

what is defined above

subtle blade
#

i.e. not 1.8

#

Update

velvet halo
#

There is your problem

#

update to the latest

ebon charm
#

update to the latest
@velvet halo But i need for 1.8.8

subtle blade
#

1.8 has getPassenger() and setPassenger()

#

There was only every the possibility for one passenger then

ebon charm
#

hmm

velvet halo
#

^

subtle blade
#

The reason the API was expanded was for boats

brisk mango
#

getPassenger() != null

#

and ur fine

subtle blade
#

isEmpty()

ebon charm
#

did it already

brisk mango
#

i mean

#

pretty much does the same thing

ebon charm
#

And now it removes nothing

brisk mango
#

Your spigot fucked

#

or you didnt compile

#

or you didnt reload server

velvet halo
#

isEmpty() is specifically used to check if an entity has passengers so I recommend do utilize that instead of a null check

ebon charm
#

Did it

isEmpty() is specifically used to check if an entity has passengers so I recommend do utilize that instead of a null check
@velvet halo

subtle blade
#

Not sure what purpose that nested if statement serves

velvet halo
#

👍

ebon charm
#

But now it removes nothing

subtle blade
#
if (entity.getType() == EntityType.ARMOR_STAND) {
    if (entity.isEmpty()) { // This is all useless
        continue;
    }
} else {
    entity.remove();
}```
#

What is it you're trying to do again?

#

I missed the earlier parts of this conversation

brisk mango
#

how is it useless

subtle blade
#

because regardless of whether or not it's true, it does nothing

#
if (entity.getType() != EntityType.ARMOR_STAND) {
    entity.remove();
}```
#

Those are equivalent

brisk mango
#

i mean

velvet halo
#

So I wasn't retarded after all...

brisk mango
#

wont it remove the passenger

subtle blade
#

The one he's using currently will not

#

It just continues

brisk mango
#

okay.

subtle blade
#

afaik the passenger has to be ejected first

#

Can't be removed while it's still a passenger

frigid ember
#

Hey guys, how do I get the color of a block?

    NONE(0, 0, 0),
    GRASS(127, 178, 56, Material.GRASS, Material.SLIME_BLOCK),
    SAND(247, 233, 163, Material.SAND, Material.SIGN, Material.STONE_PLATE, Material.SANDSTONE),
    WOOL(199, 199, 199),
    FIRE(255, 0, 0)

I've started doing an enum, is there another way?

subtle blade
#

Bukkit does not expose map colour

#

Considered making a PR for this some time ago though

frigid ember
#

PR?

subtle blade
#

Pull request

#

Contribution to Bukkit

frigid ember
#

Oh ok

ebon charm
#

Now I made this: ```java
for(World world : world){
for(Entity ent : world.getEntities()){
for(Item item : world.getEntitiesByClass(Item.class)) {
for(ArmorStand stand : world.getEntitiesByClass(ArmorStand.class)) {
if (((ent instanceof TNTPrimed)) || ((ent instanceof ExperienceOrb)) ||
((ent instanceof FallingBlock)) ||
(!(ent instanceof Tameable)) &&
(!(ent instanceof Player)) &&
(!(ent instanceof ArmorStand)) &&
(!(ent instanceof Giant)) &&
(!(stand.isEmpty()))) {
ent.remove();
//Bukkit.broadcastMessage("§7Es wurden §6" + ent + " §7gelöscht.");

                    }
                }

                

            }

            

        }
    }```
subtle blade
#

huh

ebon charm
#

wait

velvet halo
#

👀

ebon charm
#

I mean

#

the #stand.isEmpty()

brisk mango
#

bruh

ebon charm
#

Now it removes the passenger, but not the items on the groundd

brisk mango
#

why did you make this

#

because your code is shit

#

when that code we sent

#

should do it

ebon charm
#

Yours doesn't work too

brisk mango
#

it does

ebon charm
#

No

#

I've tried

brisk mango
#

gonna try it out

ebon charm
#

send me again

brisk mango
#

its above there.

ebon charm
#

And I'll show you

#

Don't know which one

brisk mango
#

its above

#

bruh

ebon charm
#

Someone says it's wrong

#

not sure now

velvet halo
#
@EventHandler
public void onSave(WorldSaveEvent event) {
    for(Entity entity : event.getWorld().getEntities()) {
        if(entity.getType() == EntityType.DROPPED_ITEM) {
            entity.remove();
        }
    }
}
``` Clearing items on a world save could be nice. Correct me if I am wrong.
brisk mango
#
world.getEntites().forEach(entity -> {
if (entity.getType() != EntityType.ARMOR_STAND) {
    entity.remove();
}
});
ebon charm
#

This code doesn't work

brisk mango
#

bruh im done with you

ebon charm
#

It removes me too

brisk mango
#

im just wasting my time

#

lol

ebon charm
#

Don't be like that

brisk mango
#

"it removes me"

velvet halo
#

temedy you need to word yourself differently

brisk mango
#

okay bruh

ebon charm
#

sorry for my english, but I need help 🤷‍♂️

brisk mango
#
world.getEntites().forEach(entity -> {
if (entity.getType() != EntityType.ARMOR_STAND) {
    entity.remove();
}
});

@ebon charm

velvet halo
#

I will help you VerpeiltYT ill get you through it.

#

Explain from beginning to the end what you want to happen.

brisk mango
#

This removes everything but not armor stands.

#

and the passengers

tough viper
#

Why not use a for

brisk mango
#

why use a for

#

teach me

tough viper
#

Why is a .forEach better

brisk mango
#

its called preference

#

also i like lambdas more

tough viper
#

And for is typed

#

Alright, that makes sense then

brisk mango
#

that was really a non-point argument

#

while it does the same thing in his case

velvet halo
#

nice

tough viper
#

yeah, i was just wondering why

brisk mango
#

yeah np

brisk mango
#

I mean if you wanna read this then good luck

ripe spear
#

is aac good or not guys

brisk mango
#

decent

ripe spear
#

thanks

leaden girder
#

I'm needing some help canceling the drag event for slot 40 (offhand slot) but there is not direct method to get the slot that the item is being dragged to, does anyone have a solution to my problem?

#

I was trying to maybe scan all the items in the inventory and compare but I couldn't really figure it out/get it working

frigid ember
#

?paste

worldly heathBOT
tender quarry
#

Hey, quick question about premium resource guidelines. Most/All premium resource developers that I have viewed that have multiple resources have 3 free resources per one paid. Is this a requirement? (Looked thoroughly through guidelines, didn't see this explicitly stated; if you know of a developer who has a lower than 1/3+ premium to free ratio (when >1), please link me)

leaden girder
#

I have 1 free resource and 1 premium and they stopped my premium from being able to be sold

tender quarry
#

The requirement states that you need

3 free resources
Doesn't explicitly say 3 free per 1 premium, so I was wondering if it's theoretically possible to have 3 free and 2+ paid.

brisk mango
#

Check if the slot is equal to 40 and if yes just cancel InventoryClickEvent?

leaden girder
#

@brisk mango I did that but you can still "drag" over a single slot

#

40 being the offhand slot and thats a single slot

brisk mango
#

no you cant

#

if you cancel it

frigid ember
#

Guys whats the fastest way to get the color of a block?

Also, how do I get the highest block from a location? I know how to get it from a chunk, but I'm trying to do it from locations

#
        for (int x = 0; x < 128; x++) {
            for (int z = 0; z < 128; z++) {
            int multiplier = l(map.getScale());
            Location loc = start.clone().add(multiplier * x - 64, 0, multiplier * z - 64);
            //int xM =
            canvas.setPixel(x, z, );
            }
        }
brisk mango
#

World#getHighestBlockYAt(x, z)

#

or Location

frigid ember
#

That won't lag if I do 16384 of those every second?

brisk mango
#

16384 of those? why that much

#

it will

#

what do you expect

frigid ember
#

I'm trying to get the highest block for map colors

brisk mango
#

no

#

you dont need the highest block?

frigid ember
#

wdym

brisk mango
#

just have the color for a certain location Y between

#

for example 150-120 is a color

#

120-100 etc

frigid ember
#

I'm confused

brisk mango
#

you are joking arent you?

leaden girder
#

No?

brisk mango
#

you made paid plugins on spigot?

#

nice joke

leaden girder
#

What?

brisk mango
#

I mean

#
Player player = (Player) inventoryClickEvent.getWhoClicked();
        ItemStack itemCursor = inventoryClickEvent.getCursor();
        Inventory inventory = inventoryClickEvent.getClickedInventory();

        if (inventory == null  || itemCursor == null) {
            return;
        }
#

Why are you getting the inventory

#

and then checking if its null?

#

whats the point of that

#

if you didnt know, ClickedInventory is Nullable

#

second, the ItemStack in that event before is nullable too

#

Why not just get the slot of the ClickedInventory instead getting it from the event?

#

also stop using static unless its an utility class/singleton/constant, and replace that singleton with a dependency injection

#

I dont understand how people like you can do paid comissions

#

The rest of the code is probably very shit too

leaden girder
#

ok

brisk mango
#

so youre basically calling the methods that are nullable before null checking

#

what a fucking joke

leaden girder
#

nice

#

ok

frigid ember
#

uhh, so there's an bungee exploit? if my ports aren't being able to be accessed from outside am I fine?

#

only finding out about this now

#

@brisk mango

        if (inventory == null  || itemCursor == null) {

This is ok to do the way he did it, there won't be errors

    @EventHandler
    public void onClick(InventoryClickEvent e) {
        Inventory inventory = e.getClickedInventory();

        if (inventory == null) {
            e.getWhoClicked().sendMessage("Clicked on a null inventory");
            return;
        }
        
        e.getWhoClicked().sendMessage(inventory.getName());
    }
#

Alright chill out a little bit on that one Temedy, He is probably not been coding for long. People make mistakes no matter how dumb they are

brisk mango
#

Null pointer will be thrown

#

@frigid ember its just pissing me off because people like this do paid plugins

#

@frigid ember yes there will, because if an event#getClickedInventory will get called before an null check

#

then it will throw a null pointer

frigid ember
#

Yes but calling them a fucking joke doesn't really help anybody

#

No I just showed it

brisk mango
#

bruh

#

its nullable

#

whatever

frigid ember
#
        Inventory inventory = e.getClickedInventory();

is nullable

#

but he doesn't call any methods on it

inventory.getName();

before he checks it to be null

#

And I'm sure if his code wasn't good enough the resource staff wouldn't have accepted his premium resources

brisk mango
#

Mk, i thought it throws an null pointer because it gets called every time u click in a inventory

frigid ember
#

The resource staff necessarily doesn't critique code

brisk mango
#

no lol, and his code is shit

#

if they would have seen it for sure it wouldnt have been on spigot

#

most paid plugins wouldnt

frigid ember
#

the most they do is a quick glance over and make sure it actually functions properly and he not selling a dud and also malware

brisk mango
#

you just doint get my point @frigid ember

frigid ember
#

What's your point

brisk mango
#

maybe if youve been some more experienced you would get the point

frigid ember
#

Portfolio comparison?

brisk mango
#

what about it

frigid ember
#
   @EventHandler
    public void onClick(InventoryClickEvent e) {
        Inventory inventory = e.getClickedInventory();

        if (inventory == null) {
            e.getWhoClicked().sendMessage("Clicked on a null inventory");
            return;
        }
        
        e.getWhoClicked().sendMessage(inventory.getName());
    }

This code will not throw any errors if you click outside the inventory menu (where it would be null)

#
        Inventory inventory = e.getClickedInventory();

can be null, but he checked for that before he called any methods on inventory

frigid ember
#

Anyone know why Azazel the tablist provider when imported into Intellji it doesnt compile with the plugin?

brisk mango
#

it doesnt work isnt a question

frigid ember
#

why is tho.

#

So yes its a question if you dont wanna answer then move on

brisk mango
#

what im i supposed to do with it though?

frigid ember
#

Maybe try the API to see if it works for yourself it just doesnt compile with the plugin it works fine in Intellji like i can import anything but now i can do jack shit

shy birch
#

Does anyone here know something about json models?

frigid ember
shy birch
#

Are you serious 🤨?

subtle blade
#

What kind of json models? Block models?

#

There are programs that help you model. BlockBench for instance

keen compass
#

@frigid ember since no one answered your question. If you are using bungee and your mc servers are on the same system as bungee, you should be setting your mc servers to listen on the loop back address which is 127.0.0.1. However if your mc servers are on separate systems, then you need to ensure direct connections to the mc servers can not happen otherwise bad things can be done. There is guides on the spigot website about how to prevent this from happening.

frigid ember
#

host is 0.0.0.0.

keen compass
#

host is not 0.0.0.0. Using that tells either bungee or mc server to listen on all addresses

#

you don't want that

#

it is fine to use in bungee config

#

but it isn't fine to use that in the mc server config

frigid ember
#

oh i think server is using a pterodactyl docker ip.

keen compass
#

ah, the two things I don't use

frigid ember
#

well i went ahead and added bungee guard just in case. i’ll look more into this tomorrow. thanks for explaining it to me!

keen compass
#

You are welcome

tough viper
#

Is there a plugin just for teleporting players to spawn on join/death?

#

I could code it myself but I feel like one already exists that covers this without other features

torn robin
#

@tough viper so basically a plugin that disables bed spawnpoints?

tough viper
#

@torn robin yeah

#

and minecraft's spawnpoint teleports you nearby

#

i just want to teleport into a single location

#

actually i'll just use essentials

torn robin
#

@tough viper /gamerule spawnRadius 0

fallow terrace
#

how do I stop players from using tab to complete commands?

#

I used the spigot yml option and set it to -1

#

But now whenever a player types a command they have permission to it will show up as red

#

The command works but the red color makes players think it wont

frigid ember
#

on inv click event how do i get the inv name?

#
e.getView().getTitle()

1.8

e.getInventory().getName()
fallow terrace
#

any help? ^

frigid ember
#

Hey guys, how do I get the color pixel on a map?

        for (int x = 0; x < 128; x++) {
            for (int z = 0; z < 128; z++) {
            int multiplier = l(map.getScale());
            Location loc = start.clone().add(multiplier * x - 64, 0, multiplier * z - 64);
            //int xM =
            //canvas.setPixel(x, z, );
            }
        }

then I have a MapColor class which is pretty much the same from minecraft

#

I'm gettin' a read-only error Exception for a Packet

17.05 01:25:48 [Server] ERROR [Prison] Unhandled exception occured in onPacketReceiving(PacketEvent) for Prison
17.05 01:25:48 [Server] INFO java.lang.IllegalStateException: The packet event is read-only.
    public BlockDigListener() {
        this.protocolManager.addPacketListener(new PacketAdapter(this.plugin, ListenerPriority.MONITOR, PacketType.Play.Client.BLOCK_DIG) {
            @Override
            public void onPacketReceiving(PacketEvent event) {
                PacketContainer packet = event.getPacket();
                WrapperPlayServerBlockBreakAnimation wrapper = new WrapperPlayServerBlockBreakAnimation();
                wrapper.setDestroyStage(0);
                event.setPacket(wrapper.getHandle());
                event.getPlayer().sendMessage("Wrapper Stage: " + wrapper.getDestroyStage());
            }

            @Override
            public void onPacketSending(PacketEvent event) {
            }
        });
    }
#

I'm guessing because it's being modified when it's accepted POST-FINAL type changes?

torn robin
#
        if (Bukkit.getPluginManager().isPluginEnabled("AdvancedBan")) {
            banManager = new AdvancedBanManager();
            MSG.log("Successfully hooked into AdvancedBans.");
        }else if(Bukkit.getPluginManager().isPluginEnabled("MaxBans")) {
            banManager = new MaxBansManager();
            MSG.log("Successfully hooked into MaxBans.");
        }
#

is there a better way of doing this?

frigid ember
#

I don't know if I'd do else if

blissful verge
#

Okay so I have simple question which might sound dumb, but how do I make it so a player can't lose hunger?

frigid ember
#

FoodLevelChangeEvent

torn robin
#

cancel the foodlevelchangevent ^

#

or give them permanent saturation

frigid ember
#

MSW

#

Wanna work on the no appearance for the

#

Block Durability

torn robin
#

i was never able to figure it out

#

i have no idea how the person in the video got it working

frigid ember
#

Lets tackle it together 😉

torn robin
#

you could make a resource pack that disables the block break effect and send that lmffaooo

frigid ember
#

LOL

#

Externals suck.

torn robin
#

basically the same solution

#

/lenny

frigid ember
#

:kappa:

#

My guess would be.

#

I'll get a Packet Analyzer mod 1 second.

#

If you think about it.

shy birch
#

What kind of json models? Block models?
@subtle blade item models I already made the models I don’t know how to show it in the Minecraft

frigid ember
#

ive seen people running their plugins from inside intellij

#

how do i do that?

#

I have a question - To run a minecraft server do I need a static IPv4 or Public IP Adress?

velvet halo
frigid ember
#

yep

#

Hey guys, how do I change rgb value to byte for map

#

cast to short ^ idk

#

or Short.valueOf

#

@frigid ember it's not working

B1 - 48
b2 - 255
    public static void main(String args[]) {
    System.out.print("B1" + MapPalette.BLUE);
    System.out.print("b2" + (short) Color.BLUE.getRGB());
    }
#

I can't join my server

#

What are you trying to do again?

#

im trying to join my server

#

I'm trying to change the RGB or import java.awt.Color to a MapPalette value

#

Well post some more details.

#

Hmm

#

what details

#

You can't just you can't join your server lol

#

i'm trying to connect to my server - it says "can't connect to server"

#

what's console saying?

#

nothing

#

the last thing is "Done (11.147s)! For help, type "help"" XD

#

i have no idea what i'm doing wrong

#

anyone help?

#

1s.

#

What server are you connecting to?

#

mine

#

Anything in console when you failed to connect?

#

Are you sure it's correct IP?

#

i've tried like 5 different things so

#

yeah

#

If Console says it up, it's up.

#

ok

#

but why can't i join

#

No errors on loadup?

#

nope

buoyant path
#
      Map<AuctionItem, Double> auctionItemMap = new HashMap<>();
        for (AuctionItem auctionItem : subPage.getAuctionItems().values()) {
            auctionItemMap.put(auctionItem, auctionItem.getPricePer());
        }
        LinkedHashMap<AuctionItem, Double> sortedMap = new LinkedHashMap<>();
        auctionItemMap.entrySet()
                .stream()
                .sorted(Map.Entry.comparingByValue(Comparator.naturalOrder()))
                .forEachOrdered(x -> sortedMap.put(x.getKey(), x.getValue()));```
#

Why is this not sorting my list in ascending order?

woeful mural
#

Anyone here knows how I do to allow 1.7 clients to join my Bungeecord, but not dropping 1.15 support? (and before someone questions me xD yes, I'm planning on having a bungeecord plugin that sends the player to different spigot servers depending on the protocol version)

#

I saw some plugin for 1.7 support but it was outdated

frigid ember
#

i think i did the port forwarding wrongly

#

Hey guys - sorry to bother, I am just looking for an answer to this question regardless if Cloudflare flagged me or not. Basically, how do you mesh player-specific data with team-specific data without rebuilding the board every time and being forced to re-register the teams?

#

can someone tell me how to port forward

#

@frigid ember there are a million YouTube videos showing how to do this

#

@frigid ember and none of them work for me

#

I've tried like 26 different videos and still nothing

#

Every port I try is closed and I still have no idea what WAN ports I need to enter and what LAN Port I need to enter

#

Sounds like you’re way off - you just want to connect on an open TCP/UDP port

#

There are hundreds of open ports for you to choose

#

None of them are open for me

#

help?

woeful mural
#

Have you tried adding the port to the computer's firewall as well?

#

Windows Firewall

frigid ember
#

how

#

Xd

woeful mural
#

Open Windows defender with advanced security, click Rules for incoming traffic and select New rule

frigid ember
#

i did it

#

still

#

nothing

#

xd

#

@woeful mural

oak stump
#

THERE ARE SOOOO MANY TUTORIALS, what router do u have?

frigid ember
#

uhhh some kind of huawei

woeful mural
frigid ember
#

but it has a custom interface from my internet provider so theres no tutorial for my router

#

@woeful mural that's the exact one that i'm using

woeful mural
#

Is the Minecraft server online as well?

frigid ember
#

yes

#

Port 25565 is closed on [my ip address]

woeful mural
#

Have you bound the Minecraft server to any IP?

frigid ember
#

to my lan ip yes

woeful mural
#

Remove the IP from server.properties and try it again

#

Just leave it blank

#

server-ip=

oak stump
#

And then join the server with [your ip]:25564

frigid ember
#

the public one?